on 02-21-2008 6:49 AM
Hi Experts,
Could you please help me out in the following Graphyical mappings with the real time Examples and data structure.
1. remove context
2. split by value
3. collapse context
4. Use one as many
5. Map with default
6. and few more.
Please awaiting for your kind information.
Regards,
Amruth
Hi,
The below link will give you the real time step by step usage of all the Graphical Mapping Standard Functions
SAP Network Blog: Mapping Enhancements in SAP NetWeaver Process Integration (PI) 7.1
/people/jin.shin/blog/2008/01/11/sap-pi-71-mapping-enhancements-series-mapping-enhancements-demo
Share User-Defined Functions in Message Mappings of PI 7.1
/people/william.li/blog/2008/01/02/sap-pi-71-mapping-enhancements-series-share-user-defined-functions
Message Mapping
see here all the details under standard functions.
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
IfWithoutElse and CreateIf Node Function of Graphical Mapping
/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
Also check these
Message Mapping Simplified (good examples of mapping function)
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Introduction to Context Handling in Message Mapping
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
New functions in the Graphical Mapping Tool SP13
/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
Customizing ID Mapping Framework (Value mapping)
http://help.sap.com/saphelp_nw04/helpdata/en/cd/9ad4dfdb9ef04cba985a566422569c/frameset.htm
Mapping functionality in XI
SAP Exchange Infrastructure - Graphical_Mapping
SAP Exchange Infrastructure - Graphical Mapping Exercise
SAP Exchange Infrastructure - Graphical Mapping - Advanced
SAP Exchange Infrastructure: Mapping Patterns - Understand Context Handling in Message Mapping - Webinar Powerpoint
SAP NetWeaver Exchange Infrastructure Mapping Troubleshooting - Webinar Powerpoint
Thanks
swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Node Functions are: createIf, removeContexts, replaceValue, exists,
SplitByValue, collapseContexts
Use createIf() to create a tag in the target structure using a condition.
Example: Depending on the value of type (internal or external), the target tag either
internalRequest or externalRequest will be created.
Use exists() to determine whether a particular source field exists in the XML instance to be
processed. If does, exists() returns true, otherwise, false.
Example: In the source, description is optional. However, in the target, description is
mandatory.
Context Change in Message mapping works internally by using queues
If no further elements are imported at a particular hierarchy level, a Context Change is
inserted in the queue Use node functions to handle changes in the message
hierarchy.
removeContexts : deletes all context changes of a queue
SplitByValue: insert additional context changes in a queue
use removeContext() to delete the parent context of an
element.
Use removeContext() to delete all the higher contexts for an element. This deletes all
higher hierarchy levels, so that all elements of the target queue are assigned to a root
element of the source queue.
SplitByValue() is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue.
Using collapseContexts() replaces all values of all contexts with an empty
string.
Also refer these blogs.
/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
Message Mapping Simplified - Part I
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
Message Mapping Simplified Part II
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
refer this link.
Regards
Aashish Sinha
PS : reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amruth,
Check This :
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm
Thanks,
Maheshwari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please search on SDN before posting the questions it is the best way to get more useful answers.
Refr the blog and thread:
/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/sundararamaprasad.subbaraman/blog/2006/02/21/real-example-for-formatbyexample
1. remove context:
You use removeContexts () to delete all the top contexts for an element. This removes all top hierarchy levels, so that all elements of the target queue are assigned to a root element of the source queue.
Advanced user-defined functions can import either just one context into the input arrays, or complete queues. Make your selection by selecting or deselecting the Save Entire Queue in Cache checkbox in the function editor.
2. split by value:
The SplitByValue() function is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue. You then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccurs must be >0. You can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.
3. collapse context:
Using collapseContexts() puts the first values of all contexts into a context. Empty contexts are replaced with an empty string:
This can be useful if an upper-level node is to be created each time a lower-level node exists, for example. The function is useful in combination with the SplitByValue function.
4. Use one as many
You require the function useOneAsMany() if a field that only occurs once needs to be replicated as often as another field occurs in the outbound message so that the fields can be written to the target structure in pairs as a record.
http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm
5. Map with default
6.copyValue
You use CopyValue() for a frequently occurring element to copy the value of a position in the source structure and assign it to a target field. The value is copied each time the target field occurs in the target structure. However, it is copied a maximum of maxOccurs times
7.createIf
You use createIf() to create a tag in the target structure depending on a condition.
8.exists
You use this function to determine whether a particular source field exists in the XML instance to be processed. If it does, exists() returns the value true, otherwise it returns the value false.
9.Use
You use this function if you need to synchronize two queues of equal length with reference to their context change. The mapping runtime takes the values from the first queue, and the context change from the second queue. If the two inbound queues do not have the same number of values, the mapping runtime triggers an exception.
Thnx
Chirag
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.