technicalintermediateChapter 3 / 21 · Lesson 1 / 3
Advanced breakpoints, enhancement points and scripts — Concepts and mental models
Choose session/external breakpoints and watchpoints; locate enhancement calls without unsafe production edits.
Approx. 18 minutes · Guided practice + knowledge check
This concepts lesson 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, 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.
01Understand the execution or business process
A session breakpoint belongs to a specific dialog debugging context; an external breakpoint is designed for eligible requests such as HTTP/RFC reaching an ABAP backend. The user who executes the request may be a technical identity or a principal-propagated end user, so the breakpoint owner matters.
Watchpoints stop when the watched value or condition changes. They are valuable when many routines can change a field, but can add overhead; use a narrow scope and inspect stack and field-symbol bindings when the debugger stops. Layer-aware debugging can help filter framework noise where SLAD is supported.
Enhancement framework, BAdIs and exits are not interchangeable. Find the actual active implementation and filter conditions rather than placing a breakpoint in the interface definition alone. Debugger scripts can collect bounded test evidence in DEV but are not a reason to export productive personal data.
- EVIDENCE PHASE 1Identify user, work process and entry point
- EVIDENCE PHASE 2Choose correct breakpoint scope and watchpoint
- EVIDENCE PHASE 3Inspect enhancement and writer, then verify
02Three mistakes that lead to false root causes
- An external breakpoint in one user is not guaranteed to intercept a background technical user.
- An active enhancement implementation may be filtered out by business context.
- A watchpoint that fires after a write shows where to investigate; it does not prove that value was invalid for the business rule.
03Worked evidence sample
Read the fictional evidence, identify which boundary last succeeded, and predict the next safe diagnostic tool before moving to the guided investigation.
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
04Choose the right tools and release context
SAP GUI New ABAP Debugger and authorized DEV; user/session, RFC and HTTP breakpoint constraints are release-dependent. Do not use a classic transaction code on a cloud edition unless it is supported by that environment and permitted for your role.
- External breakpoint
- Watchpoint
- BAdI
- Enhancement framework
- Debugger scripting (sandbox only)
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.