cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Multiple receiver in Reciever Determination

former_member190358
Participant
0 Kudos

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

View Entire Topic
Former Member
0 Kudos

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

former_member190358
Participant
0 Kudos

Hello Amit,

is this ok now :

Former Member
0 Kudos

Hi,

Use String-length function and 0 wil be inside the closing square bracket and try to replicate the second condition in the same way as i have stated above and then chk.

Thanks

Amit Srivastava

Message was edited by: Amit Srivastava

Former Member
0 Kudos

Chk this:

former_member190358
Participant
0 Kudos

Hi Amit,

Should the values be in quotes like '00029606' or just 00029606 ?

baskar_gopalakrishnan2
Active Contributor
0 Kudos

if the declared type is string then give quote else leave as number

Former Member
0 Kudos

Hi,

Use single quotes (i guess u have taken this as a string filed)

Thanks

Amit Srivastava

former_member190358
Participant
0 Kudos

Hello amit and baskar,

This is how it looks like

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Looks correct now. Test and let us know the results now.

former_member190358
Participant
0 Kudos

Hello Baskar and Amit,

The testing in ID failed with "  No receiver found "  ..

The payload is as follows

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

<ShipmentData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <Carrier>NPO1</Carrier>

  <BolNumber>11731032315</BolNumber>

  <CarrierReferenceNumber />

<SalesCompanyCode>00029606</SalesCompanyCode>

  <SalesCompanyName>Panasonic Industries Europe</SalesCompanyName>

  <Container>

    <ContainerNumber>NEC99691513</ContainerNumber>

     <ShipmentEvents>

      <EventDetails>

        <EventCode>30E</EventCode>

        <Location>AMS</Location>

      </EventDetails>

    </ShipmentEvents>

  </Container>

</ShipmentData>

Former Member
0 Kudos

Hi Ravi,

>>This is how it looks like

U have entered worng XPATH...Remove "/" after shipment data.

Cross check ur condition and correct the same... it wil work

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Ravi ,

Please confirm if you have defined your Communication Component With / Without party.

If it is originally defined as with party (or party as ' * ') you may need to update your receiver determination accordingly.

Thanks,

Jyoti

Former Member
0 Kudos

Have your  solved the problem ?

If not then share your screen shot of condition editor for both the condition.

if yes them make this thread as answerd.

thanks and reagrds,

Anup Banerjee