cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Determination xpath condition syntax

Former Member
0 Kudos

Is there any functional difference between these two Xpath conditional statements in a Receiver Determination...

/ABCD/XYZ/CODE = 'A123'

/ABCD/XYZ/CODE = A123

...I've seen the value done both ways, with and without the single quotes and I'm not sure if there is a reason to favor one way over the other.

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

if the element datatype is string you might have to use quote and for numeric you dont need.

Former Member
0 Kudos

The element is defined as a string, so I would expect that it would require the value to be enclosed in single quotes, but it seems to work either way. I wonder if there is some implicit casting to string happening in the PI Xpath parser that makes it work either way.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Right, I agree the behavior with respect to String. If we try for other data types like integers, float, decimals or Double , we might have to use without quotes for sure.

naveen_chichili
Active Contributor
0 Kudos

Hi William,

I agree with Bhaskar's Reply ... Also please check the below link for ref..

http://help.sap.com/saphelp_nwpi711/helpdata/en/48/d25f650d7d035be10000000a42189b/content.htm

Regards,

Naveen