cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Parent A as a child of Parent B SAP CPI

aayushaggarwal
Participant
0 Kudos
495

Hi Experts,

I have this source structure and I am trying to create below target structure.

Both A and B are on same level in source, but in target I am trying to put A as a child of B and the field a1 under a complex structure.

Could you please suggest, how I can achieve this please?

Source:

Source:

<root>
	<A>
	 <a1>1</a1>
	 <a2>EN</a2>
	 <a3>Yes<a3>
	</A>
	<A>
	 <a1>2</a1>
	 <a2>ZH</a2>
	 <a3>Yes<a3>
	</A>
	<B>
	 <b1>abc<b1>
	</B>
	<B>
	 <b1>abc</b1>
	</B>
	<B>
	 <b1>abc</b1>
	</B>
	<B>
	 <b1>abc</b1>
	</B>
</root>

Target:
      <root>
	<B>
	 <b1>abc</b1>
	 <A>
	   <row>
	    <a1>1</a1>
	    <a2>EN</a2>
	   </row>
	 </A>
	 <A>
	   <row>
	    <a1>1</a1>
	    <a2>EN</a2>
	   </row>
	 </A>
	</B>
	<B>
	 <b1>abc</b1>
	 <A>
	  <row>
	   <a1>1</a1>
	   <a2>EN</a2>
	  </row>
	 </A>
	 <A>
	  <row>
	   <a1>1</a1>
	   <a2>EN</a2>
	  </row>
	 </A>
	</B>
       </root>

Accepted Solutions (0)

Answers (0)