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: 

CREATE ZIP FILE WITH PASSWORD

Former Member
0 Kudos

Hello,

I have created with an ABAP program a PDF file in local filesystem that later I send it by email, that's working fine.

Now I need to protect the information in this file.

Is possible create a zip file (compressing the pdf) with password?

I've read different discussions in the forums but I don't know if it is possible yet, so if it is possible, how I should proceed to get a zip file password protected from a local pdf file.

Kind regards,

Julian.

4 REPLIES 4

Former Member
0 Kudos

Hi Julian,

Yes you can create a ZIP file by using the class CL_ABAP_ZIP. But you will not be able to set the password to the zip file.

Hope this helps.

Thanks,

Tooshar Bendale

0 Kudos

Hi Julian,

You can create password to the PDF file itself.

For eg.,

If a company is sending payslips pdf to employees through email , every month automatically from SAP.Then the password can be set as employees Birthday.

You dont have to zip it as PDF is protected with password.

Thanks and regards,

Bharathi 

0 Kudos

Hello Bharathi,

how do you do this >> You can create password to the PDF file itself. <<

To create a zip-file is easy with class CL_ABAP_ZIP (lo_zip->add and   lo_zip->save), but I'm searching for a reason to protect the created zip - file with a password (like your example employee birthday).

regards

Steffen

former_member289261
Active Contributor
0 Kudos

http://scn.sap.com/thread/807635

Same issue with a workaround.