ERPClimb logoERPClimb
Debugging
ABAP Developmentintermediate 7 min read

Debugging Part 3: External Breakpoints — Why They Are Not Hit

Preview · a free account unlocks the full lesson

Key takeaway

Use external (user) breakpoints for calls that don't run in your session — RFC, HTTP/OData/Fiori, background — and fix the typical reasons they are not hit: wrong user, wrong server/instance, expired validity, breakpoint set in a different system/client, code path not reached, or debugging not allowed (authorization, system settings).

In this lessonShow sections

Visual overview

Debugging Part 3: External Breakpoints — Why They Are Not Hit — learning sheetFlow: Set an external breakpoint in an OData DPC_EXT method and call the service from /IWFND/GW_CLIENT → Change the debug user to a colleague's test user and observe that your call no longer stops → Check S_DEVELOP DEBUG authorization for your user in SU53/SUIM. Key ideas: SESSION VS EXTERNAL; SETTING AN EXTERNAL BREAKPOINT; WHY IT IS NOT HIT; SPECIAL CASES. Watch out: If the call runs with a technical communication user, set the breakpoint for that user and make sure you're allowed to debug it (S_DEVELOP DEBUG authorization).ERPClimb.com / ABAP / LESSON 3/10 / LEARNING SHEETDebugging Part 3: External Breakpoints — Why They Are NotHit1 · HOW IT FLOWS1Set an externalbreakpoint in an ODataDPC_EXT method and call…2Change the debug user toa colleague's test userand observe that your…3Check S_DEVELOP DEBUGauthorization for youruser in SU53/SUIM2 · KEY IDEAS EXPLAINEDSession vs ExternalSession breakpoint: only your current logonsession (SAP GUI).External breakpoint: your user (or the configureddebug user), any session, until validity expires.Setting An External BreakpointSE38/SE80: Utilities → Settings → ABAP Editor →Debugging: user for external breakpoints; then set"external breakpoint" (red stop sign…ADT (Eclipse): breakpoints are external bydefault; "Debug user" in projectsettings.Why It Is Not HitWrong user: request runs as RFC/communication useror another Fiori user.Code not reached: different code path (e.g. ODataGET_ENTITYSET vs GET_ENTITY), cache (Fiori/HTTPcache), BAdI not called.Special CasesFiori/OData: breakpoint for the Fiori user; testin browser; /IWFND/ERROR_LOG helps find whichrequest failed.RFC from external system: breakpoint for the RFCuser in SM59 destination of the caller.3 · REMEMBER · WATCH OUTRememberExternal breakpoints apply to a specific user in all sessions —including RFC and HTTP requests — for a limited validity period…The breakpoint must be set for the user who actually executes therequest (e.g. Fiori user, RFC communication user), not necessarily…Newer releases use the "Debugging user" setting in theeditor/ADT; with terminal-ID settings the request must come from the…!Watch outIf the call runs with a technicalcommunication user, set thebreakpoint for that user and makesure you're allowed to debug it(S_DEVELOP DEBUG authorization).4 · IN A REAL PROJECTA developer's external breakpoint in an OData method never stopped when business users tested the Fiori app./IWFND/ERROR_LOG showed requests running under the users' own IDs, not the developer's. Setting the debug userto the tester's user (with the tester's permission) stopped the debugger immediately. The actual bug was in…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 2 relied on session breakpoints, but for Fiori, OData, RFC, and many other interfaces, the code you need to debug runs outside your own GUI session entirely, which is where external breakpoints come in. A session breakpoint only works within your current logon session in SAP GUI, while an external breakpoint applies to a specific user — either you or whichever user is configured as the debug user — across any session, including RFC and HTTP requests, for a limited validity period that defaults to two hours.

The critical point is that the breakpoint must be set for the user who actually executes the request, which is often not your own user — it might be a Fiori user or an RFC communication user instead.

To set one in SE38 or SE80, go to Utilities → Settings → ABAP Editor → Debugging and specify the user for external breakpoints, then mark the breakpoint itself as "external" (shown as a red stop sign with a person icon). In ADT (Eclipse), breakpoints are external by default, and you configure the debug user in the project settings.

SAP GUI will show you the breakpoint's expiry, and you'll need to renew it once that time passes.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.