Skip to Content
0
Former Member
Feb 12, 2011 at 11:35 AM

cl_abap_gzip

1265 Views

I want to read a file "Dsn1" and zip it into "Dsn2" and put it in the application server

. The commands that I used are

1. Open dataset dsn1 for input in text mode encoding default.

2. Open dataset dsn2 for output in binay mode.

3. read dataset dsn1.

3. use cl_abap_gzip=>Compress_text , which converts the string from dsn1 to xstring.

4. transfer this xsting to dsn2.

5. close both the datasets.

I dont get any error while running the code.

It is put in application server. But when they try to unzip it in unix server using "GUNZIP dsn2"

they get an error like "not in gzip format"

Please let me know in case any one faced this issue.

Thanks,

Kavitha