on 06-13-2012 1:18 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.