Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

cl_abap_zip->ADD (can add multiple files and zipped) ??


I have few files in Content Management system. I would like to zip those files together and download to presentation server. Is <b>cl_abap_zip->add</b> able to perform that?

For example, i have 5 files in CM. I retrieve the list of these 5 files and store in itab. I loop the itab to get 1st file. I call the method <b>cl_abap_zip->add</b> and pass in the filename and xstring of the file contents.

I continue loop for 2nd time to call the same method until 5th time. After finish looping, I call method <b>cl_abap_zip->save</b> and FM gui_download.

But I only get the 5th file. Method "ADD" does not seem to add files to a zip folder. How can i add all these 5 files in a zip folder and download it at once?

Kindly advise.



Former Member
Not what you were looking for? View more on this topic or Ask a question