technicalintermediateChapter 3 / 21 · Lesson 2 / 3
Advanced breakpoints, enhancement points and scripts — Guided debugger and evidence walkthrough
Choose session/external breakpoints and watchpoints; locate enhancement calls without unsafe production edits.
Approx. 25 minutes · Guided practice + knowledge check
This guided walkthrough 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.
01Set up a safe diagnostic reproduction
SAP GUI New ABAP Debugger and authorized DEV; user/session, RFC and HTTP breakpoint constraints are release-dependent. Use fictional keys and DEV/QA data. The expected outcome is: Choose session/external breakpoints and watchpoints; locate enhancement calls without unsafe production edits.
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
02Animated investigation walkthrough
Choose any step or play the trace. The highlighted evidence and explanation change for this exact chapter. This is a teaching simulation, not a SAP GUI recording.
Active diagnostic action
Identify entry channel: SAP GUI dialog, RFC, HTTP request, asynchronous update or background job.
Wrong breakpoint user: request completes without stopping; the service is not necessarily broken.
Check alternative: HTTP request executes as a different ABAP identity than the breakpoint owner.
Complete six-step runbook for this chapter
- 01 Scope.Identify entry channel: SAP GUI dialog, RFC, HTTP request, asynchronous update or background job.
- 02 Find source.Confirm real execution user in DEV system logs; note client, session, process and any principal propagation.
- 03 Inspect.Choose a breakpoint type supported for that channel; set it in an activated executable method or enhancement implementation.
- 04 Test cause.Run a single test request and inspect the call stack; if not reached, confirm destination, client, implementation filters and selected service alias.
- 05 Correct safely.For a changing value, set a conditional watchpoint and capture exact before/after data without modifying production records.
- 06 Verify.If a script is used, restrict it to synthetic data and convert observations into a reproducible ABAP Unit fixture, then deactivate breakpoints.
03Read the three decisive observations
- 1.Wrong breakpoint user: request completes without stopping; the service is not necessarily broken.
- 2.Correct user but wrong application server may still need environment-specific external-debug configuration.
- 3.An active BAdI filter explains why one business document enters an implementation while another bypasses it.
04Safe handoff and completion criteria
Only enable debugging for an authorized identity and client. Avoid global breakpoints, uncontrolled debugger scripting, production data export and security bypasses.
- Positive case.Eligible test request reaches the intended implementation and stops exactly where expected.
- Negative case.An invalid business request is rejected by its normal validation and does not access unauthorized code.
- Cross-process check.The 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.