Skip to Content
avatar image
Former Member

SplitByValue Part II

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 08, 2006 at 08:19 AM

    Hi Christian,

    Try to use the CopyValue Function for actionText.

    Regards,

    Robin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 08, 2006 at 08:21 AM

    Hi Christian,

    take copyValue!

    Regards Mario

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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