Skip to Content
avatar image
Former Member

SAP IDOC to multiple JMS

Hi,

I'm eric. I'm new with XI and I have a requirement that will trigger an IDOC from SAP then XI should output multiple JMS messages depending on the number of items that the IDOC contains. For example. for IDOC WMMBID02, it has header segment E1MBXYH and item segment E1MBXYI. If IDOC sent from SAP has 5 items or 5 E1MBXYI segments, there should be 5 JMS messages sent to the 3rd party system. There will be one message sent per item. The messages can be sent in no particular order as long as there are separate JMS messages per item.

Please advise the step by step procedure to be done for the Design and Configuration. Hope someone can help me.

Thanks,

Eric

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 25, 2011 at 08:13 AM

    Hi eric,

    You need to create a target message type.

    And in Mapping Editor Signature tab you need change the occurencr to 0...unbounded.

    Then do mapping based on your condition and in target side create multiple messages.

    This will be basically 1:N mapping.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2011 at 08:15 AM

    You have to write mapping logic to genarate multiple messages based on occurance of E1MBXY , this is pretty easy.

    search in sdn for IDoc to JMS scenario , you will find usefull links

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 25, 2011 at 08:49 AM

    Hi,

    You can do multimapping for your requirement.

    Please refer the below blog for more info.

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

    Though the blog is for Idoc to file, it will work for Idoc to JMS also. Since you have only one target message type, make th eoccurrence of the target message as 0...unbounded. In the mapping, generate the number of target messages based on the item segment, as per your requirement. Your operation mapping occurrence for target should also be 0.. unbounded.

    For ID part, there is no change. Configure like simple Idoc to jms scenario.

    Regards

    Add comment
    10|10000 characters needed characters exceeded