One of my client has requirement to Encrypt Payslips generated from SAP.
Now we are using concept creating PDF file and sending the same as a attachment to a mail with the help of SAP ABAP programming.
But in ABAP we don't have the facility of adding password to PDF file.
Now we are planning to use EncrptPDF(command line)to get the desired functionality.
We have download trail version of the same and it is working fine.
But we are not able to call this functionality from SAP. We do have different function modules to call external Programs or command from SAP like WS_EXECUTE.
Please let us know if any help available in this regards.
You can use following sample code to Calling an Executable Program Using ABAP,
CALL FUNCTION 'GUI_RUN'
COMMAND = 'C:\EncryptPDF.exe'
PARAMETER = '-i c:\sample.pdf -w owner -u user -e 40 -p'.
* CD = '
* RETURNCODE = .
thanks for your help, it is working fine and as expected.
Please let us know if any possibility to use this tool on SAP Application server level, so that we can execute program in the Background for generating payslips.
Yes, you can call EncryptPDF.exe from SAP Application server level, that's no problem, you can try to do by yourself, if you encounter any problem, please feel free to let us know, we are glad to assist you asap.
VN:F [1.9.20_1166]call EncrptPDF.exe (command line) from SAP ABAP programming,