Skip to Content
0
Former Member
Nov 08, 2006 at 08:14 AM

SplitByValue Part II

31 Views

Hi,

after thinking I got the required mapping, the use-cases failed.

my source:

<?xml version="1.0" encoding="UTF-8"?>

http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_request xmlns:ns1="namespace">

<action/>

<actionText>Should appear in every msg</actionText>

<hardware>

<model/>

<type>Hardware 1</type>

<manufacturer/>

</hardware>

<hardware>

<model/>

<type>Hardware 2</type>

<manufacturer/>

</hardware>

<fto/>

<comment/>

</ns1:MT_request>

</ns0:Message1>

</ns0:Messages>

my target message:

<?xml version="1.0" encoding="UTF-8"?>

http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns2:MT_request xmlns:ns2="namespace">

<action/>

<b><actionText>Should appear in every msg</actionText></b>

<hardware>

<model/>

<type>Hardware 1</type>

<manufacturer/>

</hardware>

<fto/>

<comment/>

</ns2:MT_request>

<ns2:MT_request xmlns:ns2="namespace">

<hardware>

<model/>

<type>Hardware 2</type>

<manufacturer/>

</hardware>

</ns2:MT_request>

</ns0:Message1>

<ns0:Message2/>

<ns0:Message3/>

<ns0:Message4>

<ns1:MT_Order_EP7_response xmlns:ns1="namespace">

<ErrorCode>Data received</ErrorCode>

</ns1:MT_Order_EP7_response>

</ns0:Message4>

</ns0:Messages>

You can see, field actionText only appears in the first message. I use SplitByValue on the hardware node so I thought, that also a direct mapping between the field actionText would create an entry in every instance.

For every hardware node he create an own message like he should.

Why does actionText appear only in the first instance???

thanks

regards

chris