cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Conditional RD

Former Member
0 Kudos

Hi,

I am facing a problem while creating XPATH condition in the Receiver Determination.

The below condition is not working.


/COND_A02/IDOC/E1KOMG[KVEWE='A'] AND 
/COND_A02/IDOC/E1KOMG[VKORG='7102' OR VKORG='6102' OR VKORG='6108'] AND 
/COND_A02/IDOC/E1KOMG[KOTABNR='304' OR KOTABNR='910'] AND 
/COND_A02/IDOC/E1KOMG[KAPPL='V'] AND 
/COND_A02/IDOC/E1KOMG[KSCHL='ZM01' OR KSCHL='ZBP1']

I am getting the error "No Receiver Could be Determined".

I even tried without the single quotes for values in the above condition and also tried the below condition:


(/COND_A02/IDOC/E1KOMG/KVEWE=A AND 
((/COND_A02/IDOC/E1KOMG/VKORG=7102) OR (/COND_A02/IDOC/E1KOMG/VKORG=6102) OR /COND_A02/IDOC/E1KOMG/VKORG=6108)) AND 
((/COND_A02/IDOC/E1KOMG/KOTABNR=304) OR (/COND_A02/IDOC/E1KOMG/KOTABNR=910)) AND 
/COND_A02/IDOC/E1KOMG/KAPPL=V AND 
((/COND_A02/IDOC/E1KOMG/KSCHL=ZM01) OR (/COND_A02/IDOC/E1KOMG/KSCHL=ZBP1)) EX)

Still no success. Please give me your suggestions for correcting the above condition.

Thanks in advance,

Prasanna

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination you might want to check that link

prasanna_vittal
Participant
0 Kudos

Hi Shabarish,

Thanks for your blog. I somehow missed that while searching

It solved my problem. I think the issue with my code was to use 'and' and 'or' outside the square brackets and also in CAPS.

The below condition works perfectly:


(/COND_A02/IDOC/E1KOMG[KVEWE="A" and (VKORG="7102" or VKORG="6102" or VKORG="6108") and 
(KOTABNR="304" or KOTABNR="910") and KAPPL="V" and (KSCHL="ZM01" or KSCHL="ZBP1")] EX )

Thanks,

Prasanna

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Have you tried using // in your conditions e.g

//COND_A02/IDOC/E1KOMG

instead of /COND_A02/IDOC/E1KOMG?

Hope this helps,

Mark

prasanna_vittal
Participant
0 Kudos

Hello Mark,

I tried this just now. No luck.