cancel
Showing results for 
Search instead for 
Did you mean: 

Creating two messages going to two different receivers.

Former Member
0 Kudos
63

Hi SDN,

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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>

praveen

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

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,

Regards,

Moorthy

Former Member
0 Kudos

Thanks for your quick responses..

I am at SP14.. how 1:N multimapping done.. Is there any blog..

moorthy
Active Contributor
0 Kudos

Hi Siva,

Here is the link-

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

Regards,

Moorthy

Former Member
0 Kudos

Hey Thanks Krishna,

That was the blog i was refering to and was designing a sample test case wherein i have a File Sender and two receivers File Receiver and a Mail Reciever, receiver of the two messages on the inbound side.

I get to see the under the FIELD_LABEL_SPLTMAP the interface mapping i created for the test case(GUI Mapping) but not the real interface which has java map.

Should i create 2 Message Types for the inbound case ?

and one Inbound Message Interface cantaining the normal and error message types...Please help clear these doubts.

moorthy
Active Contributor
0 Kudos

Hello Siva,

1) Create 3 Message Types

1) for OutBound Message Interface

2) second one for Valid Structure i.e of type file type

3) for Mail Interface.

2) Similarly one Outbound INterface and 2 Inbound Interfaces.

3) Create a Java Mapping

4) Create one Interface Mapping with one SOurce Message Interface and two target Message Interfaces (i.e one for File and one for Mail). So it is 1:N Mapping.

And in the Configuration,

Use RB_SPLIT option and also conditional Receiver Determination if required.

Hope it helps,,

Regards,

Moorthy

Former Member
0 Kudos

Hello,

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!