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.
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
02Separate facts from competing hypotheses
- EVIDENCE 1Wrong breakpoint user: request completes without stopping; the service is not necessarily broken.
- EVIDENCE 2Correct user but wrong application server may still need environment-specific external-debug configuration.
- 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
- 01Identify entry channel: SAP GUI dialog, RFC, HTTP request, asynchronous update or background job.
- 02Confirm real execution user in DEV system logs; note client, session, process and any principal propagation.
- 03Choose a breakpoint type supported for that channel; set it in an activated executable method or enhancement implementation.
- 04Run a single test request and inspect the call stack; if not reached, confirm destination, client, implementation filters and selected service alias.
- 05For a changing value, set a conditional watchpoint and capture exact before/after data without modifying production records.
- 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.
- Debugging Part 3: External Breakpoints — Why They Are Not Hit
- Debugging Part 4: Watchpoints, Layers and Static Checks (ATC)
- BAdI Part 6: Debugging BAdIs in Real Projects
- Enhancements Part 4: Finding Enhancements Using Debugging
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.
- Use a debugger script only on synthetic DEV data
- Capture a bounded, non-sensitive internal table
- 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.
- Define a scoped SLAD object set for permitted application packages
- Select layer-aware stepping and observe call boundaries
- 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 / SLADAdditional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.