Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using substring in the XPATH expression for Receiver Determination

Hello, I need a little help please. In my receiver determination, I have a condition and I need to do a "not like" check. Basically, if the first three positions of the source field does not start with a specific code, then I need to execute the condition. The condition editor does not support a "not like" operand, so I went to the XPATH expression editor. I tried to used the XPATH substring function to get the first three characters and then do a "not equal" operand, but it doesn't appear to work. There are not any runtime errors, but the condition is not executing. Any ideas on this? Does the XPATH expression support the substring function?

replied

Hi Matt,

You can use the following method:

1) Specify an XPath in the Condition Editor. For example if you want to check that there is not a Material that starts with 123.

/p1:PRODUCT/MATNR[not(starts-with(.,"123"))]

2) Choose EX (exists) for the Operator and then don't fill in anything for the Right Operand.

Thanks,

Jesse

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question