technicalfoundationChapter 2 / 21 · Lesson 2 / 3
Classic and new ABAP Debugger — Guided debugger and evidence walkthrough
Set the correct breakpoint, step across calls and inspect the actual changing variable.
Approx. 25 minutes · Guided practice + knowledge check
This guided walkthrough 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 and a six-step runbook, references 5 tools (/h, SE38, SE80, Debugger, Call stack) and ends with a self-check question. All system data in the examples is fictional.
01Set up a safe diagnostic reproduction
Classic SAP GUI debugger and New ABAP Debugger; availability/options depend on installed SAP_BASIS release. Use fictional keys and DEV/QA data. The expected outcome is: Set the correct breakpoint, step across calls and inspect the actual changing variable.
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
02Animated investigation walkthrough
Choose any step or play the trace. The highlighted evidence and explanation change for this exact chapter. This is a teaching simulation, not a SAP GUI recording.
Active diagnostic action
Set a session breakpoint before the method call in a permitted DEV report; run with a fictional customer group B.
Before APPLY, the changing parameter is 1250.00: the wrong value is introduced later.
Check alternative: A method branch cleared the amount on an unexpected customer group.
Complete six-step runbook for this chapter
- 01 Scope.Set a session breakpoint before the method call in a permitted DEV report; run with a fictional customer group B.
- 02 Find source.Inspect LV_AMOUNT and confirm 1250.00 before the call. Capture the executing program and call stack.
- 03 Inspect.Use F5 to enter APPLY; inspect importing and changing parameters and any field-symbol references.
- 04 Test cause.Use F6 over routine subcalls and compare the amount after each step; isolate the statement that changes it.
- 05 Correct safely.Check the IF/CASE predicate, current customizing or condition input that selects the branch.
- 06 Verify.Step out, execute the complete transaction and verify amount, persisted status and a negative test in a new run.
03Read the three decisive observations
- 1.Before APPLY, the changing parameter is 1250.00: the wrong value is introduced later.
- 2.Inside APPLY the active branch clears the amount: inspect predicate and input, not the ALV display.
- 3.After changing the DEV rule, the amount is 1187.50 and persisted display agrees.
04Safe handoff and completion criteria
Never skip authorization logic or alter productive financial amounts using debugger variable editing. Use synthetic inputs and approved DEV changes.
- Positive case.Known group B applies the documented 5% discount and produces 1187.50 for test input 1250.00.
- Negative case.Unknown groups follow an explicit documented fallback without corrupting the original amount.
- Cross-process check.Display currency formatting and the value read back from the saved document agree with the calculation.
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.
- Debugging Part 1: How to Approach an ABAP Problem
- Debugging Part 2: ABAP Debugger Essentials
- Debugging Part 5: Debugging Internal Tables and Field Symbols
Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.