This example convert 2 different recordsets inside single file to xml. First recordset is “SINGER”, second recordset is “SONG”. First column is 1 character length. It is a key column to identify different recordset. “A” from first half mean SINGER, “B” from second half mean SONG.
This is the target Message Type:
Below are the configuration that make this happen:
ignoreRecordsetName | true |
SINGER.fieldFixedLengths | 1,5,20 |
SINGER.fieldNames | KEY,SINGERID,FULLNAME |
SINGER.keyFieldValue | A |
SINGER.keyFieldInStructure | ignore |
SONG.fieldFixedLengths | 1,5,35 |
SONG.fieldNames | KEY,SINGERID,SONGNAME |
SONG.keyFieldValue | B |
SONG.keyFieldInStructure | ignore |
6 - 10 years of relevant experience working in SAP ABAP, including 4 years on SAP PI Experience with SAP PI/PO Version 7.3/7.4(Single stack) in ESR/ID/SLD/NWA and PI Support activities Good knowledge on PI 7.4 (single java stack)architecture.
Keep on posting!
I would like to share information on security mechanism through PI when the sensitive customer and business data is sent through PI Interfaces to third party systems.
The AEDaptive created a tool was used for the encryption of files hand in hand with PGPkeys. This tool is an add on to the JAVA Application of the Process Integration 7.1 system and this tool was used for the two way encryption and decryption process with the one of our vendor. One of the vendors of our client utilizes and implements credit card functionality for non banking institutions. We implemented the same for our client to run their business securely.
PGP (Pretty Good Privacy) in PI 7.1:
i) Introduction to PGP:
PGP is a data encryption and decryption program that provides a secure method of sending and receiving information between two parties. To be able to utilize the encryption facility, each party will be required to send one another Public Keys, this Key is used to encrypt the file before the package is sent off. The recipient then utilizes the secret key to decrypt and extract the content of the package created by the sender.
ii) Importance of Keys and Key generation :
Keys can be generated using many PGP Key creation products, in this example we will be using PGP Desktop (Version 10).
All keys, both public and private need to be placed in a folder that can be read by the SAP J2EE Engine, best option would be on a the PI system itself, this way you are guaranteed there will be no read issue against the file.
There are 2 keys to be generated on each side.
– Public Key – Used to encrypt the file.
– Secret Key- Used with a Passphrase to decrypt the file created using the Public Key.
iii) The Encryption and Decryption process:
The Workflow of transferring files between two parties occurs with the encryption as first step and then the decryption as the second step, the following information provides the perquisites setup steps as well as the monitoring of the file transfer, note this only includes the steps within the PI environment.
- Encryption Process:
– PI encryption Module is used to encrypt the files by using recipient generated public key.
– Send the encrypted file to the recipient
– Vendor decrypts the file using their own Secret Key and Passphrase.
Mandatory PI Adapter Encryption Module parameters:
a) Algorithm – Many algorithms are being supported. Need to provide one algorithm at least to encrypt the message.
b) Public Key – To identify the secret key in receiver party in decryption process.
c) Recipient – Recipient name is important to identify the correct receiver, using the name of the Public Key should suffice.
Along with the above parameters there are additional module key parameters basing the encryption requirements.
Example: Hash key algorithm, compression, signer of the message and compatibility etc.
Testing the encryption process:
Before Encryption:
After Encryption:
- Decryption Process:
– Vendor needs to use PI generated public key to encrypt the files.
– Sends the encrypted Files to PI.
– PI decryption module needs to be used to decrypt the files using the sender generated secret key and passphrase. (Passphrase is used in generation of keys)
Mandatory PI Adapter Decryption Module parameters:
a) Public Key and Secret key –
To Identify the correct key to decrypt the message
b) passphrase –
This passphrase is the one which should be used in Key generation in sender party.
Testing the decryption process:
Content of encrypted file (pre-decryption)
After the decryption
iv) Monitoring:
Encryption and decryption process can be monitored by channel monitoring.
Encryption Log:
Decryption Log:
v) Trouble shooting
There are many trouble shooting techniques available in user guide. Common errors are mentioned in this document.
Sap Pi Pgp Key Generation Software
An error occurred when reading the secret key ring.
Check the parameter secretKeyRing. Either this parameter is omitted or the path to the secret key ring file is incorrect.
Sap Pi Pgp Key Generation Intel
An error occurred when reading the public key ring.
Pgp Freeware
Check the parameter publicKeyRing. Either this parameter is omitted or the path to the public key ring file is incorrect.
Sap Pi Pgp Key Generation Manual
vi) Reference
http://www.pgp.com/downloads/desktoptrial/desktoptrial2.html
Note: Please not that AEDAPTIVE was used during the set up of PI encryption and decryption process.