Xpath Condition in Receiver Determination


SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Xpath Condition in Receiver Determination

In receiver determination various Xpath expressions used to find out the receiver.

How to use Various types of Xpath in Condition Editor?

let’s see with simple examples.

Source Structure:


Let’s consider the above source structure.

I want to send the file according to the Name field.

Substring:

If I want to send the file according to the first 2 character of  Name .

First we need to go to condition editor in the receiver determination.


Select the xpath. Edit it manually according to our requirement.


Use the Ex operator.


XI default Functionality :

One more option in the condition editor without using the substring functionality .

In the express editor select the Xpath condition.


In the condition editor select the Contains Pattern (CP) .give the first 2 character what you needed. After that use * operator. CP will check the first 2 character  exactly equals to the value which we maintained.


If you are using the * operator it will omit the string.

If you are using the + operator it will omit the one character after that it will check  “PR” value is present in the Xpath .

Node Not Exits :

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

If I want to send some files if node is not exits .How to use Xpath?

Below one will help to send the file to receiver.


Name is Not exits in the source file then the file will send to the receiver.

Substring-after:


This function will check after / symbol “PR” value is present. The same like we can able to use other functions also.

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
www.pdf24.org    Send article as PDF   
This entry was posted in sap pi 7.1 tutorials and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *