cancel
Showing results for 
Search instead for 
Did you mean: 

Compare two Idoc's and send to te recievers as per the Condition.

Former Member
0 Kudos

Hi,

Scenario: Sender are a Idoc's and Receiver is Mail and File.

Sum the value of field1 of IDOC1 loop and compare with the field 2 of IDOC2. If the Condition satisfy send the data to file and mail reciever else send to only mail reciever.

I tried using a BPM. Steps used in BPM are as follow:

Step: 1

Fork -- with two branches.

Branch 1:loop1-- reciever1 -- container

Branch 2:reciever2

Step2:

Switch with two branches: Check the compare condition of the two Idoc

Branch 1:

Fork with two branches with send step with mail and file recievers

branch 2: Only mail reciever.

However if the condition is true or false the information is send mail to reciever.

I tried with the above steps, but failed.

Any changes required, please let me know.

Regards,

Manoj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manoj,

<i>However if the condition is true or false the information is send mail to reciever.</i>

That is what you want ..Right?

Mail should always be sent ..

<i>Sum the value of field1 of IDOC1 loop and compare with the field 2 of IDOC2</i>

Are you receiving N number of IDOC1?? or a compare a single field of IDOC1 with a single field of IDOC2?

Regards,

Sumit

Former Member
0 Kudos

sumit,

I recieve N number of IDOC1. I need Sum the value of field1 of IDOC1 loop and compare with the field 2 of IDOC2.

I tried using a BPM . Steps used in BPM are as follow:

Step: 1

Fork -- with two branches.

Branch 1:loop1-- reciever1 -- container

Branch 2:reciever2

Step2: Transfomation with Mapping program, source and Target message

Step3:

Switch with two branches: Check the compare condition of the two Idoc

Branch 1:

Fork with two branches with send step with mail and file recievers

branch 2: Only mail reciever.

When i checked with workflow i observe that that the message is not moving out of transformation step.But the message mapping is succesfully tested

Thanks,

Manoj