on 06-03-2013 10:35 AM
Hi Guys,
Could you please advise on the correct syntax for Not() function in XPath Receiver Determination for PI? I am trying several statements but none of them works:
not(/ZMDPU_ORDERS05/IDOC/E1EDP01[1]/E1EDP19/IDTNR[contains(.,"|")])
/ZMDPU_ORDERS05/IDOC/E1EDP01[1]/E1EDP19/IDTNR[not(contains(.,"|"))]
Please note that the XPath statement part without the Not function, works just fine, i.e.:
/ZMDPU_ORDERS05/IDOC/E1EDP01[1]/E1EDP19/IDTNR[contains(.,"|")]
Hi Evaggelos,
I am using not contains extensively in our pi environment here and it is working perfectly fine as you explained in 2nd example:
/ZMDPU_ORDERS05/IDOC/E1EDP01[1]/E1EDP19/IDTNR[not(contains(.,"|"))]
Can you make sure that multiple occurrence of the IDOC segments is not causing any issue here.
Regards,
Anurag Mahendru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Can you try using single-quotes instead of double-quotes? In the example stated here, the contains operation uses single quotes
http://www.w3schools.com/xpath/xpath_functions.asp#string
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 |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.