cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Determination X-Path logic

0 Kudos

Hi,

Is this possible with X-path condition or not. If Yes, How?

I tried writing doing it in several ways and I've seen several blogs in SCN, None of them helped me to meet the requirement.

In Receiver Determination.

If both  E1ADRM1 WE and its  E1ADRE1 100(sub-element EXTEND_D)   exists then send to receiver A

If E1ADRM1 WE exists and it's E1ADRE1 100(sub-element EXTEND_D) not exists then send to receiver B.

Note that E1ADRE1 100  segment occur dynamically based on the information available while creating the idoc.  So I can't depended on static counting or something.

I can achieve this using Extended RD however, I'd like to meet the requirement using basic RD.

Regards,

Mahesh.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Solution to my question:

To receiver A:

boolean(not(/ZDELVRY03/IDOC/E1EDL20/E1ADRM1[PARTNER_Q = "WE"]/E1ADRE1[EXTEND_Q = "100" and EXTEND_D != ""])) EX

To receiver B:

boolean(/ZDELVRY03/IDOC/E1EDL20/E1ADRM1[PARTNER_Q = "WE"]/E1ADRE1[EXTEND_Q = "100" and EXTEND_D != ""]) EX

Answers (2)

Answers (2)

former_member187587
Contributor
0 Kudos

First question to be asked is:

  1. Why do you have two systems recieving Deliveries?
  2. What is the buisness case when you need to route Deliveries to system B?
Snavi
Active Participant
0 Kudos

Hi Mahesh,

you can try with the condition

/DELVRY05/IDOC/E1EDL20/E1ADRM1[PARTNER_Q = "WE"]/E1ADRE1[(EXTEND_D)] EX

if this doesnt work, please share the IDoc xml from message logs