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: 

How to Zip multiple pdfs to a zip folder in ABAP

PoojaThareja
Participant
0 Kudos
623

Hi

I am having a report in which i am creating a pdf of each bill of Customer. Now I want to create multiple pdfs and zip them into a single folder. I found a class Cl_abap_Zip to zip a file . But how can I attach multiple files. Please Guide

Thanks in advance

Pooja

1 ACCEPTED SOLUTION

Former Member
0 Kudos
150

Hello Pooja,

I believe you can call method ADD for the class 'n' number of times to add 'n' number of files.

Regards, Chirag

3 REPLIES 3

Former Member
0 Kudos
151

Hello Pooja,

I believe you can call method ADD for the class 'n' number of times to add 'n' number of files.

Regards, Chirag

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Kudos
150

Hello friend,

You can first use ADD multiple times to add several files and finally use SAVE to do real ZIP operation.

Here's a wiki guide too.

http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput

Best Regards,

Jerry

0 Kudos
150

Thanks Chirag

Problem Solved