How to Zip-UnZip in SAP CPI

This blog will provide steps on how to zip-unzip in SAP CPI.

What is SAP CPI

SAP Cloud Platform Integration (CPI) connects cloud applications with other SAP and non-SAP cloud and on-premise apps.

This blog will focus on zipping and un-zipping functionality in SAP CPI

Zipping in SAP CPI

Sometimes we get a requirement for zipping a message or file before transmitting it to the target system.

Solution:

Cloud Platform Integration supports 2 ZIP formats to compress your message:

  1. ZIP Compression – Allows compressing the file using the standard zip algorithm
  2. GZIP Compression – Allows compressing the file using the GNU zip algorithm.

The ZIP/GZIP process step comes under:

Transformations —> Encoder—>ZIP Compression

Transformations —> Encoder —>GZIP Compression

Zipping in SAP PI

Just drag the appropriate format in your process and all set. There are no other configuration steps to this step.

Un-Zipping in SAP CPI

Sometimes we get a requirement to UnZip a message or file before processing.

Solution:

Cloud Platform Integration decompress 2 ZIP formats:

  1. ZIP Decompression – Allows decompressing the file/message that was compressed using the standard zip algorithm
  2. GZIP Decompression – Allows decompressing the file/message that was compressed using the GNU zip algorithm.

 

The ZIP/GZIP process step comes under:

Transformations—>Decoder—>ZIP Decompression

Transformations—>Decoder—>GZIP Decompression

Zip in SAP CPI

Just drag the appropriate format in your process and all set. There are no other configuration steps to this step.

Note: The ZIP Decompress component cannot handle ZIP files with more than one file zipped inside it.

refer the Note 0002491377

Here are some more SAP CPI Blogs

SOAP To Mail Scenario in SAP CPI

SAP CPI Error Handling

The splitter in SAP CPI

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.