cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Split

udo_martens
Active Contributor
0 Kudos
147

Hi,

following task is 2 high 4 me:


<root>
   <fieldA/>
   <fieldB/>      optional
</root>

should be mapped to

   
<root>
   <elm>
     <constant>A</constant>
     <value>A</value>
   </elm>
   <elm>
     <constant>B</constant>
     <value>B</value>
   </elm>
</root>

If only field A exist then only one result elm.

If field B exist then two result elm.

Any ideas?

Udo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Udo,

i think you can use global container class for this in the mapping.

/people/michal.krawczyk2/blog/2005/03/04/globalcontainer--in-graphical-mapping-xi

regards

Priyanka

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Udo,

Simple duplicate the subtree for <elm> (right click on the element in the source structure of the mapping editor) and create one mapping

fieldA -> elm

and one

fieldB -> elm

Best regards

Joachim

Former Member
0 Kudos

Hi,

its prety staight forward, if you were to do the message mapping using custom ABAP mapping or java mapping.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf

Naveen