Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Generating target nodes dynamically in message mapping

Hi XI GURUS

I am trying to generate target node using using more then source node. Is it possible to do this.

I need this as in source I have 2 different nodes (0 to unbounded) and in target I want to create corresponding number of target nodes. For e.g if I have 2 + 1 nodes in source then I want to create 3 nodes in target

Source as below

<FIRSTNAME>

<Raj>

<Kum>

</FIRSTNAME>

<FIRSTNAME>

<Naveen>

<Kumar>

</FIRSTNAME>

<CITY>

<bANGALORE>

</CITY>

Desired output in target as below

<ADDRESS>

<qwerty1>

<ADDRESS>

<ADDRESS>

<qwerty2>

<ADDRESS>

<ADDRESS>

<qwerty2>

<ADDRESS>

Can i follow an alternative approach (using java function) of counting the total number of occurences of source nodes and generating as many number of the target node

Thanx

Not what you were looking for? View more on this topic or Ask a question