Implementation of Node functions

By Kishore Pastam, Nidhi Kukreja - Accenture

Objective:

SAP XI produces the XML documents at the inbound/outbound of the integration pipeline, there is a need for us to map the source XML doc to the target XML doc. Message Mapping editor is a built in feature, which helps to map the source and target XML messages graphically. In this document we discuss various Node Functions related to it. Following Node Functions are covered in the document: 

  • creatIf

  • removeContexts

  • replaceValue

  • exists

  • splitByValue

  • collapseContexts

  • useOneAsMany

  • sort and sortByKey

  • mapWithDefault

  • formatByExample

createIf 

Description:” I have criteria for existing”. It is used when you want to create target node or element based on some condition. 

Fig.1 

Figure depicts createIf node functionality. ID is mapped to MT_Reciever_Minor using createIf function. 

Fig.2 

Figure depicts result of mapping in Fig.1.As, the value of ID is less than 25, MT_Reciever_Minor node is created in target side. 

Fig.3 

Figure depicts createIf node functionality. ID is mapped to MT_Reciever_Major using createIf function. 

Fig.4 

Figure depicts result of mapping in Fig.3.As, the value of ID is greater than 25, MT_Reciever_Major node is created in target side.

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