Skip to Content

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

XPATH Condition receiver determination in PI 7.31

Hi Experts,

I am using the below expression in RECIVER PI 7.31singlestack

/p1:VDA490500/S512/ABCDE ≠ 155  OR /p1:VDA490500/S512/ ABCDE ≠ 37  OR /p1:VDA490500/S512/ ABCDE ≠ 60  OR /p1:VDA490500/S512/ ABCDE ≠ 060  OR /p1:VDA490500/S512/ ABCDE ≠ 117  OR /p1:VDA490500/S512/ ABCDE ≠ 006  OR /p1:VDA490500/S512/ ABCDE ≠ 28  OR /p1:VDA490500/S512/ ABCDE ≠ 371  OR /p1:VDA490500/S512/ ABCDE ≠ 100

Requirement is anything other than 155,28,37,060,60,371 we have to send to target.But it is not happening with above condition.

When I checked 371 is went successfully processed supposed to not to go the receiver.

What condition do I need to use restrict above values  in the XPATH message.

/p1:VDA490500[(S512/ABCDE = "155" or S512/ ABCDE= "37" or S512/ABCDE = "60" or S512/ ABCDE ="060" or  S512/ABCDE ="006" or S512/ABCDE = "28" or S512/ABCDE = "371")]

Or

(/S512[(ABCDE != '1'and ABCDE != '2' and ABCDE != '3')]) EX

Above expressions are correct as per my requirement.

Field are capitals only in the input payload.

Thanks

Prem

Former Member
replied

Hi Prem,

I am readjusting because I thought you are using or. Anyway, here is what it should look like

/p1:VDA490500/S512[(ABCDE != "155") and (ABCDE != "37") and (ABCDE != "60") and (ABCDE !="060") and (ABCDE !="006") and (ABCDE != "28") and(ABCDE != "371")] EX

Why don't you try it out.

Regards,

Mark

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question