Skip to Content
avatar image
Former Member

Creating two messages going to two different receivers.


I have a scenarion where in we have to construct two xml outputs from one source message. My Java developer has implemented a Java map for the same (as a lot of aggregation of records have to be performed). But in the outputstream he is not able to construct two messages out of the outbound message.

Basically i route the error message via the second inbound message to a mail receiver informing him the conversions missing.

Please suggest how can i do so and how can i route the message to 2 different recievers as i dont have any filter between the messages.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 06, 2006 at 05:28 PM


    You can use the message content based receiver determination. You can check a condition on of the payload elements.

    Refer to this bolg <a href="/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16">Illustration of Enhanced Receiver Determination - SP16</a>


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2006 at 05:30 PM

    HI Siva,

    Create two message types - one for Error, one for Valid

    Create a One message from Java Mapping as an Output. This output should contain the structures of Valid Message Type and Error Message type.

    Execute Transformation Step i.e 1:N MultiMapping. If you are in SP14 .. then you can do without using BPM. Otehrwise execute this 1:N message Mapping in the BPM and sent based on the condition.If Error message exists send the same.

    Hope this helps,



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      I have a similar situation, but I would just like to ensure that this is the solution I should take (Enhanced Receiver). I have an XML document coming into XI which needs to be mapped into an IDOC, then sent to two different systems (not to both of them) based on a value in the XML (the value is actually the SAP partner ID).

      Can this be done in BPM?

      Thank you!