-
Technical Assistance
Request product support from SAP
-
Non-Technical Assistance
Request non-product support or provide feedback on SAP Support Portal site
Technical Assistance
Request product support from SAP
Non-Technical Assistance
Request non-product support or provide feedback on SAP Support Portal site
With Integration & Exception Monitoring you can not only collect technical message and error information, but also use product specific mechanisms to collect business context from the payload of the messages.
You can now use the integrated search mechanism in Integration & Exception Monitoring to search for it and find related messages with a certain value across platforms, e.g. find all messages related to a certain sales order number from the ABAP backend to the middleware like SAP Process Integration or SAP Cloud Platform Integration.
To successfully display and search for business context information in Integration & Exception Monitoring, please make sure that your user has the following authorizations:
For messages sent via SAP Process Integration you use so called User-Defined Search Attributes (UDS) to collect the payload information from messages.
The setup of the User-Defined Message Search is performed in the SAP PI system. You can define user-defines search attributes in the Advanced Adapter Engine, as well as in the integration Engine.
For more information please refer to the SAP Help Portal:
* for Process Integration in SAP NetWeaver 7.5 this section is under "Message Packaging"
The configuration for the data collection is done in the Integration & Exception Monitoring setup.
The collected UDS attributes will be visible in Integration & Exception on the tab 'UDS Attributes' in the PI message details.
For IDoc messages the collection of the payload content is configured in SAP Focused Run.
The first step is to collect the information on the message types, segments and fields that you want to collect from the IDoc.
Note down: Message Type, Segment name, and Field name (Fld name)
The data collector for the IDoc business context is customized via table /IMA/EDID4COLL.
The collected payload information will be visible in Integration & Exception Monitoring on the tab 'Additional Attributes' of the IDoc details.
The collection of business context from messages sent via SAP Cloud Integration is done using Groovy scripts in SAP Cloud Integration.
To collect payload information via a Groovy script, you need to create a so called Exchange Property for the step after which you want to collect the payload. To do this, you first need to find out the XPath of the information you want to extract.
To create the XPath you have to describe the path from the start of the XML message to the information you are interested in.
In this example you want to extract the Campaign ID. The XML file is pictured below.
The XPath for the Campaign ID would be:
/n0:LeadBulkReplicationRequest/LeadRequestMessage/Lead/Campaign/ID
The next step is to adjust the IFlow and add an exchange property as well as adding a Groovy script.
Add Exchange Property
def Message processData(Message message) {
//Properties
map = message.getProperties();
value = map.get("<Exchange Property name>");
def messageLog = messageLogFactory.getMessageLog(message);
messageLog?.addCustomHeaderProperty("<Exchange Property name>", value)
return message;
}
In SAP Focused Run you have to set up the monitoring for the SAP CPI system as described here. No additional setup is necessary.
The collected payload information are visible in Integration & Exception Monitoring on the tab 'Custom Headers' in the message details.
For Web Services the payload is collected by maintaining the filter field "Payload Field Name" during the Integration & Exception Monitoring setup.
The first step is to collect the payload field name from the web service message.
The configuration for the data collection is done in the Integration & Exception Monitoring setup.
The collected payload information are visible in Integration & Exception Monitoring on the tab 'Additional Attributes' in the web service message details.