Parameterized Mapping
Posted on Apr. 26, 2010 at 11.22 AM - Kuala Lumpur, Malaysia
Scenario
There is a requirement in our project to send over SAP HR employee master data information to several receiving systems, based on the insurance company they subscribe to.
Solution
To improve the performance of the interface, we are going to create exactly only one ABAP extraction program, and use PI to route it to different receiving systems. Since the data format for most of the insurance companies are the same, we try to create only one mapping program to be used by multiple receivers. And to achieve that purpose, we are going to use new SAP PI version 7.1 features, parameterized mapping.
Below is step by step procedure on how to implement it.
1. Create Parameters
2. Add Parameters in UDF Signature
3. Use Parameters in UDF
4. Use UDF in the Mapping
5. Bind Parameters with the UDF mapping
Double click on the UDF and you will be prompted with a screen to populate the UDF parameter with value. Bind it with the parameter which we have created in step 1.
6. Test Message Mapping
We can test the message mapping by populating the parameter field with certain value.
7. Create parameter in Operation Mapping
8. Bind it with Message Mapping
Click on the "Bind" button in the mapping program
9. Test Operation Mapping
Exactly the same as the message mapping
10. Populate Parameter Value in the Interface Determination Step
Life is beautiful! Let's make it meaningful and colorful!