ERPClimb logoERPClimb
Performance Tuning
ABAP Developmentintermediate 6 min read

Performance Part 3: Tuning in Real Projects — Measure, Fix, Verify

Preview · a free account unlocks the full lesson

Key takeaway

Run performance work like a project: define targets, reproduce with production-like volumes, find the top offenders with STAD/ST05/SAT, fix the biggest item first, verify with numbers, protect with ATC/SCI performance checks and SQL Monitor, and communicate results.

In this lessonShow sections

Visual overview

Performance Part 3: Tuning in Real Projects — Measure, Fix, Verify — learning sheetFlow: Choose a slow program and write target, data volume and current runtime → Identify its top 3 offenders with ST05/SAT → Fix the top one and record before/after numbers. Key ideas: DEFINE THE PROBLEM; REPRODUCE; FIND TOP OFFENDERS; FIX IN ORDER OF IMPACT. Watch out: Production-like volume matters: many problems (nested loops on standard tables, FAE with duplicates) only appear with large data.ERPClimb.com / ABAP / LESSON 3/10 / LEARNING SHEETPerformance Part 3: Tuning in Real Projects — Measure,Fix, Verify1 · HOW IT FLOWS1Choose a slow program andwrite target, data volumeand current runtime2Identify its top 3offenders with ST05/SAT3Fix the top one andrecord before/afternumbers2 · KEY IDEAS EXPLAINEDDefine The ProblemWhich program/transaction/job, which variant,which runtime now vs target.When: always, month-end only, for certainusers/organisational units?ReproduceQA with production-like volumes (system copy) or acontrolled measurement in production (ST05 for ashort period, SAT with sampling, STAD history).Find Top OffendersSTAD: DB vs ABAP time.ST05 sorted by total duration; structure-identicalstatements.Fix In Order Of ImpactTypical fixes: set-based reads instead of SELECTin LOOP, sorted/hashed tables for lookups,selective WHERE/index, aggregation/pushdown…3 · REMEMBER · WATCH OUTRememberStart with a target ("month-end job under 30 minutes"), notwith "make it faster".Find the top offenders with measurements; typically one or twostatements cause most of the runtime — fix those first.Verify every change with the same data and compare before/afternumbers; keep functional results identical.!Watch outProduction-like volume matters: manyproblems (nested loops on standardtables, FAE with duplicates) onlyappear with large data.4 · IN A REAL PROJECTA billing month-end job ran 3 hours and blocked downstream reporting. The team followed the worksheetapproach: STAD showed database dominance, ST05 found one SELECT inside a loop executed 180,000 times, and SATfound a standard-table lookup in a loop. Two targeted changes brought the job to 22 minutes with identical…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 and 2 gave the tools and principles behind performance tuning; this lesson shows how to actually apply them on a real assignment.

Start with a concrete target, such as "month-end job under 30 minutes," rather than the vague goal of "make it faster." Use measurements to find the top offenders — typically one or two statements are responsible for most of the runtime, and those are what you fix first.

Verify every change against the same data, comparing before-and-after numbers directly, while making sure the functional results stay identical. Production-like data volume matters a great deal here, since many problems — nested loops over standard tables, FOR ALL ENTRIES with duplicate keys — only show up once the data is large enough.

Begin by defining the problem precisely: which program, transaction, or job is involved, which variant, and what's the runtime now versus the target? Also clarify when the problem occurs — always, only at month-end, or only for certain users or organizational units?

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.