Sergey Prokopov, Head SAP CX Department at ACBaltica
Slow transactions, delayed reports, and missed processing windows can disrupt your business processes. The first instinct is often to add server capacity. However, it’s not always necessary.
The real first step is to identify where exactly the performance is being lost. SAP performance optimization helps identify bottlenecks and fix them, whether it’s custom code, database queries, system configuration, or integrations.
This guide explains SAP performance analysis step by step, which SAP performance tuning option fits which cause, and when you really need more capacity.
SAP performance optimization is the process of identifying and addressing bottlenecks that slow down or interrupt your business operations. Its goal is to understand root causes, find solutions, and improve SAP system performance.
SAP HANA optimization is a part of this process. It focuses on database-specific factors (SQL execution plans, data processing, memory consumption, resource contention, etc.)
However, a fast database does not automatically guarantee a fast SAP application.
SAP performance issues can occur at different levels of the system. We’ve listed the top issues you’ll want to know before you face them.
A transaction is an operation that a user performs in SAP (for example, opening a sales order).
Let’s say it took 3 seconds to open it yesterday, but it takes 30 seconds today. This means that the response time has increased.
The possible causes: ABAP logic that is not working efficiently; the database is taking a long time to search for or process information; there is now much more data in the tables; the server does not have enough CPU or RAM; another process has locked the required data (data locks); or SAP is waiting for a response from another system.
For example, a background job scheduled to finish by 6:00 a.m. may regularly run until 8:00 a.m. This can delay data transfers to other systems.
Possible causes: growing data volumes; the job uses a lot of CPU and RAM; several resource-intensive jobs run simultaneously and compete for resources; multiple processes try to access the same data at the same time; the program performs unnecessary operations or runs suboptimal queries.
The server has limited resources. If the load becomes too high, the system starts to run slower.
The main causes of high load are: many active users, too many background jobs, suboptimal ABAP code, large reports, and processing huge volumes of data.
SAP stores information in a database. When a user opens an order, SAP sends an SQL query to the database. The database needs to find the necessary records and return them to SAP. A problem arises if the query takes too long to execute.
Possible causes include an inefficient SQL query, complex JOINs between tables, processing too much data, high database load, or a poor query execution plan.
Lock contention is a standard SAP mechanism for protecting data. It prevents two users from modifying the same data at the same time and overwriting each other’s changes. But if the lock remains in place for a long time, the second user is forced to wait.
SAP can respond slowly even if the database works correctly. Delays can occur while the application processes data, communicates with another system, transfers information over the network, or displays the results on the user’s screen.
Possible causes for such delays include slow application processing, frontend rendering delays, network latency, slow integrations, and competing workloads.
For example, a user opens an order in SAP: the screen takes 8 seconds to appear; the database retrieves the data in 0.5 seconds; application processing takes 1.5 seconds; waiting for an external system takes 5 seconds; transferring and displaying the results takes another second.
This means there’s no point in starting to optimize the database. The main bottleneck is in the integration.
If SAP becomes slower after a particular upgrade or new integration, the change itself may be a good starting point for the investigation.
Causes might include inefficient changes to custom code, different database query execution, increased workload, configuration changes, larger data volumes, or changes to caching or workload distribution.
Before jumping to conclusions about the bottleneck, conduct SAP Performance Diagnosis.
Start with the workload overview, then move to specific transactions, response times, and resource usage. Each step will narrow the next check to get to the real bottleneck.
Tools: The diagnostic transactions listed below apply primarily to classic ABAP systems (SAP ECC and SAP S/4HANA On-Premise / Private Cloud). If you run SAP S/4HANA Cloud Public Edition, classic GUI transactions are unavailable—use the built-in Fiori monitoring apps instead. (Access to specific tools also depends on your release and user authorizations).
Before troubleshooting anything, understand two things:
This establishes the baseline for further investigation.
What to check: Compare current response times against historical averages using workload monitors (ST03N) and single-record statistics (STAD).
Understand the scope of the problem.
To determine this accurately, compare several operations over the same time period.
Watch out for edge cases: For example, a single transaction might slow down due to the specific application server the user is running on. And a system-wide issue might affect only a certain group of users.
Therefore, consider not only transactions but also users, application servers, and the time the problem occurred.
Assess what was happening at the time of the problem. Were the processor (CPU), memory, work processes, background jobs, or database heavily loaded?
In classic ABAP systems:
Note: High resource utilization alone is not the cause of a problem. It is important to determine whether it coincides with the slow operation.
If the problem is limited to a particular transaction or report, tracing can help. It records a program’s execution or individual operations for analysis and shows which operations were performed and how long they took.
Useful SAP diagnostic tools:
For example, if you see that a program executes quickly but waits for the database, you understand that you need to investigate the SQL query. If the database responds quickly but mostly waits for program execution, you go and analyze the ABAP code.
Caution: tracing adds load.
Background jobs can consume significant server resources and slow down users’ experience.
Also check external systems, such as CRM, warehouse management systems, APIs, and other services. For example, when creating an order, SAP may send data to another system and wait for a response. If the external system responds slowly, the user must wait for the operation to complete, even if SAP itself is functioning normally.
Useful SAP diagnostic tools:
| Diagnostic task | SAP tool | Purpose |
| Analyze workload and response times | ST03N, STAD | Identify workload patterns and individual operation statistics |
| Inspect work processes | SM50, SM66 | Check active work processes and server-wide activity |
| Trace database queries | ST05 | Identify expensive SQL operations |
| Analyze ABAP execution | SAT | Find time-consuming program logic |
| Combine ABAP and SQL tracing | ST12 (where supported) | Analyze both execution layers, where supported |
| Check background jobs | SM37 | Review job status, execution history, and delays |
| Analyze SAP HANA activity | SAP HANA Cockpit, execution plans | Review database activity, resource usage, and query execution |
Once you identify the root cause, apply the targeted fix.
Golden rule: always validate the results under comparable workload conditions to make sure the changes improve performance without affecting other processes.
Inspect execution plans to see how data is retrieved.
Narrow selection criteria so queries return only required fields and records, and simplify complex table JOINs.
On SAP HANA, focus on optimizing data access patterns without making unnecessary structural changes to the database.
Check the program logic. The cause may lie in repeated database accesses within loops, nested loops on large tables, unnecessary data retrieval, or inefficient searches.
For ABAP performance tuning, optimize the code. Reduce database calls, retrieve only the required data, or choose more appropriate ABAP internal table types.
If background jobs overlap, start late, or compete for system resources, review their schedules.
Reschedule resource-intensive reports for lower-load times, redistribute tasks across servers, split large tasks into smaller ones, or revise their execution frequency. However, these changes still need to meet your data processing requirements.
If monitoring indicates the application server is overloaded or lacks available worker processes, check load distribution and resource usage. The bottleneck might come from limited processing resources, uneven workload distribution, or programs that hold work processes for too long.
Review the relevant configuration against SAP recommendations for your release and environment. Simply increasing the number of work processes or memory allocation may not solve the underlying problem and could shift the bottleneck to another component.
If the analysis shows that a transaction is waiting a long time for a response from an RFC call, API, or external service, check the integration rather than immediately optimizing the database.
Comparing operation times in SAP, intermediate systems, and the receiving service will help identify the cause of the delay: a slow network, long request processing, retries, or queue backlogs.
Based on the results, reduce synchronous calls, eliminate duplicate requests, and optimize the data being transferred. Still maintain the correct transaction processing order and data integrity.
If SAP remains slow after addressing inefficient code, database queries, integrations, application servers, and overlapping background jobs, SAP performance tuning alone may not be enough.
5 signs your SAP system reaches its capacity limits:
Before investing in new hardware or cloud tiers, prove that resource exhaustion cannot be solved through configuration or workload balancing. Conduct a structured SAP sizing and hardware planning assessment to determine whether you need more CPU/RAM, expanded database capacity, or additional application servers. This way you’ll be backed by concrete metrics to justify the budget.
Measure the impact of SAP performance tuning by comparing system performance before and after each major change using similar workloads, data volumes, and conditions.
Key performance metrics:
Also, check these impacts on core business processes:
Document the baseline, changes implemented, measured results, and any remaining issues. Continue tracking key metrics over time to confirm that improvements remain effective and establish a reference point for future SAP performance optimization.
If you saw yourself in our article and noticed your SAP system is slowing down, the ACBaltica team can help you find out why and what to do next.
Based on the conducted SAP performance audit findings, ACBaltica provides personalized recommendations for your situation, distinguishing between issues that can be resolved through performance tuning and those that may require additional resources or architectural changes.
The team can also work alongside your internal IT department or existing SAP support provider to coordinate improvements and assess their impact on business operations.
Ready to improve your SAP system performance? Explore ACBaltica’s SAP Performance Optimization service and contact the team to discuss a performance audit.
Yes, but not necessarily. Some SAP performance improvements can be made while the system is running. Others might require planned downtime. It depends on the type of change and your SAP environment. An SAP performance audit will help plan the scope of work and minimize disruption.
This may be due to specific transactions, the amount of data processed, the network connection, or user interactions.
For example, one user generates a daily report, while another generates an annual report. The time it takes to process a transaction can be very different, depending on how much data there is. There might also be delays if the network is slow or if you are waiting for a response from another system.
To understand the issue, compare the activities and system response times of impacted users with those of unaffected users during the same period.
The duration of an SAP performance audit depends on the SAP landscape, the number of affected processes, the availability of performance data, and the issue’s complexity.
There’s no unified fee for an SAP performance audit, as it depends on the assessment scope, the complexity of your SAP landscape, and the required depth of analysis.
Usually, the team needs read-only access to SAP monitoring tools, authorization to run specific diagnostic traces, and access to infrastructure metrics.
However, required access depends on the SAP landscape and components being investigated.
Yes. A performance audit can complement your existing SAP support arrangements. ACBaltica can work with your internal IT team and current support provider to review available performance data, investigate identified bottlenecks, and coordinate proposed changes.