cancel
Showing results for 
Search instead for 
Did you mean: 

1:N using BPM

former_member206760
Active Contributor
0 Kudos

I understand that we can do the 1:N mapping without BPM but was just using it.

1. receive step

2. transformation ( 1 : n )

3. Block ( par for each )

4. Send ( inside the block )

i tested the  MM and OM and It is working fine and I am getting 2 separate messages in the target.

but when I test end-to-end it is generating 2 messages in the target but the data in both 2 messages if of the last occurence of OrderData in the source

Input -

<ns0:mt_src xmlns:ns0="http://1:n">

         <CompanyCode>qq</CompanyCode>

         <SalesArea>12</SalesArea>

         <OrderData>

            <OrderNumber>5</OrderNumber>

            <Customer>rrr</Customer>

         </OrderData>

         <OrderData>

            <OrderNumber>7</OrderNumber>

            <Customer>hhhh</Customer>

         </OrderData>

Output 1 -

<?xml version="1.0" encoding="utf-8" ?>

- <ns1:mt_tgt xmlns:ns1="http://1:n">

<CompanyCode>qq</CompanyCode>

<SalesArea>12</SalesArea>

- <OrderData>

<OrderNumber>7</OrderNumber>

<Customer>hhhh</Customer>

</OrderData>

</ns1:mt_tgt>

output 2 -

     same as output 1

similarly if there is one more occurence of OrderData then that i get only that data in all the splitted messages

What may be the reason

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206760
Active Contributor
0 Kudos

also one more observation is when i use block in "FOR EACH " mode..the scenario works fine

i believe the only difference between FOR EACH and PAR FOR EACH is that for each sends the message in sequence so if one fails the others behind that get stuck...whereas par for each sends parallely...

then why is par for each not working

rajasekhar_reddy14
Active Contributor
former_member206760
Active Contributor
0 Kudos

I am actually following this http://www.riyaz.net/sap/xipi-1n-multi-mapping-using-bpm/186/

My only issue is if I use the block in "ForEach" mode the scneario works ...but if i use it in "ParForEach" it does not work.

Even as per the documentation, parforeach -> sends parallel msg whereas Foreach -> send msgs in sequence....so that the next msg in the container is stopped if the msg before that is stuck

why cannot I use "parforeach" when working on  http://www.riyaz.net/sap/xipi-1n-multi-mapping-using-bpm/186/