ERPClimb logoERPClimb

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.

FICTIONAL SAMPLE · READ-ONLY EVIDENCENever paste live customer data
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
Sample code, keys and log lines are authored for teaching; not captured from a productive SAP system.

02Separate facts from competing hypotheses

  1. EVIDENCE 1The debugger stops where a non-existent internal-table row is dereferenced.
  2. EVIDENCE 2The class is running the activated source; the test input and table rows are visible.
  3. 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

  1. 01Activate the class in a permitted ADT development package; execute an ABAP Unit or class-run fixture with DEMO-77.
  2. 02Set a breakpoint at the table expression, and optionally a CX_SY_ITAB_LINE_NOT_FOUND exception breakpoint.
  3. 03Observe the Variables view and the exact key values. Confirm the key is missing from MT_ORDERS.
  4. 04Inspect the call stack to identify the caller contract: does missing order mean normal absence or a real invariant violation?
  5. 05Implement an explicit OPTIONAL/line_exists-style branch or documented exception mapping, not a blanket CATCH of every error.
  6. 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.

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