Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

6/10/2015

Explain node functions - Process Integration - SCN Wiki


Getting Started New sletters

Welcome, Guest

Login

Register

Store

Search the Community

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Lines of Business

University Alliances

Events & Webinars

Innovation

Process Integration / Process Orchestration - Process Integration - Exchange Infrastructure

Explain node functions


Added by Kubra fatima, last edited by prakasu on Apr 24, 2009
rem oveContext
You can use removeContext() to delete all the top contexts for an element. This deletes all top 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
You can insert a context change
in the queue after each value,
after each change to the value,
or after each tag w ithout a value

.
collapseContexts()copies the first value from all contexts to one context. Empty contexts
are replaced w ith an empty string.
Consider the above example , if you use collapseContext instead of splitByValue() and
occurence of room in the target is 1 to unbounded
then you w ill get room node only one time in the target because collapseContext() just take
first value from all context to one context .
Exam ple 2 :On collapseContext()

In the first target field mapping personalId is passed to SplitByValue


because personalId is in the same context and I w ant to put it in diffrent
context for each value of personalId
then in each context there w ill be only one value( see the display queue goto
design tab then right click on the the field and select displayQueue) then the
result of splitByValue is passsed to collapseContext to copy first value from
each context as there is only one value here in each context it w ill create
room node in the target as many times as there are values in the display
queue of collapseContext().
Use One As Many
It Requires 3 inputs.
1.

The values from the first mapped element(Company Code).Each context

must have single value in the queue.


2.

The occurrences from the mapped second element (Order Number).Context must be same to w hich is mapped in the first value(Company Code).

3.

The structure of the 3rd mapped element (OrderNumber).

So The useOneAsMany takes the above mentioned inputs and creates the target structure as show n in the below diagrams.

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

1/5

6/10/2015

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

Explain node functions - Process Integration - SCN Wiki

2/5

6/10/2015

Explain node functions - Process Integration - SCN Wiki

Not only for the 1-1 ocuurance.We have to use Use one as many function for 0-Unbounded occurance also.
Simple example of use one as many function.
Source and Target Structure:

Mapping Logic:

Queue and Context Formation:

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

3/5

6/10/2015

Explain node functions - Process Integration - SCN Wiki

Context of PO_No and item details are same.


Result:

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

4/5

6/10/2015

Explain node functions - Process Integration - SCN Wiki


No labels

Contact Us
Privacy

SAP Help Portal


Terms of Use

Legal Disclosure

http://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions

Copyright

Follow SCN

5/5

You might also like