Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add .txt files into .zip file

Former Member
0 Likes
1,309

Hello friends,

Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code.

Thanks in advance.

Hello friends,

Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
885

Hi Murali,

You can use the method in the class CL_ABAP_GZIP to zip your file and then download it using GUI_DOWNLOAD.

data: zip type ref to cl_abap_zip, 
      result type xstring.

create object zip.
zip->add( name = some_file content = content ).
result = zip->save( ).

Also you can check this thread as well.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
885

Hi Murali,

Just go through these links....

Regards,

SP.