In SAP systems, long-running transactions refer to business processes or activities that take a significant amount of time to complete. These transactions can have an impact on system performance and overall efficiency. If your SAP system is experiencing performance degradation, it may be due to the long-running job execution time that is caused by an expensive SQL statement. Other causes and side effects of long-running transactions can also show up in areas like waits, blocking, locks, memory bottlenecks, high process, and CPU utilization, and timeouts.
...
Navigate to the IT-Conductor main menu → Support → Downloads and download and import the following IT-Conductor SAP Transport (v6.72 IT-Conductor Function Modules MS1K90492)
...
After importing the role, you have to define the recovery activity that you want to monitor. In this case, let’s define a recovery activity for a background job
Navigate to the background utilization option on the targeted system’s menu and Target System → Background jobs, then click on the “Background Utilization” Background jobs icon → OverridesOverride
...
You may choose to create an override from zero or create an override from a template
...
If you select “create override from template”, you’ll get a list of prepared templates to create a recovery activity.
Select “AppServer Background Utilization”
...
Go to XXX → Overrides
...
All that is needed to get started tracking expensive and long SAP SQL Statements is to define the recovery activity in the background job monitoring threshold override.
How to create threshold overrides?
...
Give the alert a descriptive name
On the object criteria, indicate the following
Elapsed Time
Target System (SID)
Job Name you wish to track
User who created the job
...
Set the threshold values and the alert message that will be displayed whenever the job elapsed time goes over the threshold. The message will display the objects selected on the object criteria section
...
Click on the Save icon
When an alert notification for a long-running job is generated, a recovery action activity is also triggered
Tracking In-Flight Time
You may track the time in which a background activity had gone over the previously established elapsed time as well.
Navigate to Target System → Background jobs → In-Flight Time
...