cancel
Showing results for 
Search instead for 
Did you mean: 

HOW can i rotate the loop as many lines of multi line container in BPM

Former Member
0 Kudos

Hi All

I have to send an idoc to 2 Receivers by spliting the message.

Based on the occurance of a particular source segments i need to create those many instance of targets.

IDOC ---> Rec1 (More than one message instance)

---> Rec2 (More than one message instance)

I have taken messages of Receiver into a multi line container1

and messages of Receiver 2 into another multi line container2.

HOW can i rotate the loop as many lines of multi line container.

Thans

Prasad

Accepted Solutions (0)

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Prasad,

We can use For-Each block to loop through the messages in Multiline element. But ur scenario is confusing, can u be more specific about the scenario.

Is it like that ur receiver depends on the number of source occurrence.

What is the receiver ? is it file?

raj.

former_member181955
Contributor
0 Kudos

Hi Raj

There are two webservices are 2 receivers.

In the idoc there is specific segment , which occurs unbounded,Each occurence we Need to check the value of a particual field and send to corresponding Receiver.

For Ex:

ZE1KONH (1..Unbounded)

>MSFGN =004 --> Rec1

>> MSFGN==0009 Rec2

It could be like , 1 or more segm for Rec1 and 1 or more segm for Rec2

all are for Rec1 or All are for Rec2.

so in the tranformation we need to put all message of Rec1 in corresponding multiline container as well for Rec2. Then i need to send to correspongind Receiver.

So here i need to send all splited messages to appropriate receivers

justin_santhanam
Active Contributor
0 Kudos

Prasad,

First of all u don't need BPM for it. You can achieve it using Enhanced Receiver determination. Kindly refer the below thread and check it out for my reply in page 3. I think it matches ur sceanrio. If it doesn't help then reply back, we can work on BPM for it.

raj.