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

Encryption using External command

Former Member
0 Likes
2,139

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,404

Dear all,

Please suggest......

Read only

Former Member
0 Likes
1,404

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...

Read only

matt
Active Contributor
0 Likes
1,404

This isn't an ABAP problem, it's a problem using gpg. Try googling gpg "no public key" error

Read only

0 Likes
1,404

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





Read only

matt
Active Contributor
0 Likes
1,404

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.