How often have you been asked to search through a set of messages for a particular value in the payload? Well, I suppose quite often. It is actually achievable with a little effort. This guide is here to help! 🙂

Let me explain what steps need to be done. There are 3 of them:

  1. Define custom filter in SXMS_LMS_CONF transaction.
  2. Index processed messages so the payload is accessible to your filter.
  3. Invoke your custom-made filter in SXI_MONITOR

Defining filter

  1. Go to t-code: SXMS_LMS_CONF
1.
Picture 1. General look at sxms_lms_conf

2. Create Filter as shown in below screenshot. You need to provide Name for the filter, namespace. If necessary you can also provide Party or Communication Components for sender or receiver side. Make sure to check filter ‘active’ in the left bottom corner of the pop-up window.

1a
Picture 2. Defining filter

3. Create Search Criteria as shown below. Double-click on the filter to mark it and create a search criteria. Provide name, xpath to the element you want to search through and mark both boxes in the bottom of the window.

1b
Picture 3. Defining search criteria

4. Define namespace prefixes. To do so, provide the prefix and namespace of messages you want to search through. The easiest way to dodge mistakes it so fill in required fields in steps 1- 3 according to sample message you’re building your search criteria to.

1c
Picture 4. Defining namespace

Indexing messages

Once you complete your custom configuration in SXMS_LMS_CONF, before being able to use your selection criteria, you need to index processed messages. If you can’t see any result trying to use your user-defined selection criteria in sxi_monitor you most probably skipped below steps. Follow them and then try again:

  1. Go to SE38 and run report SXMS_EXTRACT_MESSAGES.
  2. Provide time interval or range for messages to be indexed. Additionally you can fill in another filters available in the report to narrow down the range of messages to be indexed. In the end, press ‘Execute’ (F8).
2
Picture 5. Indexing report selection screen

Now you’re ready to test.

Running your custom filter in SXI_MONITOR

  1. Go to SXI_MONITOR, tab User-Defined Selection Criteria. In field name provide given filter name. Value to be found should be put in self-explanatory field Value 🙂
3
Picture 6. Running user-defined selection criteria

2. After executing search you should see the list of messages which contain requested     value.

4
Picture 7. Final result

Voila! 🙂

Here is a link to part 2 of this guide (java stack).

Advertisements