In previous SAP XI or PI releases, it was really hard to search on a specific value within a message payload. I once extended the XI monitor on an ABAP stack to accomplish this. It worked, but took some time and was not a standard solution.
Now, in our SAP PO 7.4 system, it is really easy to accomplish this and it is standard available.
This is just a small blog to walk you through the different steps.
Create a filter
Go to Monitoring Home (http://<host>:<port>/pimon) -> Configuration and Administration tab -> Adapter Engine -> User-Defined Message Search Configuration, and create a new filter.
You can choose freely for which interfaces you want to create a filter. Just make sure to set the filter to active.
Define search criteria
Create a new search criteria using an XPath expression. Provide a name and a description.
Use an XPath expression or choose header fields. In case you choose for an XPath expression, do not forget to indicate possible namespace prefixes.
Just to be sure, check how a specific message enters the system and see if namespace prefixes are involved.
In case you want to use the filter for older messages, make sure you create an index.
If the index is not set, only messages being processed after the filter creation are taken into account.
Currently, the search term is case-sensitive. I still need to investigate if this is a bug or a configuration problem.
Go to the Message Monitor screen -> Database tab -> Advanced (on the right-hand side).
If you are just on the database tab, looking at all messages, and you click on a message having a search attribute, an extra tab appears on the bottom of the screen: