Process Integration

PI Messages

The message flow via SAP PI can be very complex, passing different components (such as adapter engines with the module processor and messaging system, integration engines with their pipeline processing including Java & ABAP proxies, business process engine etc.) and using different adapter types (such as File-, JMS-, IDoc-, RNIF-adapters etc.).

This complexity makes it difficult to track and monitor the flow of a specific message across SAP PI. Automated monitoring of messages is essential to ensure the error-free operation of SAP Process Integration (SAP PI) and each integration scenario.

PI Channels

In order to define the communication details for a SAP PI message so-called communication channels are used in SAP PI. Both the inbound and outbound communication is maintained in the channel definition, including the adapter used for the particular interface. This way the right sender and receiver components are available during runtime of a message. Communication channels can have different statuses which influences the runtime of the PI message, too. If a J2SE adapter engine is used, J2SE adapters are used instead of communication channels to define the inbound and outbound processing.

If a communication channel or J2SE adapter is in an inactive or erroneous state the PI messages of the particular interface cannot be processed (as the sender or receiver components cannot be determined). Thus it is essential to monitor the involved communication channels or J2SE adapters of a SAP PI interface with high frequency, to be notified about failures or unavailability in time.

Cloud Integration Content

It is possible to deploy, execute, and operate cloud integration content from the SAP Integration Content Catalog in the Advanced Adapter Engine.

The Integration Gateway component as well as messages related to the deployment of cloud integration content must be monitored.

Technical Prerequisites

The following technical prerequisites have to be met in order to monitor messages in the ABAP system via ABAP proxy:

  • The managed system has SAP Basis release 7.00 or higher

The following technical prerequisites have to be met in order to monitor the integration gateway component and cloud integration content in SAP PI:

  • SAP Focused Run 3.0 SP01

The following technical prerequisites have to be met in order to monitor PI messages in the SAP PI system:

  • Managed system has PI Basis release 7.11 SP 06 or higher

For PI Java message monitoring the following prerequisites have to be met:

  • MESSAGING SYSTEM SERVICE 7.31 SP 21
  • MESSAGING SYSTEM SERVICE 7.40 SP 16
  • MESSAGING SYSTEM SERVICE 7.50 SP 08

For older support packages you can implement the following patches to enable PI Java message monitoring: 

 

Software Component Support Package Patch Level
MESSAGING SYSTEM SERVICE 7.31  SP 17  54 
SP 18  34 
SP 19  14 
SP 20  01 
MESSAGING SYSTEM SERVICE 7.40  SP 12  53 
SP 13  34 
SP 14  14 
SP 15  01 
MESSAGING SYSTEM SERVICE 7.50  SP 05  14 
SP 06  08 
SP 07  03 
SP 08  00 

Advanced Integration Monitoring Setup

Available Monitoring Categories

For Process Integration Monitoring, different monitoring categories are available:

  • PI Messages (ABAP): Collected from the ABAP business system (monitoring transaction SXMB_MONI)
  • PI Messages (Java): Collected for PI Java systems (PI message monitor)
  • PI Communication Channels: Collected for PI Java systems (PI channel monitor)
  • Cloud Integration Content: Collected for PI Java systems (PI Message Monitor and PI Component Monitor)

For the category 'PI Messages (Java)' you can collect payload information via UDS attributes from the PI message and display this payload in the AIM application in SAP Focused Run. You can then use this information to search for related messages in PI or CPI, related IDocs, or related web service calls. Find out how to set up the collection of payload information here.

Available Filter Options

You can collect all PI messages and channels or you can use a filter to restrict the data collection. The available filter options depend on the category selected:

PI Messages (ABAP)

  • Status Group: The status group of the message. Please use the input help to select a status group
  • Sender namespace: The namespace of the source of the message
  • Sender interface: The interface of the source of the message
  • Sender party: The communication party of the source of the message
  • Sender component: The component of the source of the message
  • Receiver namespace: The namespace of the target of the message
  • Receiver interface: The interface of the target of the message
  • Receiver party: The communication party of the target of the message
  • Receiver component: The component of the target of the message

PI Messages (Java)

  • Status Group: Status group of the message
    • Cancelled
    • Errors
    • Scheduled
    • Processed Successfully
  • Interface namespace: The namespace of the message
  • Interface name: The interface name of the message
  • Sender party: The communication party of the source of the message
  • Sender component: The component of the source of the message
  • Receiver party: The communication party of the target of the message
  • Receiver component: The component of the target of the message
  • UDS Attribute Name: User Defined Search criteria defined for these messages (syntax: Parameter Name=Parameter Value)

PI Communication Channels

  • Channel Name: The name of the channel
  • Party: If a party is maintained for the channel you can use it as a filter here
  • Service: The communication component of the channel

Cloud Integration Content

  • Status: Status of the message.  Use the input help to select a status.

Available Metrics

The following metrics are collected for the different Process Integration categories:

PI Messages (ABAP)

  • PI Messages in status ERROR for longer than N minutes: Indicates new PI messages in the status Error were found during the collection interval
    Metric parameters:
    • STATUS_GROUP (not changeable) = ERROR
    • OLDER_THAN_MINUTES = Only consider PI Messages older than [minutes]
  • PI Messages in status SCHEDULED for longer than N minutes: The number of new PI messages in the status Scheduled found during the collection interval
    Metric parameters:
    • STATUS_GROUP (not changeable) = SCHEDULED
    • OLDER_THAN_MINUTES = Only consider PI Messages older than [minutes]

PI Messages (Java)

  • PI Messages in status ERROR for longer than N minutes: Indicates new PI messages in the status Error were found during the collection interval
    Metric parameters:
    • STATUS_GROUP (not changeable) = ERROR
    • OLDER_THAN_MINUTES = Only consider PI Messages older than [minutes]
  • PI Messages in status SCHEDULED for longer than N minutes: The number of new PI messages in the status Scheduled found during the collection interval
    Metric parameters:
    • STATUS_GROUP (not changeable) = SCHEDULED
    • OLDER_THAN_MINUTES = Only consider PI Messages older than [minutes]

PI Communication Channels

  • Number of PI Channels in status ERROR: Indicates PI channels went into status ERROR during the last collection interval
    Metric parameters:
    • LAST_N_MEASUREMENTS = Only consider a channel if the last N measurements returned ERROR

Cloud Integration Content

  • Erroneous Messages Detected: Indicates new messages in the status Error were found during the collection interval
    • STATUS_GROUP (not changeable) = ERROR
    • OLDER_THAN_MINUTES = Only consider messages older than [minutes]