technicalfoundationChapter 2 / 21 · Lesson 3 / 3
Classic and new ABAP Debugger — Root-cause case, remediation and assessment
Set the correct breakpoint, step across calls and inspect the actual changing variable.
Approx. 30 minutes · Guided practice + knowledge check
This incident case 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.
01Incident briefing: identify what really failed
A calculation or field value changes unexpectedly in a SAP GUI transaction. You are investigating a fictional case; the task is to prove which boundary is responsible without damaging business state.
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
02Separate facts from competing hypotheses
- EVIDENCE 1Before APPLY, the changing parameter is 1250.00: the wrong value is introduced later.
- EVIDENCE 2Inside APPLY the active branch clears the amount: inspect predicate and input, not the ALV display.
- EVIDENCE 3After changing the DEV rule, the amount is 1187.50 and persisted display agrees.
Which explanation is best supported by this evidence?
03Investigation runbook
- 01Set a session breakpoint before the method call in a permitted DEV report; run with a fictional customer group B.
- 02Inspect LV_AMOUNT and confirm 1250.00 before the call. Capture the executing program and call stack.
- 03Use F5 to enter APPLY; inspect importing and changing parameters and any field-symbol references.
- 04Use F6 over routine subcalls and compare the amount after each step; isolate the statement that changes it.
- 05Check the IF/CASE predicate, current customizing or condition input that selects the branch.
- 06Step out, execute the complete transaction and verify amount, persisted status and a negative test in a new run.
04Proof of a durable resolution
Never skip authorization logic or alter productive financial amounts using debugger variable editing. Use synthetic inputs and approved DEV changes.
- Positive caseKnown group B applies the documented 5% discount and produces 1187.50 for test input 1250.00.
- Negative caseUnknown groups follow an explicit documented fallback without corrupting the original amount.
- Cross-process checkDisplay 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.