Professional Documents
Culture Documents
Hi, Guest
Log On
Store
Join Us
Products
About SCN
Downloads
Industries
Partnership
Developer Center
Lines of Business
University Alliances
Innovation
Activity
Communications
Actions
Brow se
stefan.grube
Tw eet
0 Like
Before you read this article, I recommend first to go through Sravya Talanki's Weblogs Message Mapping Simplified
Part I and Message Mapping Simplified Part II
The graphical mapping provides some useful functions with starting with XI 3.0 SP13:
- The node functions mapWithDefault, formatByExample, sort and sortByKey
- The statistic function index
Before SP13 we had to use a combination of the functions exists and if, now we need only one function:
http://scn.sap.com/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
1/4
6/10/2015
The other nodes are mapped with help of the node functions splitByValue and collapseContexts like follows:
Make sure, that the context of the node ID is set to ORDERLIST in all cases.
The elements in tag PRODUCT shall be sorted the same way as the elements in tag ID. As the functions sort and
sortByKey only sort the elements within the same context, we have to use the function removeContexts before sort.
After sort we have to restore the original contexts. We do this with the node function splitByValue The mapping now
looks like follows:
http://scn.sap.com/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
2/4
6/10/2015
We want the tag No to count the positions in an order. For this reason we have to provide the correct contexts. This
can be done by the node function splitByValue. After creating of the correct index numbers, the values have to be
separated to different contexts. This can be achieved as well with the node function splitByValue.
I hope this blog will help you to understand the use of the new mapping functions.
10496 View s
Average Us er Rating
My Rating:
(7 ratings )
Share
Tw eet
0 Like
6 Comments
Dec 29, 2005 10:21 AM
Hi Stefan,
Good examples illustrating the new functions. The examples are very nice and very easy to follow.
Regards,
naveen
Like (0)
Hi Stefan :)
Great to see a weblog from you,
hope there will be more :)
Regards,
michal
Like (0)
http://scn.sap.com/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
3/4
6/10/2015
Hi Stefan,
Your blog with clear examples solved my query in the XI forum - ' Help in mapping with 'createIf' node
function'.
Thanks,
Ashok.
Like (0)
I was reading in SDN library and other sources to try and figure out SplitByValue and could never
make them work. Your method of removing, adding, and then collapsing context are exactly what I
needed to go from simple flat input file to a nested hierarchy.
Best regards,
Aaron
Like (0)
Great examples.
Just one comment for formatByExample.
You have to do sorting functionalities first before formatByExample function for data source that are
not in order.
Thanks and Regards,
Robert
Like (2)
Hi Stefan,
This is very helpful blog.
Thank you for sharing.
Regards
Anupam
Like (0)
Site Index
Privacy
Contact Us
Terms of Use
Copyright
http://scn.sap.com/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
Follow SCN
4/4