Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Searching messages based on XPath value

Report name:

ROPS_SE_PUR_SELECT_MESSAGES

Selection Screen:

Length of Output List: It should be blank or 0 to include all messages.

Date Range: Enter a start and end date for messages to be searched.

XPath: Enter the XPath in this field (detailed information in section how to use XPath)

Value: Enter the value which should match the XPath query without any quotes.

How to use XPath for searching

Generic view of XML document:

Normal XPath used everywhere:

/*[local-name()='CreditCommitmentNotification' and namespace-uri()='http://sap.com/xi/SAPGlobal/Global']/CreditCommitment/DebtorParty/InternalID/text()

XPath for using in report:

Normal XPath query will not work for this report. Some changes are required in XPath.

Only values will be searched, attributes are not searched using this report.

1.      Remove the root node, this is added by the system automatically.

The query now becomes like this: /CreditCommitment/DebtorParty/InternalID/text()

2.      The leading ‘/’ is also not required.

The query is: CreditCommitment/DebtorParty/InternalID/text()

3.      Also the ‘/text()’ is not required.

The query becomes: CreditCommitment/DebtorParty/InternalID