Application Development and Automation 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: 
Read only

CREATE ZIP FILE WITH PASSWORD

Former Member
0 Likes
2,796

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.

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
Read only

Former Member
0 Likes
1,049

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

Read only

Former Member
0 Likes
1,049

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 

Read only

0 Likes
1,049

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

Read only

Former Member
0 Likes
1,049

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

Same issue with a workaround.