Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Hi Friends,

Here, i would like share he can we do the file PGP Encryption and Decryption by using SM69 in SAP ABAP.

To access the PGP commands from the SM69 first PGP s/w has to install on UNIX server.

If the pgp s/w is not installed on the your server you can't able to access the pgp commands.

File Encryption:

command: pgp -e <filename> -r <username>

when u are executing the command in the additional parameters you have to pass the <filenmae> -r username.

In your ABAP pgm you can call the FM   SXPG_COMMAND_EXECUTE by passig the above external command ZUNIX_COMMAND_EN.

File Decryption

command:   command: pgp --decrypt <filename.pgp> --symmetric-passphrase 'test' --overwrite remove --outputfile <outputfolder>

when u are executing the command in the additional parameters you have to pass the <filename.pgp> --symmetric-passphrase 'test' --overwrite remove --outputfile <outputfolder>.

In your ABAP pgm you can call the FM   SXPG_COMMAND_EXECUTE by passig the above external command ZUNIX_COMMAND_EN.

Regards,

Santhoshi.

2 Comments