-
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
IDocs (Intermediate Documents) are standard containers for exchanging data between applications. Between SAP applications they are transferred using the ALE (Application Link Enabling) layer which again uses either tRFC or File technology as the underlying technique.
An IDoc contains different types of information. It contains the application data to be exchanged (e.g. a sales orders) as well as technical data providing information from where to where the IDoc is supposed to be sent. Furthermore, the IDoc also contains status information that shows which processing step within the data exchange the IDoc is currently in. These statuses can indicate error situations or success situations. Some of them can be intermediate statuses that are indicating backlog situations.
For an end-to-end ALE monitoring it is necessary to monitor the various IDoc statuses in the outbound as well as the inbound direction.
The IDoc monitoring functions in IF Monitoring enable you to restrict the monitoring to specific IDoc interfaces based on the IDoc's header and status information. The monitoring intends to report on errors and growing backlogs for these specific IDoc interfaces on the one hand (monitoring template “IDoc (Real-time Monitoring)”), and to provide statistical data on the IDoc traffic like the throughput and the performance of IDoc processing on the other hand (monitoring template “IDoc (Analysis)”). If needed the monitoring can also be restricted to certain IDoc contents which enables you to increase the granularity of the monitoring even more.
Technical Prerequisites
The following technical prerequisites have to be met in order to use this template:
If you want to use the parameters filtering the IDocs based on their payload (IDoc data records) the system user that executes the data collection has to be assigned additional authorizations on all managed systems:
Check which user runs the background job: BPM_DATA_COLLECTION*
Add the following authorizations to this user:
Authorization Object | ID | Field |
---|---|---|
S_IDOCDEFT | EDI_TCD | WE30 |
ACTVT | 03 | |
S_CTS_ADMI | CTS_ADMFCT | TABL |
This monitoring template provides metrics to monitor IDoc errors and IDoc throughput.
Note: The metrics of this managed object can be used for monitoring and alerting. However, the data cannot be used as an input for Business Process Analytics and BPO Dashboards.
Metric Name | Description | MAI Category | Since SP |
---|---|---|---|
Current number of erroneous IDocs (Real-time) (Delta) | Number of erroneous IDocs since the last collector run. | Exceptions | 7.1 SP12 |
Current number of erroneous IDocs (Real-time) (Total) | Number of erroneous IDocs for a specified timeframe (measured in hours). | Exceptions | 7.1 SP12 |
Current number of processed IDocs (Real-time) (Delta) | Number of processed IDocs since the last collector run. | Performance | 7.1 SP12 |
Current number of processed IDocs (Real-time) (Total) | Number of processed IDocs for a specified timeframe (measured in hours). | Performance | 7.1 SP12 |
Metric Name | Description | MAI Category | Since SP |
---|---|---|---|
Total number of erroneous IDocs (Analysis) | Number of erroneous IDocs created within a specified timeframe. | Exceptions | 7.1 SP10 |
Total number of processed IDocs (Analysis) | Number of processed IDocs created within a specified timeframe. | Performance | 7.1 SP12 |
Average time to process IDocs (Analysis) | Average time to process IDocs within a specified timeframe. | Performance | 7.1 SP10 |
Maximum time to process IDocs (Analysis) | Maximum time to process IDocs within a specified timeframe. | Performance | 7.1 SP12 |
Percentage of IDocs in total (Analysis) | Number of matching IDocs compared against the total number of IDocs created within the same timeframe for the same interface. | Performance | 7.1 SP12 |
Current number of erroneous IDocs (Analysis) | Number of erroneous IDocs created within a specified timeframe whose current IDoc status matches the customized values. | Exceptions | 7.1 SP12 |
Current number of processed IDocs (Analysis) | Number of processed IDocs created within a specified timeframe whose current IDoc status matches the customized values. | Performance | 7.1 SP10 |
Percentage of current IDocs (Analysis) | Number of matching IDocs whose current IDoc status matches the customized values compared against the total number of IDocs created within the same timeframe for the same interface. | Performance | 7.1 SP12 |
The Interface and Connection Monitoring setup can be accessed via SAP Solution Manager Configuration (SOLMAN_SETUP).
To access the Integration Monitoring setup please go to SAP Solution Manager Configuration (SOLMAN_SETUP) → Application Operations → Integration Monitoring → Interface and Connections.
Note: If you didn't perform the infrastructure configuration yet, please follow the Interface and Connection Monitoring Setup with SAP Solution Manager 7.2.
Navigate to the Define Scope step. You can create a new scenario or use an existing one. Make sure the sender and the receiver system are part of the Interface and Connection Monitoring scenario.
Create the Interface Channel:
Maintain the Interface:
The information needed to maintain header information of the managed objects can be found either by viewing the control record of an example IDoc (BD87), in transaction WE20, WE05, or directly in table EDIDC.
Wildcards can be used in all select-option fields. Click the Expert Mode button to display all available parameters.
Direction (mandatory): Direction of the message flow from the perspective of the monitored system. If the direction is INBOUND fill in sender information for the parameters below. If the direction is OUTBOUND fill in receiver parameters below. This field is automatically filled based on the measuring point.
Note: Additional Information
Select Metrics:
On the Metrics tab, select the metrics you want to monitor. Please note that the selected metrics are collected for each IDoc interface defined above.
Enter Metric Parameters:
All metrics:
Parameter set name: You can enter a name for the parameter set to distinguish it if you have more than one.
Status Number(s) (mandatory): IDoc Status you want to monitor, e.g. 51 for IDoc in error.
Status Message Qualifier (Expert field): This field identifies the origin of the messages which are transmitted in the status, e.g. SAP messages are identified with SAP.
Status Message ID (Expert field): Status Message ID, e.g. E0.
Status Message Number (Expert field): Status Message Number, e.g. 099.
Min. Status Age (Expert field): Defines the time an IDoc has to be in a certain status to be considered. "Minimum Status Age" needs to be specified in minutes.
Status Counter (Expert field): The number of times an IDoc has to have a certain status before being considered in the data collection.
For best practices on which statuses to use for which metric, refer to the Further Information section → Setup Best-Practice for Monitoring Template IDoc (Real-time Monitoring) below.
Note: Additional Information
You can maintain attributes as described in the Interface and Connection Monitoring Setup with SAP Solution Manager 7.2 on the Attributes tab.
Thresholds and the collection schedule are maintained in the next step of the guided procedure. Once you have maintained all your channels, click Next in the main guided procedure to move to the Activation step.
Maintain Thresholds and Schedule:
Navigate to the Define Scope step. You can create a new scenario or use an existing one. Make sure the sender and the receiver system are part of the Interface and Connection Monitoring scenario.
Create the Interface Channel:
Maintain the Interface:
The information needed to maintain header information of the managed objects can be found either by viewing the control record of an example IDoc (BD87), in transaction WE20, WE05, or directly in table EDIDC.
Wildcards can be used in all select-option fields. Click the Expert Mode button to display all available parameters.
For some parameters you can select the Group-by flag (the check-box next to the parameter input field). If this flag is set one metric variant will be created for each distinct parameter value.
Direction (mandatory): Direction of the message flow from the perspective of the monitored system. If the direction is INBOUND fill in sender information for the parameters below. If the direction is OUTBOUND fill in receiver parameters below. This field is automatically filled based on the measuring point.
End of Time Frame (Expert Field): A calculated value that acts like the "to" value for the IDoc timeframe. For more information see notes below.
Note: Additional Information
The selection parameters; Selected Time Frame and End of Time Frame, define the time window for which IDocs should be evaluated on the managed system. As a minimum input, Selected Time Frame has to be filled which sets the maximum age for the IDocs. Optionally you can provide an input for End of Time Frame, which sets the minimum age of the IDocs. If you leave this parameter blank all IDocs up to the point of data collection are evaluated. The Selected Day parameter can be filled with values TD (to monitor the whole current day) or YD (to monitor the whole day yesterday).
For historic reasons, the Selected Time Frame parameter can be filled with values TD (to monitor the whole current day) or YD (to monitor the whole day yesterday). Apart it is possible to monitor dynamic time ranges. The parameter has to be maintained in the following way:
Syntax = {Placeholder}{Operator}{Offset}
The {Placeholder} has to be prefixed by a dollar sign ($). The optional {Offset} is entered as an integer value after the {Operator}. For {Operator}, you can choose the following signs:
"-": decrements the offset
"+": increments the offset
For the placeholder, the following keywords are available:
Placeholder | Description | Unit of Offset |
---|---|---|
$TIMEM |
Timestamp now |
Minutes |
$TIMEH |
Timestamp now |
Hours |
$TIMED |
Timestamp now |
Days |
$HOURR |
Current full hour |
Hours |
$TODAY |
Current day |
Days |
$FDOCW |
First day of current week |
Days |
$LDOCW |
Last day of current week |
Days |
$FDOPW |
First day of previous week |
Days |
$LDOPW |
Last day of previous week |
Days |
$DELTA(1) |
Delta read (only IDocs created since last data collection) |
No Offset allowed |
(1) Any offset for placeholder $DELTA is ignored. In delta mode, the data collector gets all IDocs which were created since the last data collection, up to the current time.
Note: Performance Warning
The dynamic time frame logic can technically select a long time frame (such as the last 180 days), but such selection conditions may severely impair the performance of the managed system, and even cause the data collector to dump. Select the timeframe carefully. You should run the data collector regularly (for example daily, for the previous day) rather than less often for a longer time frame. Longer time frames can be viewed in the BW reporting tools.
Select Metrics:
On the Metrics tab, select the metrics you want to monitor. Note that the selected metrics are collected for each IDoc interface defined above.
Enter Metric Parameters:
Metrics: Total number of erroneous IDocs (Analysis), Total number of processed IDocs (Analysis), Current number of erroneous IDocs (Analysis), Current number of processed IDocs (Analysis):
For the Total Number metrics, an IDoc contributes to the measured value as soon as it took over one of the specified statuses at least once during its processing. This means, the current status of the IDoc does not necessarily has to be one of the specified statuses; all status records are considered. In contrast, the Current Number metrics counts only those IDocs whose current status is one of the statuses as provided in the Status Number(s) parameter.
Parameter set name: You can enter a name for the parameter set to distinguish it if you have more than one.
Status Number(s) (mandatory): IDoc Status you want to monitor, e.g. 51 for IDoc in error. You can provide more than one status number here.
Status Message Qualifier (Expert field): This field identifies the origin of the messages which are transmitted in the status, e.g. SAP messages are identified with SAP .
Status Message ID (Expert field): Status Message ID, e.g. E0.
Status Message Number (Expert field): Status Message Number, e.g. 099.
Min. Status Age (Expert field): Defines the time an IDoc has to be in a certain status to be considered. The Minimum Status Age needs to be specified in minutes. Only available for current number metrics.
Status Counter (Expert field): The number of times an IDoc has to have a certain status before being considered in the data collection.
Relevant Status Rec. (Expert field): Rules against which status record the status message parameters are compared. Possible values are First, Last, and Match Status Parameter set. If no value is maintained the data collector uses value Last as the default.
Min. Proc. Time (s) (Expert field): If set, an IDoc is only taken into account if the time difference between IDoc creation time and the creation time of the relevant IDoc status exceeds the Minimum Processing Time.
These metrics measure the IDoc's processing time between two status numbers (initial and final status) and return either the average processing time for all IDocs, or the maximum time it took to process one of the IDocs out of the subset of all matching IDocs. For calculating the processing time the time-stamp of the status record which was created when the IDoc entered the specified status for the first time is used.
Parameter set name: You can enter a name for the parameter set to distinguish it if you have more than one.
Initial Status Number (mandatory): Initial status number from which you want to start the measurement, e.g. 50 for IDoc added, or 51 to measure the TTR for IDoc Errors.
Final Status Number (mandatory): The status number for which you want to end the measurement, e.g. 53 for Application Document posted.
Final IDocs only?: Possible values are X and ' '. If set, only those IDocs are evaluated which already entered the Final Status Number.
Status Message Qualifier (Expert field): This field identifies the origin of the messages which are transmitted in the status, e.g. SAP messages are identified with SAP.
Status Message ID (Expert field): Status Message ID, e.g. E0.
Status Message Number (Expert field): Status Message Number, e.g. 099.
Relevant Status Rec. (Expert field): Rules against which status record the status message parameters are compared. Possible values are First, Last, and Match Status Parameter set. If no value is maintained the data collector uses value Las” as the default.
Min. Proc. Time (s) (Expert field for Avg. Time to Process IDocs): If set, an IDoc is only taken into account if the time difference between IDoc creation time and the creation time of the relevant IDoc status exceeds the Minimum Processing Time.
Metrics Percentage of IDocs in total (Analysis) and Percentage of Current IDocs (Analysis):
These metrics calculate the percentage of IDocs created in a specified status within a given time frame. In order to calculate the percentage, the number of matching IDocs (having one of the specified status(es)) is compared against the number of all IDocs created the same day in the same interface (i.e all IDocs which have the same IDoc header criteria)
For the Percentage of IDocs in total (Analysis) metric, an IDoc contributes to the measured value as soon as it took over one of the specified statuses at least once during its processing. This means, the current status of the IDoc does not necessarily have to be one of the specified statuses; all status records are considered. In contrast, the Percentage of Current IDocs (Analysis) metric considers only those IDocs whose current status is one of the statuses as provided in the Status Number(s) parameter.
Parameter set name: You can enter a name for the parameter set to distinguish it if you have more than one.
Status Number(s) (mandatory): IDoc Status you want to monitor, e.g. 51 for IDoc in error. You can provide more than one status number here.
Status Message Qualifier (Expert field): This field identifies the origin of the messages which are transmitted in the status, e.g. SAP messages are identified with SAP.
Status Message ID (Expert field): Status Message ID, e.g. E0.
Status Message Number (Expert field): Status Message Number, e.g. 099.
Min. Status Age (Expert field for Percentage of Current IDocs): Defines the time an IDoc has to be in a certain status to be considered. Minimum Status Age needs to be specified in minutes. Only available for current number metrics.
Status Counter (Expert field): The number of times an IDoc has to have a certain status before being considered in the data collection.
Relevant Status Rec. (Expert field): Rules against which status record the status message parameters are compared. Possible values are First, Last, and Match Status Parameter set. If no value is maintained the data collector uses value Last as the default.
Min. Proc. Time (s) (Expert field): If set, an IDoc is only taken into account if the time difference between IDoc creation time and the creation time of the relevant IDoc status exceeds the Minimum Processing Time.
Refer to the Further Information section → Set up “IDoc (Analysis)” for Reporting Purposes for a more detailed explanation on how the different metric parameters act together.
You can maintain attributes as described in the Interface and Connection Monitoring Setup on the Attributes tab.
Thresholds and the collection schedule are maintained in the next step of the guided procedure. Once you have maintained all your channels, click Next in the main guided procedure to move to the Activation step.
Maintain Thresholds and Schedule:
The monitor checks the status record of the selected IDocs and counts the number of IDocs that meet the selection criteria and are in the respective status. Depending on the key figure different statuses could be interesting. In the graphic in the beginning of this page all status in RED are real error status, while the status in YELLOW are intermediate status. An IDoc usually passes these intermediate statuses in its lifetime, so this doesn't mean a problem, however a very high or growing number of IDocs in intermediate status can indicate a backlog (e.g. a problem on ALE level).
We have two different types of key figures for exceptions and performance, Delta number and Total number monitors.
Which statuses should be monitored depends very much on your individual ALE scenario and your past experience with IDoc processing.
In the following we will highlight statuses that are considered as being critical and are recommended to be monitored. Additionally it is recommended to check for errors or backlog situations in the past and include those into the monitoring concept, if necessary.
Outbound IDoc Monitoring
Error Monitoring
The following statuses are considered error statuses and should be monitored for error monitoring.
Status | Description |
---|---|
02 | Error passing data to port (e.g. port not available, file system not available etc.) |
20 | Error triggering EDI subsystem (e.g. error during OS script processing) |
26 | Syntax error (e.g. too many segments, wrong IDoc structure etc.) |
29 | Error in ALE service (e.g. errors with field conversion etc.) |
37 | IDoc added incorrectly |
If ALE-Audit is used also the status 40 should be monitored representing application errors. The status is the status on the receiver system.
Status | Description |
---|---|
40 | Application document not posted (application specific error situations) |
If converters (e.g. Seeburger, SAP Business Connector etc.) are used, the following statuses are relevant for technical error monitoring.
Status | Description |
---|---|
04 | Error within control information of EDI subsystem |
05 | Error During Translation |
07 | Error during syntax check |
09 | Error during interchange handling |
11 | Error during dispatch |
15 | Interchange Acknowledgement negative |
17 | Functional Acknowledgement negative |
Backlog Monitoring
The following intermediate statuses should be considered for backlog monitoring.
For a backlog monitoring the Status Age parameter needs to be considered. In some ALE scenarios the IDocs will be processed immediately and in other scenarios the IDocs are gathered and processed by background jobs (e.g. every 60 minutes). Therefore, it makes sense to set the parameter for status age to e.g. 60 minutes in order to avoid being alerted because of an intermediate backlog situation.
Status | Description |
---|---|
03 | Data passed to port OK (Only if report RBDMOIND is running too many IDocs in status 03 indicate a backlog, as the report switches the status 03 to status 12! Otherwise 03 can be a final status.) |
30 | IDoc ready for dispatch (if immediately the alert should be triggered immediately, otherwise depending on the scheduling of the RSEOUT00) |
If ALE-Audit is used also the status 39 on the receiver system should be monitored.
Status | Description |
---|---|
39 | IDoc ready to be transferred to application (if immediately the alert should be triggered immediately, otherwise depending on the scheduling of the RBDAPP01 report) |
Inbound IDoc Monitoring
Error Monitoring
The following statuses are considered error statuses and should be monitored for error monitoring.
Monitoring for Application Errors
Status | Description |
---|---|
51 | Application document not posted (application specific error situations) |
Monitoring for Technical Errors
Status | Description |
---|---|
65 | Error in ALE service (e.g. errors with field conversion etc.) |
60 | Syntax error (e.g. too many segments, wrong IDoc structure etc.) |
56 | IDoc with errors added (e.g. Partner not found) |
66 | IDoc is waiting for predecessor IDoc (serialization) [with buffer time on status] |
Backlog Monitoring
The following intermediate statuses should be considered for backlog monitoring.
For a backlog monitoring the Status Age parameter needs to be considered.
Status | Description |
---|---|
64 | IDoc ready to be transferred to application (if immediately the alert should be triggered immediately, otherwise depending on the scheduling of the RBDAPP01) |
75 | IDoc is in inbound queue (if sent via qRFC) |
In case of an IDoc alert it is desirable to have direct access to these IDocs without having to search for them in the managed system via WE05 or BD87. For this purpose the Detail Info view was developed also for IDocs.
The Detail Info function allows you to display IDoc details in different views. Error View (Alerted IDocs) is displayed by default when you first call this function. As the name indicates, this view contains information about all IDocerrors that triggered the selected alert. Once in the function you can switch to Content View (Alerted IDocs) which contains information on monitored segments.
To open the Detail Info list in the managed system, make sure you have the authorizations described in SAP Note 1875650 - Authorization check for accessing "Detail Info".
You can access the Detail Info list by using the alert details for the real-time monitoring alerts.
Access Detail Info:
Once you have entered the detail info, you can switch between the Error View and Content View using the corresponding buttons in the UI.
Both views show specific IDoc properties. The following columns remain the same in both views:
Error View
The Error View displays the following additional IDoc properties:
Content View
The Content View provides information about selected IDoc contents:
Additional Information
You can also choose between the Alerted IDocs and All IDocs modes using the corresponding button.
As previously stated, Alerted IDocs lists all IDocs that triggered the alert from which you called the detailed display (provided that the IDoc Age has not yet been exceeded; see above). The current status of these IDocs is displayed so that you can see whether the problem still exists or whether it was solved between when the alert was raised and the detail display was called.
Example
An alert was raised at 8 a.m. for IDocs with status 51. You call the detailed display at 9 a.m. Within this hour, a batch job was triggered that reprocessed these failed IDocs successfully. This means that these IDocs are displayed with final status 53 and it is clear that no further action is required.
If you switch to All IDocs, the database is searched for all IDocs that currently meet your selection criteria. This means IDocs that were reprocessed successfully between when the alert was raised and the detailed display was called are no longer displayed (because they no longer fulfill the IDoc status selection criterion). All IDocs that meet the selection criteria but were created after the alert was raised are displayed in addition. This enables you to immediately deal with IDoc errors for which alerts have not yet been triggered in the Alert Inbox.
Additional Push-buttons
In order to display more detailed information on the alerted IDocs and also to enable error handling, several additional functionalities can be accessed from the detail display functionality.
Reprocessing of IDocs should only be executed when the underlying error of the IDoc failure is corrected. You can reprocess IDocs only if your user has assigned the appropriate authorizations, and if the IDoc is not in a final (green) status. The result of the IDoc reprocessing is displayed afterwards.
All IDocs that trigger alerts are stored in a buffer table on the managed system so that they can be displayed later. However, buffering is restricted based on the IDoc Age parameter (see above). The buffering time is calculated as follows:
Examples:
If you call the detailed display after the buffering time has passed, the display is either called with no IDocs listed at all, or it contains only some of the IDocs for the alert selected. Still you can always trigger a live data collection with the All IDocs button (see below) in order to get any IDocs that currently match the selection criteria but have not been alerted yet.
This section contains additional information on the behavior of the parameters on metric level for the IDoc Analysis. You will also find some example monitoring scenarios here.
Status Counter Parameter
If you are interested in monitoring not the first occurrence of a certain status number (e.g. as the IDoc might be subject to automated reprocessing in failure case), you can set the Status Counter parameter to a finite value. Then, only IDocs are alerted which fulfill this additional condition.
Caution: For the count and percentage metrics only the lowest status number maintained will be taken into account for this additional check. For the processing time metrics the status counter check is only applied to the status number maintained as the final status.
Minimum Status Age Parameter
For the Current number of erroneous IDocs (Analysis), Current number of processed IDocs (Analysis) and Percentage of current IDocs (Analysis) metrics, it is also possible to provide a Minimum Status Age in minutes. If this parameter is set, the creation time-stamp of the current status is checked against the settings in this parameter. Only if the current status resides longer in this status than specified in Minimum Status Age, the IDoc is taken into consideration.
This way you avoid to be alerted too early on a certain critical situation. For example, if you like to monitor intermediate statuses, you might be interested only in IDocs which do not leave this intermediate status as expected, but remain in this status too long.
Minimum Processing Time Parameter
The Minimum Processing Time parameter enables you to restrict the data collection only to long-running IDocs, which took more time to reach the Final Status Number since their creation than specified in the Minimum Processing Time parameter.
Example
For example, you like to count the number of long-running IDocs in status 53.
Imagine IDocs on your system normally reach this status 53 in average 20 seconds after they have been created. Thus you like to count only the number of IDocs which exceed this average processing time. By setting the Minimum Processing Time to 20, the data collector ignores all IDocs which reached status 53 faster than these 20 seconds. In the example below, only IDoc 2049998 would be taken into account, but not 2050000:
Parameters for the IDoc Content
The following further parameters are available aiming at the content of the IDoc status message:
The first three parameters can be used to filter the IDocs by a certain status message (e.g. if you only want to be alerted for a specific application-related error the IDoc runs into). The Relevant Status Record parameter enables you to define which of the matching status records are to be queried against the status message parameters. Three options exist: