on 09-30-2011 8:58 AM
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
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination you might want to check that link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hello,
Have you tried using // in your conditions e.g
//COND_A02/IDOC/E1KOMG
instead of /COND_A02/IDOC/E1KOMG?
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.