cancel
Showing results for 
Search instead for 
Did you mean: 

Multi mapping before BPM and then message routing to different IDocs

ambrish_mishra
Active Contributor
0 Kudos

I am working on PI 7.0.

I have a scenario where a message from a third party needs to be split and then mapped to multiple IDocs in the target. This decision happens based on an RFC call to SAP ECC. Before the message passes to BPM, I have done a multi mapping to make the RFC call and split the message into multiple messages. Subsequently I have taken a multi line container inside the BPM to receive these messages and process them Parforeach and then a switch is applied to handle the rest of the scenario.

Problem is when I am trying to execute the scenario, it fails in first step(multi mapping) before the BPM, it is not able to create the node for the multiple message.

To explain a bit more, Message type say M1 is linked to Message interface MI1_OB. Then I have created an abstract message interface MI1_ABS and made it as 0---unbounded. Similarly in the message mapping I have changed the occurrence of the target message type (same as source message type)

Accepted Solutions (0)

Answers (2)

Answers (2)

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Ambrish Mishra,

Please check "Performing Several Multi-Mappings in a Series" [Link|http://help.sap.com/saphelp_nwpi711/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/frameset.htm] . According it, second mapping should be able to accept this structure as input

<?xml version="1.0" encoding="UTF-8"?>
<sm:Messages xmlns:sm="http://sap.com/xi/XI/SplitAndMerge">
  <Message1>
  </Message1>

  <MessageN>
  </MessageN>
</sm:Messages>

Regards,

Raghu_Vamsee

former_member200962
Active Contributor
0 Kudos
Before the message passes to BPM, I have done a multi mapping to make the RFC call and split the message into multiple 
messages

splitting has to be done inside the BPM not outside...BPM cant be at the receiving end for a multi-mapping scenario