ERPClimb logoERPClimb

technicalintermediateChapter 3 / 21 · Lesson 3 / 3

Advanced breakpoints, enhancement points and scripts — Root-cause case, remediation and assessment

Choose session/external breakpoints and watchpoints; locate enhancement calls without unsafe production edits.

Approx. 30 minutes · Guided practice + knowledge check

This incident case covers “Advanced breakpoints, enhancement points and scripts”, a intermediate technical troubleshooting topic. The symptom it starts from: A breakpoint is skipped or a variable is overwritten in another program. It follows a 3-phase evidence flow and a six-step runbook, references 5 tools (External breakpoint, Watchpoint, BAdI, Enhancement framework, Debugger scripting (sandbox only)) and ends with a self-check question. All system data in the examples is fictional.

01Incident briefing: identify what really failed

A breakpoint is skipped or a variable is overwritten in another program. 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
Request: POST /sap/opu/odata/sap/Z_DEMO_SRV/OrderSet
HTTP user: TEST_HTTP_USER
Breakpoint owner: TEST_DIALOG_USER
Result: request succeeds, breakpoint never stops
Second attempt: breakpoint scoped to executing identity in DEV → debugger stops
Sample code, keys and log lines are authored for teaching; not captured from a productive SAP system.

02Separate facts from competing hypotheses

  1. EVIDENCE 1Wrong breakpoint user: request completes without stopping; the service is not necessarily broken.
  2. EVIDENCE 2Correct user but wrong application server may still need environment-specific external-debug configuration.
  3. EVIDENCE 3An active BAdI filter explains why one business document enters an implementation while another bypasses it.

Which explanation is best supported by this evidence?

03Investigation runbook

  1. 01Identify entry channel: SAP GUI dialog, RFC, HTTP request, asynchronous update or background job.
  2. 02Confirm real execution user in DEV system logs; note client, session, process and any principal propagation.
  3. 03Choose a breakpoint type supported for that channel; set it in an activated executable method or enhancement implementation.
  4. 04Run a single test request and inspect the call stack; if not reached, confirm destination, client, implementation filters and selected service alias.
  5. 05For a changing value, set a conditional watchpoint and capture exact before/after data without modifying production records.
  6. 06If a script is used, restrict it to synthetic data and convert observations into a reproducible ABAP Unit fixture, then deactivate breakpoints.

04Proof of a durable resolution

Only enable debugging for an authorized identity and client. Avoid global breakpoints, uncontrolled debugger scripting, production data export and security bypasses.

  • Positive caseEligible test request reaches the intended implementation and stops exactly where expected.
  • Negative caseAn invalid business request is rejected by its normal validation and does not access unauthorized code.
  • Cross-process checkThe service behaves identically after debugging and no live data was changed through variable editing.

05Check your diagnosis

An HTTP test returns business data but your ABAP breakpoint is never hit. Which check comes 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.

Specialist deep dives from SAP Learning / Community

New Debugger scripting: capture safe ABAP Unit test fixtures

The existing breakpoint lessons do not show how to turn a controlled internal-table snapshot into reproducible test data.

  1. Use a debugger script only on synthetic DEV data
  2. Capture a bounded, non-sensitive internal table
  3. Create a VALUE-based ABAP Unit fixture and compare with the original issue

Visual practice: Script tab → selected variable → generated VALUE statement, with simulated sample data and an editable test fixture.

Edition limits: SAP GUI New ABAP Debugger; scripting and delivered utilities vary by system release.

SAP Community: debugger script tool and practical uses (2026)

SLAD layer-aware stepping: skip framework noise, find your code

Advanced engineers need to cross large SAP framework call stacks without stepping through irrelevant internals.

  1. Define a scoped SLAD object set for permitted application packages
  2. Select layer-aware stepping and observe call boundaries
  3. Confirm the same root cause with an ordinary source breakpoint

Visual practice: Before/after call-stack depth animation, showing framework layers dimmed rather than hidden evidence.

Edition limits: Classic New ABAP Debugger environments supporting SLAD; not universal in ABAP Cloud.

SAP Help: Layer Aware Debugging / SLAD

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