Implementation of Node functions

...Previous

collapseContext 

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.

 

Fig.18 

Figure depicts the collapseContexts functionality. 

Fig.19 

Figure depicts the collapseContexts mapping result.

useOneAsMany 

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. 

Fig.20 

Above figure depicts, both source & target structures. 

Fig.21 

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. 

Fig.22 

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. 

Fig.23 

In above fig, Item node is duplicated.  

Fig.24 

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