technicalintermediateChapter 7 / 21 · Lesson 3 / 3
Eclipse ADT and ABAP OO debugging — Root-cause case, remediation and assessment
Use ADT breakpoints, watchpoints, call stack and exception analysis in the correct user/session.
Approx. 30 minutes · Guided practice + knowledge check
This incident case covers “Eclipse ADT and ABAP OO debugging”, a intermediate technical troubleshooting topic. The symptom it starts from: An HTTP, class method or exception fails outside a classic report run. It follows a 3-phase evidence flow and a six-step runbook, references 4 tools (ADT Debug perspective, ABAP Unit, Exception breakpoints, Variables view) and ends with a self-check question. All system data in the examples is fictional.
01Incident briefing: identify what really failed
An HTTP, class method or exception fails outside a classic report run. You are investigating a fictional case; the task is to prove which boundary is responsible without damaging business state.
METHOD read_order. DATA(row) = mt_orders[ order_id = iv_order_id ]. ENDMETHOD. " Fictional test input IV_ORDER_ID='DEMO-77' " mt_orders contains only DEMO-10 and DEMO-11 " Expected: controlled not-found result; actual: CX_SY_ITAB_LINE_NOT_FOUND
02Separate facts from competing hypotheses
- EVIDENCE 1The debugger stops where a non-existent internal-table row is dereferenced.
- EVIDENCE 2The class is running the activated source; the test input and table rows are visible.
- EVIDENCE 3The final error should be a documented not-found/business response rather than an unhandled runtime termination.
Which explanation is best supported by this evidence?
03Investigation runbook
- 01Activate the class in a permitted ADT development package; execute an ABAP Unit or class-run fixture with DEMO-77.
- 02Set a breakpoint at the table expression, and optionally a CX_SY_ITAB_LINE_NOT_FOUND exception breakpoint.
- 03Observe the Variables view and the exact key values. Confirm the key is missing from MT_ORDERS.
- 04Inspect the call stack to identify the caller contract: does missing order mean normal absence or a real invariant violation?
- 05Implement an explicit OPTIONAL/line_exists-style branch or documented exception mapping, not a blanket CATCH of every error.
- 06Run positive, missing-key and authorization-scope tests; inspect final caller response and deactivate diagnostic breakpoints.
04Proof of a durable resolution
ABAP Cloud development must use released APIs and an authorized development tenant. Do not expose internal values in HTTP errors or bypass DCL.
- Positive caseKnown key DEMO-10 returns its expected value and keeps normal behavior.
- Negative caseUnknown key DEMO-77 returns a controlled not-found outcome without a short dump.
- Cross-process checkAn unauthorized key is not disclosed through the error or through the query fallback.
05Check your diagnosis
A class method uses mt_orders[ order_id = iv_order_id ] and CX_SY_ITAB_LINE_NOT_FOUND is raised. What should you examine first?
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 2: ABAP Debugger Essentials
- Debugging Part 3: External Breakpoints — Why They Are Not Hit
- Behavior Implementations Part 5: Performance, Unit Testing and Debugging
Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.