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