I'm trying to use a switch in an integration process that relies on XPath for the switching logic and I am having some difficulties getting it to work.
I've tested the following and it is a valid XPath statement, but does not seem to work as I would expect in XI
/p1:BAPI_EQUI_GETDETAIL.Response/DATA_GENERAL_EXP[number(translate(READ_CRDAT, "-", ""))>=20010101]
This should return a node and if the string in READ_CRDAT is greater than 2001-01-01 and thus satisfy the EX condition. However, all of the records are rejected even though there are number of test cases that should pass.
What type should I specify in the expression editor for the XPath? Can you use the number() and translate() functions in XI? Is there a length limit to XPath expressions? Are there other known issues that prevent this kind of logical comparison?
TIA for your help.