SAP ABAP Debugging Interview Questions
Debugging comes up in SAP ABAP interviews because it is one of the few areas where an interviewer can tell, in two questions, whether you have worked with the process or only read about it.
Master ABAP debugging with breakpoints, watchpoints, update debugging, background jobs, RFC/OData debugging, ST22 dump analysis and production-safe root cause analysis.
This page carries 35 reviewed SAP ABAP debugging interview questions, each with a complete written answer and no sign-in required. The set breaks down into 7 foundational, 14 mid-level and 14 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.
The fastest way to use this page is to read the question, answer it yourself, and only then read the answer. The gap between your version and the written one is your actual revision list for debugging.
35 Debugging questions with answers
2. What is the difference between an external breakpoint and a session breakpoint in ABAP debugging, and when would you use each in a real project?
3. How do you set a conditional breakpoint in ABAP, and why is it more useful than a plain breakpoint inside a loop that processes thousands of records?
4. A save validation fires unexpectedly in VA02 with a custom error message. How do you find where it comes from without stepping through the whole save?
5. An upload program changes a status field in the work area during validation, but the internal table still shows the old status. Why, and how do you confirm it in the debugger?
6. A month-end report shows a wrong total, and you have a few minutes with the debugger. Which debugger features do you use to get to the cause fast?
7. A month-end job dumped with a numeric conversion error. How do you use ST22 to find the root cause?
8. You are told a custom BAdI implementation is 'not working' for a specific plant, but works fine for others. How do you debug this systematically?
9. Why is checking sy-subrc after every database operation and sy-tabix inside loops considered a debugging best practice, and what mistakes do junior developers commonly make around them?
10. A custom update function module (registered as V1 update) is supposed to insert a record into a Z table on sales order save, but the record never appears. How would you use update debugging to find the cause?
11. You suspect a field-symbol is pointing to unexpected or stale data inside a loop, causing wrong values in the output. How would you debug this?
12. A user exit is supposed to update a custom field during sales order save, but the field is coming up blank in production. Walk through how you would debug this.
13. You receive a production dump reported in ST22 with the exception CX_SY_ITAB_LINE_NOT_FOUND, but you have no direct way to reproduce it in the test system. How would you debug this using ST22 and the call stack?
14. A background job is producing incorrect output only when scheduled via SM37, but works correctly when the same program is run in foreground with the same selection screen values. How do you debug this?
15. A report works when run manually but fails every night as a scheduled job. How do you analyse and debug it?
16. A billing job fails only in production and cannot be reproduced in QA. How do you proceed without risking production data?
17. A pricing value becomes zero somewhere during sales order processing. How do you find which code changes it?
18. An OData request from a Fiori app does not stop at your breakpoint in the DPC_EXT method. What do you check?
19. An OData service works in the Gateway Client under the developer's user but fails in the Fiori app for business users. How do you debug it?
20. A delivery saved successfully but a custom log table received no entry. The log is written by a function module called IN UPDATE TASK. How do you debug it?
21. During a report run, an internal table that should have 500 rows only shows 480 after a certain point in the code, with no error raised. How would you debug this using the ABAP debugger?
22. As an architect, how would you decide, for a new complex integration involving background jobs, RFC calls, and update tasks, what proactive debugging and monitoring hooks should be built into the design from the start, rather than added reactively after production issues appear?
23. While debugging a deep call stack involving multiple nested function modules and classes, how do you effectively use the call stack to identify where a wrong value actually originated?
24. You are told that a piece of custom code you wrote is 'not running at all' in production, even though it works in the test system. How do you debug why the code is simply not being triggered?
25. A user reports 'No authorization' errors intermittently while running a custom transaction, but they claim their role setup hasn't changed. How do you debug this using SU53 and authorization trace?
26. A newly onboarded developer keeps introducing production defects that could have been caught through better debugging discipline before transport. As an architect or technical lead, how would you mentor the team and design a review process to reduce this without slowing down delivery significantly?
27. What is system debugging in SAP, and when would you need to use it instead of normal application debugging?
28. A SmartForm output is printing an incorrect total amount only for orders with more than one page, while single-page orders print correctly. At a high level, how would you approach debugging this?
29. A custom report is taking significantly longer to run for one specific date range compared to others, even though the number of resulting rows is similar. How would you use SAT to root-cause the performance issue?
30. An RFC-enabled function module is called from a non-SAP middleware system, and the caller reports a timeout, but no dump appears in ST22 on the SAP side. How would you debug this issue?
31. As an architect, how would you design a team-level debugging and diagnostics strategy for a landscape where issues frequently span dialog processing, background jobs, and RFC calls to external middleware, so that root-causing production issues doesn't rely purely on ad-hoc debugging skill?
32. During an ST05 SQL trace review, you notice the same SELECT statement is executed thousands of times inside a loop, each time hitting the database individually. How would you confirm this root cause and what direction would you recommend for the fix?
33. A performance issue in a custom program occurs only in production and only during month-end, but never in the test or quality systems. How would you root-cause this without being able to fully reproduce it outside production?
34. A custom enhancement in the goods receipt process is calculating a wrong stock quantity only for batch-managed materials. How would you debug the data flow to find the root cause?
35. You need to debug a live production issue affecting real customer data, but you must not risk changing any data during the investigation. What precautions and techniques would you use?
Related lesson
Debugging Part 4: Watchpoints, Layers and Static Checks (ATC)Related topics
Next practice step
Go deeper on this topic
- Debugging — lessons, mock tests and code lab
- ABAP Core
- Internal Tables
- Open SQL
- Modularization
- OOP ABAP
- ALV Reports
- SAP ABAP Debugging Interview Questions
- SAP ABAP ABAP Core interview questions
- SAP ABAP Workflow interview questions
- SAP ABAP Adobe Forms interview questions
- SAP ABAP ALV Reports interview questions
- SAP ABAP BAPI interview questions