ERPClimb logoERPClimb

technicalfoundationChapter 2 / 21 · Lesson 1 / 3

Classic and new ABAP Debugger — Concepts and mental models

Set the correct breakpoint, step across calls and inspect the actual changing variable.

Approx. 18 minutes · Guided practice + knowledge check

This concepts lesson covers “Classic and new ABAP Debugger”, a foundation technical troubleshooting topic. The symptom it starts from: A calculation or field value changes unexpectedly in a SAP GUI transaction. It follows a 3-phase evidence flow, references 5 tools (/h, SE38, SE80, Debugger, Call stack) and ends with a self-check question. All system data in the examples is fictional.

01Understand the execution or business process

The debugger executes the real application one statement at a time. Before opening it, find the transaction event, program, screen flow or enhancement that owns the value. The command /h activates debugging for a subsequent dialog action; it is not a universal way to debug a browser-triggered HTTP request.

Use F5 Step Into for method bodies, F6 Step Over for executing a method as a unit, F7 Step Return to leave the current routine, and F8 Continue to the next breakpoint. Read the highlighted next statement carefully: it has usually not executed yet. Compare variable values before and after a step.

Variables, internal tables, reference variables and the call stack answer different questions. A table view explains contents; a call stack explains how this point was reached; watchpoints explain when a value changed. Editing a variable during debugging is a test technique, not a permanent fix.

  1. EVIDENCE PHASE 1Locate the executing program and dynpro/event
  2. EVIDENCE PHASE 2Step into/out/over; read variable and call stack
  3. EVIDENCE PHASE 3Compare before/after with a safe test case

02Three mistakes that lead to false root causes

  • Debugger launch is not equivalent to proving the program is correct.
  • Step Into may enter framework or generated code; Step Over is often more useful to keep context.
  • Field-symbol assignment refers to underlying storage; changing a referenced row can change the original table.

03Worked evidence sample

Read the fictional evidence, identify which boundary last succeeded, and predict the next safe diagnostic tool before moving to the guided investigation.

FICTIONAL SAMPLE · READ-ONLY EVIDENCENever paste live customer data
DATA(lv_amount) = CONV decfloat34( '1250.00' ).
CALL METHOD zcl_discount_demo=>apply
  CHANGING cv_amount = lv_amount.
" Observed after call: LV_AMOUNT = 0.00
" Expected for customer group B: LV_AMOUNT = 1187.50
Sample code, keys and log lines are authored for teaching; not captured from a productive SAP system.

04Choose the right tools and release context

Classic SAP GUI debugger and New ABAP Debugger; availability/options depend on installed SAP_BASIS release. Do not use a classic transaction code on a cloud edition unless it is supported by that environment and permitted for your role.

  • /h
  • SE38
  • SE80
  • Debugger
  • Call stack

05Check your diagnosis

After F5 the highlighted statement is CLEAR lv_amount. What is the safest next step?

Select an answer to see the reasoning. This self-check is not a certification examination.

06Continue studying this SAP issue

The links below preserve the original published ERPClimb lessons in their own technical/functional modules. They supplement, not duplicate, this 22nd-module teaching page.

Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.