cancel
Showing results for 
Search instead for 
Did you mean: 

abap gzip zip

Former Member
0 Kudos

Hi,

I have tried to use the classes,

cl_abap_zip

CL_ABAP_GZIP

CL_ABAP_GZIP_BINARY_STREAM

CL_ABAP_UNGZIP_BINARY_STREAM

I use winzip 8.1 sr1

SAP XI SP14

status report

cl_abap_zip - fails to read a file created with winzip

cl_abap_zip - can create a file that may be opened with winzip

cl_abap_zip can zip and then unzip the just zipped data, it is COMPATIBLE WITH ITSELF

CL_ABAP_GZIP - can not read files created with gnu gzip, nor write files that can be read with gnu gzip

CL_ABAP_GZIP - can gzip and then ungzip the just gzipped data, it is COMPATIBLE WITH ITSELF

CL_ABAP_GZIP_BINARY_STREAM CL_ABAP_UNGZIP_BINARY_STREAM both hangs when trying to use the _end method

I'm using gui_upload and gui_download to create the files, which works fine, except for big files, this is why you want to use compression.

If someone has useful working examples, that would be appreciated.

/Otto

Accepted Solutions (0)

Answers (2)

Answers (2)

mertsahin
Newcomer
0 Kudos

Sap was creating gzip without header info. Please check SAP Note 2475108 for fix.

Former Member
0 Kudos

?

Former Member
0 Kudos

Here is an abap implementation of gzip / gunzip. Enjoy.

If you find it useful, please post a followup. The same goes if you find bugs, or make any improvements. As usual without any warranty, use at your own risk.

It is useful when you need to upload hughe file with gui_upload.

[SCN Wiki GZIP|http://wiki.sdn.sap.com/wiki/display/profile/GZIP]

Former Member
0 Kudos

[SCN Wiki GZIP|http://wiki.sdn.sap.com/wiki/display/profile/GZIP]

Former Member
0 Kudos

Hi,

I created the class exactly as specified.

Now i want to test this.How to do this.Please help me in testing this,

And one more thing,I want to send this zip file in a mail as an attachment.

Please help me.

Regards,

Sasi