SAP Performance Optimization Guide: Diagnose Issues and Improve Speed

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.

What is SAP performance optimization?

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.

Common SAP performance issues and their possible causes

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.

1. Slow transactions and reports

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.

2. Long-running background jobs

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.

3. High CPU or RAM usage

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.

4. Slow database queries and lock contention

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.

5. Integration delays and slow user interfaces

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.

6. Performance problems after upgrades or system changes

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.

How to diagnose SAP performance problems

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).

Step 1: Define the affected processes and establish a baseline

Before troubleshooting anything, understand two things:

  1. What is running slowly?
  2. How much slower is it running compared to normal?

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).

Step 2: Determine whether the problem is system-wide or isolated

Understand the scope of the problem.

To determine this accurately, compare several operations over the same time period.

  • If performance has slowed across the entire system, investigate the overall load and infrastructure. There may be a shortage of general system resources or a database issue.
  • If the problem is concentrated in a single report, start by analyzing that program and focus on its execution logic, SQL queries, and external dependencies.

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.

Step 3: Analyze workload and resource usage

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:

  • SM50 displays the work processes of the current server.
  • SM66 provides a system-wide view of work processes.
  • ST03N helps identify workload patterns and periods of high activity.
  • SAP HANA Cockpit can help monitor system activity, resource usage, and resource-intensive SQL statements. This is particularly relevant when investigating SAP HANA performance issues.

Note: High resource utilization alone is not the cause of a problem. It is important to determine whether it coincides with the slow operation.

Step 4: Trace database queries and ABAP execution

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:

  • ST05 analyzes SQL queries and identifies time-consuming operations.
  • SAT shows where an ABAP program is spending its time.
  • ST12, in supported environments, combines ABAP and database tracing.
  • SAP HANA execution plans show how the database processes a query and help identify costly execution steps.

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.

Step 5: Check background jobs and external dependencies

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:

  • SM37 displays background job status, start times, and execution history.
  • For SAP S/4HANA performance issues, the available monitoring and diagnostic options depend on the deployment model. In SAP S/4HANA Cloud Public Edition, use the monitoring capabilities available for the cloud environment rather than assuming that classic SAP transactions are accessible.

Which SAP diagnostic tool should you use?

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

SAP performance tuning: Solutions for common bottlenecks

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.

1. Optimize database queries and access

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.

2. Improve custom ABAP code

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.

3. Balance background job scheduling

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.

4. Review application server configuration

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.

5. Address integration and network delays

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.

When do you actually need more hardware capacity?

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:

  1. CPU usage stays high when SAP slows down
  2. The system regularly runs short of memory
  3. Background jobs keep falling behind schedule despite optimal scheduling
  4. SAP slows down as the business and data grows
  5. SAP cannot handle predictable peak workloads (e.g., month-end closing).

How to validate SAP system capacity upgrades before buying

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.

How to measure SAP performance improvements

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:

  • Transaction response time
  • Background job duration
  • Database execution time
  • CPU and memory usage

Also, check these impacts on core business processes:

  • All critical reports should finish on time
  • Integrations need to process data within the set time windows
  • End-to-end business processes should work correctly
  • Improvements in one area don’t affect resource consumption elsewhere

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.

Four habits to prevent recurring SAP performance issues

  1. Monitor critical processes. Track transaction response times, background job duration, integration performance, and CPU and memory usage. Compare results with normal performance to spot changes. In SAP HANA environments, include database activity and resource consumption in the same monitoring process.
  2. Investigate repeated problems. If the same transaction or job keeps slowing down, look for the root cause, assign responsibility for the investigation, and involve the relevant SAP specialists.
  3. Check performance after changes. Test affected transactions, reports, and jobs after software releases, code updates, configuration changes, and integration updates.
  4. Prepare for peak workloads. Before month-end closing or other busy periods, check whether critical processes can handle the expected workload.

How ACBaltica can help optimize your SAP system

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.

Frequently asked questions

Can SAP performance tuning cause downtime?

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.

Why is SAP slow for only some users?

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.

How long does an SAP performance audit take?

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.

How much does an SAP performance audit cost?

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.

What access does an SAP performance audit require?

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.

Can ACBaltica work with our existing SAP support provider?

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.

 

About the author
Sergey Prokopov
Sergey Prokopov
Head of SAP CX Department at ACBaltica. Expert in SAP Service Cloud, SAP Sales Cloud, SAP Marketing, SAP CRM and S/4HANA Customer Management with over 18 years of experience.
Subscribe