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

Problem in creating zip file

Former Member
0 Likes
529

Hi,

these are the following steps i followed.

1.i have table of type string.

2.I converted theat to xstring using SCMS_TEXT_TO_XSTRING.

3.using CL_ABAP_ZIP called add and save methods.

4.Took the compressed xstraem buffer from save and converted to binary using SCMS_XSTRING_TO_BINARY.

5.Opened a zip file in application server and rite data into that.

now i am having following issues

1.i am unable to open the zip file

i want o/p like this

e.g

if input data is

London

Chennai

it has to be stored in ouptup.txt in zip file.

1 ACCEPTED SOLUTION
Read only

AlessandroSpadoni
Contributor
0 Likes
448

Hi,

can't you open the Zip file from application server?

After an OPEN DATASET in BINARY MODE , i think you could use SCMS_BINARY_TO_XSTRING and CL_ABAP_ZIP->LOAD method to load the zip in application server (using the XSTRING)

Then,you can use CL_ABAP_ZIP->ADD for additional data and CL_ABAP_ZIP->SAVE

1 REPLY 1
Read only

AlessandroSpadoni
Contributor
0 Likes
449

Hi,

can't you open the Zip file from application server?

After an OPEN DATASET in BINARY MODE , i think you could use SCMS_BINARY_TO_XSTRING and CL_ABAP_ZIP->LOAD method to load the zip in application server (using the XSTRING)

Then,you can use CL_ABAP_ZIP->ADD for additional data and CL_ABAP_ZIP->SAVE