Posted on Apr 15, 2010 at 06.35 PM - Kuala Lumpur, Malaysia
In the same way that we reuse data types in different message types, you can also save and reuse parts of message mappings as mapping templates. A mapping template serves as a copy template that we can load to other message mappings and then adjust to meet our requirements.
There are 2 ways of creating mapping template:
1. Create it prior to message mapping. For that, go to your name space, use context menu New->Mapping Objects->Message mapping.
2. Create it while doing message mapping. Again while highlighting both the source and target node, you can use context menu Create Template Based on Mapping.
The follow screen shot illustrate how we can define a mapping template and reuse it in another message mapping.
A user defined function is also copied to a mapping template if the user defined function is used for fields that are part of a structure used for the mapping template. If a mapping template is modified after it has been referenced, the change is not automatically transferred to the message mapping in which the mapping template is referenced.
SAP also now ships mapping patterns (similar to BPM patterns) to help customers better understand how the mapping tool works, under SWC SAP BASIS, name space http://sap.com/xi/XI/System/Patterns.
Life is beautiful! Let's make it meaningful and colorful!