Application Development 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: 

Use of Cl_ABAP_ZIP Class to download multiple pdf file as a zip folder.

sarbajitm
Contributor
0 Kudos
1,066

Hi All,

My requirement is like based on the user input multiple number of Invoices will be created as a pdf file and then a zip folder will be downloaded which contain all those pdf files. I have developed a code for this requirement. When I am trying to unpack the zip folder I'm getting error that the folder is corrupted.

If anybody have gone through such a requirement, then kindly put some light.

Thanks in advance.

Regards,

Sarbajit.

7 REPLIES 7

Former Member
0 Kudos
394

Check the steps defined in [http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput] to see if you are missing something.

0 Kudos
394

Hi Gustavo,

I already have watched it.

Former Member
0 Kudos
394

Are you using Filetype BIN for the download?

0 Kudos
394

Yes. BIN I'm using.

Former Member
0 Kudos
394

Are you assigning different names for each pdf file and using the correct data type to do so?

0 Kudos
394

Yes I'm assigning different name for different pdf file and datatype for that is String I'm using.

Former Member
0 Kudos
394

Hi Sarbajit,

please have a look at the below thread and check whether it will help. it has part of code for unzipping the file.

[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c6b79908-0a01-0010-8ca0-b77aff37726d]