cancel
Showing results for 
Search instead for 
Did you mean: 

SplitByValue Part II

Former Member
0 Kudos

Hi,

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

my source:

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

<ns0:Messages xmlns:ns0="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"?>

<ns0:Messages xmlns:ns0="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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

Try to use the CopyValue Function for actionText.

Regards,

Robin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christian,

take copyValue!

Regards Mario

Former Member
0 Kudos

That's it. I tried nearly every function in

of categories text and node funtion, but not

out of categorie constant

Thanks both for helping me.

Diffcult for giving points now. First in, first out I would say...

regards

chris