Skip to Content

Problem in Multiple receiver in Reciever Determination

Hello Everyone,

I am working on the scenario in which i have to send data to different system depending upon the sending payload..

My condition editor is as follows :

If

/ShipmentData/SalesCompanyCode = A or /ShipmentData/SalesCompanyCode = B \

then , Receiver 1

else /ShipmentData/SalesCompanyCode = empty

then , Receiver 2.

But, the data is not getting branched and instead, the idoc gets created in both the receiver .

Pls find the screen shot.

Kindly help me out in solving this issue....

Regards,

Ravi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jun 13, 2012 at 12:56 PM

    Hi,

    If in case u have only one occ of company code and depending upon that u have to decide the receivers then chk below condition:

    /p1:Mt/ShipmentData[SalesCompanyCode ='A' or SalesCompanyCode='B']---> Receiver 1

    /p1:Mt/ShipmentData[string-length(SalesCompanyCode)=0] ---> Receiver2

    Thanks

    Amit Srivastava

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2012 at 12:34 PM

    Hi Ravi,

    The conditions you define are not exclusive (they are not evaluated on the if-else rule). Instead, every single receiver, for which the condition is met, receives the whole message. So in your case, it means that if your message contains a shipment that has SalesCompanyCode = A or B, and another shipment that has an empty SalesCompanyCode, the message gets split and sent to both receivers.

    Regards,

    Greg

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2012 at 12:46 PM

    Hi Ravi,

    I believe the input message you were using has SalesCompanyCode=A, SalesCompanyCode=B and SalesCompanyCode = blank together; and as said by Greg, this message will be evaluated for 1st Receiver and 2nd Receiver separately. Now since both the conditions are satisfied, it would be sent to both receivers.

    It would be better to use Extended Receiver Determination and determine the receiver via message mapping at runtime in your case.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2012 at 01:38 PM

    Dear Ravi,

    You have configured reciever determination is correct in operation specific mode.

    why are you doing End to End test first do test in Test configuration tool in ID part.

    Please share piece of your payload which u applied the condition.

    And wht do u mean by empty value

    The Tag must be present on the payload as

    <SalesCompanyCode><SalesCompanyCode> for satisfying the second condition.

    thanks and regards,

    Anup Banerjee

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.