Implementation of Node functions



Description: It takes the first value from all the contexts and put them into a context on the target side, So that all values come under one context.

Empty contexts are replaced by empty strings.



Figure depicts the collapseContexts functionality. 


Figure depicts the collapseContexts mapping result.


Description:  As shown in the figure below the maximum occurrence of the header node in the source is 1 and the target is unbounded. So we have only one occurrence of MatNo & MatDesc, which has to be replicated for every line Item. 


Above figure depicts, both source & target structures. 


Above fig depicts, mapping of usOneAsMany function 

In the above figure, useOneAsMany takes three arguments. 

  1. First argument “what should be repeated”.
  2. Second argument “how many times, first argument should repeat”.
  3. Third argument “Should have same context of Item (Second argument)”.It maintains the context.

MatDesc field will also be mapped in similar way like MatNo. 


Number of time Item node appears (repeats), same number of time Header node will appear in target side. So, source Item node is mapped to Target Header node. 


In above fig, Item node is duplicated.  


In above fig, Item node is duplicated twice in the source structure. Accordingly, Header is repeating twice in the target side i.e. MatNo & MatDesc.

Click here to continue....


Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image