Implementation of Node functions

...Previous

exists 

Description: This is the most frequently needed when mapping IDoc structure to file structure. Lot of times we come across a scenario where the fields (occurrence=0) are not mandatory in the IDocs are not populated in the source XML and they are required in the target XML (occurrence =1) which gives a mapping run time exception that target element cannot be created. We can handle the error by checking whether the source tag exists and if it does not we can pass an empty value, which generates the required target field. 

Fig.9 

Figure depicts exists functionality. ID (source field) is checked for its existence by using exists function. 

Fig.10

Figure depicts the existence of ID (source field), so same value is populated in target file. 

Fig.11 

Figure depicts the non-existence of ID (source field), so same the constant value defined is populated in target file.

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