cancel
Showing results for 
Search instead for 
Did you mean: 

Encrypt data in IDoc to an external system?

Former Member
0 Kudos

Hi.

I'm working on an HR interface from SAP HR to an external payroll system.

We have identified that we need to encrypt sensitive data in the IDoc and I have been looking at this blog.

If I encrypt specific fields in the IDoc, perfom an mapping.

Will the receiving system be able to decrypt the fields?

What algoritm is used to decrypt the fields?

Regards

Andreas

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Andreas,

Following Vishnu idea, alternatively you can develop a java program and to drop the jar on the ECC OS system, later you can call OS command to execute that jar:

Defining External Commands - Background Processing - SAP Library

How to Call Java from ABAP | SCN

Execute a jar file from SAP ABAP Program | SCN

Regards.

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Andreas,

I think, it is better to handle this in ECC end with the help of an ABAPer. We have some FM's like

FC_SET_ENCRYPT_SETID

FIEB_PASSWORD_ENCRYPT

G_SET_ENCRYPT_SETID

K_ENCRYPT_RESOURCE

OFX_ALS_PASSWORD_ENCRYPT

OS390_ENCRYPT

through the encryption will be done. Share the same key to the third party team for decryption. But the concern here is that in PI for this encrypted field, the mapping should be  just a one to one mapping instead of some transformation logic to populate the target field.

If you want to handle in PI, since this encryption is for only some fields, there is no standard option to do this. Pls refer the below links which might help you on this.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ac06cf-6ee2-2c10-df98-e17430ca5...

Encryption and Decryption using Symmetric Keys - Java Tips