ERPClimb logoERPClimb

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.

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.

02Separate facts from competing hypotheses

  1. EVIDENCE 1Before APPLY, the changing parameter is 1250.00: the wrong value is introduced later.
  2. EVIDENCE 2Inside APPLY the active branch clears the amount: inspect predicate and input, not the ALV display.
  3. 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

  1. 01Set a session breakpoint before the method call in a permitted DEV report; run with a fictional customer group B.
  2. 02Inspect LV_AMOUNT and confirm 1250.00 before the call. Capture the executing program and call stack.
  3. 03Use F5 to enter APPLY; inspect importing and changing parameters and any field-symbol references.
  4. 04Use F6 over routine subcalls and compare the amount after each step; isolate the statement that changes it.
  5. 05Check the IF/CASE predicate, current customizing or condition input that selects the branch.
  6. 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.

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