Professional Documents
Culture Documents
Applies to:
SAP NetWeaver PI 7.1 / 7.0, XI 3.0.
For more information, visit the Service Bus-based Integration homepage.
Summary
This guide will help you in implementation of common mapping requirements that we often find difficult to
design using graphical mapping. The scope of this document is to provide an overview of the necessary
design tasks and tools for selected mapping requirements.
Author:
Sunil Singh
Author Bio
Sunil Singh is a SAP PI/XI Consultant in L&T InfoTech Ltd. His area of expertise includes SAP PI/XI, Java.
Table of Contents
1 Introduction ......................................................................................................................................................3
2 What is your Requirement? .............................................................................................................................3
2.1 Create the node at run time ......................................................................................................................4
2.1.1 Design.................................................................................................................................................................4
2.1.2 Results ................................................................................................................................................................5
Conclusions ........................................................................................................................................................8
Related Content..................................................................................................................................................9
1 Introduction
This guide answers the various common mapping requirements and their implementation using graphical
mapping. The scope of this document is to provide an overview of the necessary design tasks and tools for
selected mapping requirements.
This guide is intended for use in conjunction with the accompanying screen shots. The screen shots serve as
an entry point to the guide by providing high-level guidance at a glance, while the guide provides step-bystep instruction for the individual design tasks
Fig 2
If value of element Type is P then output of function equalsS is true otherwise it will return false.
Node function creatIf will create the node only if input to this function is true.
Fig 4: Queue values when the value of element Type is other than P
2.1.2 Results
Fig 7
As there will be multiple values in source element PsNo its context must be changed to root level node.
Also change the property of node function SplitByValue to Value Change as shown in the figure.
Fig 8
As shown in the figure source element PsNo has three values out of which one value is duplicate.
According to design there should be only two target node Official.
Fig 9
As shown in the figure only two nodes are generated for two unique values of PsNo.
2.2.2 Result
Fig 10
2.3 Transfer fixed values
Sometimes target demands different value for the particular value in the source structure.
2.3.1 Design
If the value of source element Type is L then it should be transferred as Learner to the target. If it is T
then it should be transferred as Temporary and in case of P it should be transferred as Permanent to the
target.
Fig 11
As shown in the figure values of source element Type is entered as a key and the corresponding value to
be sent to the target is entered as value.
Fig 14 When input Type is other than the keys in the Fixed-Values table.
Conclusions
Often we write UDFs to fulfill our mapping requirements that could be easily achieved using graphical
mapping.
Graphical mapping offers easy maintenance, flexible context handling which becomes nightmares when we
use UDFs to implement same functionality.
Related Content
http://help.sap.com/saphelp_nw04/helpdata/en/d9/cea942ad920c31e10000000a1550b0/frameset.htm
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2458
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2792
For more information, visit the Service Bus-based Integration homepage.