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.

/wp-content/uploads/2013/12/image002_347206.jpg

How to use XPath for searching

Generic view of XML document:

/wp-content/uploads/2013/12/image004_347213.jpg

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

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply