Skip to Content
avatar image
Former Member

Splitting Messages

Hi,

I'm facing the problem to split messages like

in this blog:

/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure

Means, an input structure like this:

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

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

<ns0:Message1>

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

<hardware>

<name>ab</name>

<processor>intel</processor>

</hardware>

<hardware>

<name>ab</name>

<processor>AMD</processor>

</hardware>

</ns1:hw_request>

</ns0:Message1>

</ns0:Messages>

Should be generate TWO files which contains

single hardware nodes.

Problem: In this blog, he splits by a node value.

I would like to generate a new instance for every

occurence of a node.

I think this weblog would like to do the same:

/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi

But I am not able to define a message name like

output[index] like he uses in integration process.

I can only select container elements and I am not

able to write them manuel. Also I can't see how his

condition for the loop is generated.

How to do this?

Thanks

chris

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 06, 2006 at 10:59 AM
    10

    Hi Chris,

    First are you able to get the 2 msgs in test tab of mapping?

    You need to create a container element "index" of category simple and type integer to accomplish this.

    In the loop condition, you need to specify "simple variable" and choose "index". Inside the loop, in send step choose the msg from container elements and by the side you can see index, choose "index" here.

    Regards,

    Jai Shankar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Chris,

      Ref weblog: /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios by Michal.

      P.S: If you have further querries, post them in a new thread. Most will not have patience to read all the replies(more than 25 now).

      Regards,

      JaiShankar.

  • Nov 06, 2006 at 10:58 AM

    Hi,

    ><i>I would like to generate a new instance for every

    occurence of a node.</i>

    Use node function SPLIT BY VALUE.

    This link has the descrption of the same,

    http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

    Also, it is possible to create N messages without BPM. Check this blog for this,

    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2006 at 11:03 AM

    Hi Christian,

    the issue with the <index>.

    This is only working for multiline containers.

    Modify your container to multiline and the field for index is ready for input when adding this container to the container step.

    Regards

    Dirk

    Add comment
    10|10000 characters needed characters exceeded