cancel
Showing results for 
Search instead for 
Did you mean: 

Separate messages 1-n using multimapping

Former Member
0 Kudos

HI Gurus!

I need to create interface idoc -> MQ

For each segment SEG1 I need to create new separate message.

For ex.

Source:

 

<BLOARD.BLOARD.IDOC>
<IDOC>

  <SEG1>
    <DATA1>01</DATA1>
  </SEG1>

 <SEG1>
   <DATA1>02</DATA1>
 </SEG1>

</IDOC>

Target(Must be two separeted messages):

  
<OutputMT>
<IDOC_DATA>
<SEG>01</SEG>
</IDOC_DATA>
</OutputMT>

<OutputMT>
<IDOC_DATA>
<SEG>02</SEG>
</IDOC_DATA>
</OutputMT>

So in the Message Mapping I changed cardinality of reciever message to 1-unbounded and the same in the Operation Mapping.

Now when I test my MM I see two <OutputMT>.

But there is only one message in SXMB_MONi monitor and in JAVA Monitor

In SXMB_MONI message in Request Message Mapping is empty.

Any help is very appreciated

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thank you for the answers.

Now I can see in SXMB_MONI two nodes(MT) but how I can separate them to different messages?

Former Member
0 Kudos

The two different messages should appear as two attachments to your main payload. If that's the case, nothing else for you to do. The receiver adapter will take care of the rest with the splitted payload and create separate messages (say files) at the output.

This all works only if your receiver adapter is running on the AAE (java engine).

Regards,

Suddhasatta

Former Member
0 Kudos

Thank you Suddhasatta!! It works.

Answers (3)

Answers (3)

maciej_jarecki
Contributor
0 Kudos

Do cache refresh

Regards

Maciej

Former Member
0 Kudos

Hi

here are few details..

best weblog for 1:N

/people/ranga.rajan2/blog/2010/03/17/multi-mapping-with-a-simple-scenario--fledgling-kit

http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/42/f3b31d48fb1bc8e10000000a11466f/content.htm

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

Former Member
0 Kudos

Hi,

Can you test in your Operation mapping to see whether you are generating multiple messages there.

Regards

Former Member
0 Kudos

Please also refer the below link for the same issue.

Regards

Former Member
0 Kudos

Hi!

When I test my OM I've got two MT:

Messages

Message1

OutputMT

OutputMT