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

File encryption using ABAP

Former Member
0 Likes
1,885

Guys,

Is it possible to achieve a file encryption on the fly with ABAP?

What I am trying to achieve is, I have an xml file coming out of SAP and I want to send it over to vendor system using WS (Web services) and Plain old xml over http (POX) combination, and I want to encrypt the file using PGP/ PKI encryption. I want to know if we can encrypt the xml file using ABAP code and send it over via WS (Web services)?

Regards,

Sudeep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,009

Hi Sudeep,

Try using the function module : SXPG_COMMAND_EXECUTE

refer the below link

Encryption & Decryption of data using ABAP

/people/kathirvel.balakrishnan2/blog/2006/11/21/encryption-decryption-of-data-using-abap

JAVA API's for PGP Encryption/Decryption

http://www.bouncycastle.org/documentation.html

you got some examples

Check this document on how to do message level security:

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681...

Deploying the SAP Java Cryptographic Toolkit

http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/frameset.htm

Key Storage Service

http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/frameset.htm

If these things are already done then u need juz few modification in the adapter configuration.

In FTP Connection Parameters -> command line -> FTPS (Control and Data connection)

You can also go through the blogs

Encryption(SSL)

/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d...

Examples for Using Digital Signatures

http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm

How to configure Message level security

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d...

document on encryption in adpaters

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/482aae19-0301-0010-3485-8efd61881...

Hope it would help u.

Thanks,

regards,

akshay ruia.

2 REPLIES 2
Read only

Former Member
0 Likes
1,010

Hi Sudeep,

Try using the function module : SXPG_COMMAND_EXECUTE

refer the below link

Encryption & Decryption of data using ABAP

/people/kathirvel.balakrishnan2/blog/2006/11/21/encryption-decryption-of-data-using-abap

JAVA API's for PGP Encryption/Decryption

http://www.bouncycastle.org/documentation.html

you got some examples

Check this document on how to do message level security:

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681...

Deploying the SAP Java Cryptographic Toolkit

http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/frameset.htm

Key Storage Service

http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/frameset.htm

If these things are already done then u need juz few modification in the adapter configuration.

In FTP Connection Parameters -> command line -> FTPS (Control and Data connection)

You can also go through the blogs

Encryption(SSL)

/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d...

Examples for Using Digital Signatures

http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm

How to configure Message level security

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d...

document on encryption in adpaters

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/482aae19-0301-0010-3485-8efd61881...

Hope it would help u.

Thanks,

regards,

akshay ruia.

Read only

0 Likes
1,009

Hi,

you should think about encrypting the connection (https instead of http).

Best regards,

Oliver