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

Read zipped file from application server

antonio_sanseverino
Participant
0 Likes
2,508

Hi All!

I need to open a zip folder from application server and to read the contenf of all files.

I'm tring to use the class CL_ABAP_ZIP but maybe there are errors in my code and program doesn't work, someone can explain me all the steps?

Thanks

Edited by: Aristoteles92 on May 11, 2010 1:11 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,199

Hi,

Please go through this link.

Regards,

Pravin

Hi All!

I need to open a zip folder from application server and to read the contenf of all files.

I'm tring to use the class CL_ABAP_ZIP but maybe there are errors in my code and program doesn't work, someone can explain me all the steps?

Thanks

Edited by: Aristoteles92 on May 11, 2010 1:11 PM

4 REPLIES 4
Read only

Former Member
0 Likes
1,199
Read only

Former Member
0 Likes
1,200

Hi,

Please go through this link.

Regards,

Pravin

Read only

0 Likes
1,199

I've tried this but I've a dump

STRING_LENGTH_TOO_LARGE

CX_SY_RANGE_OUT_OF_BOUNDS

Illegal access to a string (length too large)

DATA: lv_filename TYPE string VALUE '/usr/sap/tmp/desktop.zip',

lv_zip TYPE xstring.

OPEN DATASET lv_filename IN BINARY MODE FOR INPUT.

READ DATASET lv_filename INTO lv_zip.

CALL METHOD lo_filezip->load

EXPORTING

zip = lv_zip

EXCEPTIONS

zip_parse_error = 1

OTHERS = 2.

Read only

0 Likes
1,199

If I upload on Application server a ZIP File using ZSUTFILE program, when I try to open a ZIP FILE with CL_ABAP_ZIP class, I've a dump but if I use standard transaction CG3Z the class works correctly, so the code below is correct.

Thank you for the help!!