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

Zipping from abap program

ramesh_putta
Participant
0 Likes
792

Hi,

My program creates around 5 internal tables. And i would like to compress those internal tables into one zip file and download it to application server/presentation server.

Appricicate your ideas for this..

Moderator Message:We do not consider it good style to ask questions before trying to find the solution yourself. Please refer in your text also to what you have done already to solve the problem and what resources you have searched or used.

Message was edited by: Kesavadas Thekkillath

2 REPLIES 2
Read only

Former Member
0 Likes
620

What server is it based on? On UNIX, it's as simple as adding ..filter 'compress' to your OPEN DATASET command to generated a GZIP compressed file. I'm not sure this works on Windows Server.

OPEN DATASET file FOR OUTPUT IN BINARY MODE FILTER 'compress'.

http://help.sap.com/abapdocu_702/en/abapopen_dataset_os_addition.htm#!ABAP_ADDITION_2@2@

Read only

Ryan-Crosby
Active Contributor
0 Likes
620

Hi Ramesh,

If you look at class CL_ABAP_ZIP via SE24 you can see the interface available here to zip files.  I believe the only methods you would potentially need to use are add & save.

Regards,

Ryan Crosby