2015 Nov 25 11:55 AM
Hi Friends,
I got a requirement to Encrypt an XML File which is generated from SAP and before Sending that xml file to bank, File needs to be Encrypted, For this Client has installed PGP Software in Server and Created an External Command in SM69.
How should i encrypt the file..?? Based on few suggestions in scn i came to know that FM ( SXPG_COMMAND_EXECUTE ) will be used for this requirement .I tried the same but im not having clear idea on executing the FM with correct command .
Please tell me why this External Commands are created..?? and how it will be used for File Encryption...??
Regards,
Lokesh
2015 Nov 26 4:33 AM
2015 Nov 27 6:32 AM
Hi all
Im getting below error after executing command in sm69
My Command : --encrypt --recipient /Interface/GPG/SCBPGPTEST03142048.asc /Interface/GPG/data.xml
Below is my App server path where XML file is located, and want to encrypt the same..
Please guide...
2015 Nov 27 8:35 AM
This isn't an ABAP problem, it's a problem using gpg. Try googling gpg "no public key" error
2015 Nov 27 10:45 AM
hi matthew,
Iam able to run the same command in OS Level, but unable to try it through SM69,
I want to execute the above command through FM SXPG_COMMAND_EXECUTE in program... in order to encrypt the above file in sap directory..
how to achieve this.. is RFC needs to be created for this..??
please tell me complete process of encryption through ABAP Program,..
Thanks in Advance...
Lokesh
2015 Nov 27 11:44 AM
The error message you show relates to errors coming from gpg. Therefore you are calling it incorrectly. Therefore it isn't an ABAP issue. Therefore I am locking this discussion.