2010 May 11 12:11 PM
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
2010 May 11 12:23 PM
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
2010 May 11 12:17 PM
2010 May 11 12:23 PM
2010 May 11 1:24 PM
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.
2010 May 11 5:16 PM
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!!