on 12-04-2009 11:57 AM
Hi,
I'm trying to set up receiver determination with two possible receivers, A and B, depending on the content of the IDoc sent from business system. I need to check if field /ORDRSP/.../E1EDK35/CUSADD = PDA. I have no problem creating the condition when field CUSADD='PDA' exist, but I can't figure out how to create a condition which is true when there is no CUSADD='PDA'.
I have concluded that the main problem is that the E1EDK35-segment is repeating, meaning there could for instance be 4 occurences of E1EDK35, each with its own CUSADD (and with its respective qualifier). So if I use xpath condition:
/ORDERS05/IDOC/E1EDK35[CUSADD!='PDA']
it will still be created because the other E1EDK35-segments exist without field CUSADD = 'PDA'.
What I need is to check globally (entire message) if field E1EDK35/CUSADD contains value 'PDA' or not. I have played around with XPATH count-functions without success. I have also played around with Dynamic Configuration, but since receiver determination is performed before the mapping I cannot assign values to dynamic configuration using mapping.
Any hints, folks?
Thanks!
Br,
Kenneth
Hi,
First of all figure out the total values coming in all different CUSADD (I am sure there will be some fixed nubers). Let say at max you get 4 different kind of CUSADD then in your Condition Editor declare all 4 with "AND", & "OR" operater to validate your condition.
eg.
(/ORDERS05/IDOC/E1EDK35CUSADD u2260 PDA ) AND
(/ORDERS05/IDOC/E1EDK35CUSADD = XXX OR
/ORDERS05/IDOC/E1EDK35CUSADD = YYY OR
/ORDERS05/IDOC/E1EDK35CUSADD = ZZZ )
So when above conditions will be true then it will pass the data to the desired receiver.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can try this
In RD choose the option EX(Exist)
/ORDERS05/IDOC/E1EDK35CUSADD EX PDA and
/ORDERS05/IDOC/E1EDK35CUSADD != PDA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.