SAP ABAP ABAP Core Interview Questions
In SAP ABAP rounds, abap core questions are where configuration knowledge meets day-to-day behaviour — what a setting does, and what breaks in a live system when it is wrong.
Master the foundation of ABAP programming: program structure, variables, system fields, selection screens, validations, messages, exceptions and clean coding basics.
This page carries 35 reviewed SAP ABAP abap core interview questions, each with a complete written answer and no sign-in required. The set breaks down into 8 foundational, 14 mid-level and 13 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.
Rehearse these out loud rather than reading them. If you can explain each answer in your own words, including one realistic way it goes wrong on a project, you are covering what a normal SAP ABAP round on abap core expects.
35 ABAP Core questions with answers
2. What is the difference between a Function Module and a Method of a Class? When would you choose one over the other in a new development?
3. What is the difference between a Data Dictionary structure, a TYPE created in ABAP program, and a database table? When would you use each in a real project?
4. Explain the difference between SELECT SINGLE, SELECT INTO TABLE, and SELECT ... ENDSELECT. Why is looping with SELECT...ENDSELECT generally discouraged in production code?
5. Which ABAP data types do you choose for amounts, document numbers, dates and free texts, and why?
6. When do you use IF, CASE, COND and SWITCH in ABAP?
7. An inbound interface compares customer number '123' with '0000000123' in the database and finds no match. What is the fix?
8. What is a Field Symbol in ABAP, how does it differ from a Data Reference, and why are field symbols used heavily in loops with large internal tables?
9. You put a breakpoint in a custom program but it's never hit even though you're sure the code path is being executed. What are the possible reasons and how do you debug this systematically?
10. In a production support ticket, users report that a custom Z-program sometimes shows the wrong currency conversion for cross-company transactions, but it works fine most of the time. How would you approach troubleshooting this intermittent issue?
11. You are asked to build an interface that receives 50,000 material records daily from a third-party system and update material master data. What ABAP design considerations would you keep in mind to ensure this runs reliably every day?
12. You are designing a custom module pool transaction that must handle both online (dialog) entry and a mass upload of thousands of records via a background program, using the same business validation logic. How would you architect this to avoid code duplication and ensure performance in both modes?
13. A new joiner on your team wrote a custom program using nested loops (LOOP inside LOOP) to match sales orders against delivery data, and it works fine in dev with 100 records but times out in production with 200,000 records. How do you explain the issue and guide them to a fix?
14. A custom report that used to run in 2 minutes is now taking 45 minutes after go-live volume increased. The report reads material master data in a loop using SELECT SINGLE inside a loop over sales items. How would you approach diagnosing and fixing this?
15. During debugging, you notice that a work area's value changes unexpectedly between two statements even though no explicit assignment happens between them in the code you're viewing. What could cause this and how would you find the actual culprit?
16. You are enhancing a custom sales order creation program. The business wants an additional custom field to be validated and saved only when the sales order type is 'ZOR1'. How would you design this using existing SAP enhancement techniques rather than modifying standard code?
17. A program did not clear the work area after a failed READ TABLE and processed stale data. How do you avoid this?
18. A report performs heavy database selection inside AT SELECTION-SCREEN. What is the problem and what is the correct design?
19. A billing report allowed all filters to stay blank and read millions of rows. How do you fix the selection screen?
20. A sales upload stops at the first invalid material, forcing users to rerun many times. How would you redesign error handling?
21. An interface catches CX_ROOT around the entire file processing and ignores it. What are the risks and the correct approach?
22. An interface defined the material number as a short character field and some materials were truncated. What went wrong and how do you prevent it?
23. You're told that a report gives correct output in the foreground (SE38, F8) but wrong output when scheduled as a background job. What categories of causes would you investigate?
24. A background job processing 100,000 records dumps with a TIME_OUT or memory-related short dump after running for hours, but the same logic works fine for a smaller test file. How do you debug and fix this without being able to reproduce it interactively?
25. You are asked to review a proposed technical design where a custom real-time interface calls an external REST API synchronously from inside a core SD sales order save user exit for every order, to fetch a fraud score before allowing save. As the architect, what concerns would you raise?
26. You're reviewing a colleague's custom ALV report that dynamically builds a field catalog based on customizing settings, and it occasionally shows incorrect column headers or wrong data types for certain configurations. How would you approach root-causing this dynamic field catalog issue?
27. A custom interface program uses a Z-table as a staging area and inserts millions of rows daily, purging old data periodically. Over time, the table's performance has degraded significantly even for simple SELECTs by key. What would you investigate and recommend?
28. Your custom Z-report joins three large custom Z-tables using nested SELECTs and it's slow. The functional team says all three tables are needed together frequently across multiple reports. What performance and design options would you consider, including database-level options?
29. A custom class-based exception is being raised deep inside a call stack (Class A calls Class B calls Class C), but the calling program only shows a generic 'exception occurred' message without the actual root cause detail. How would you debug and improve this?
30. A background job that processes vendor payments occasionally fails with a lock table overflow (enqueue) error, especially during month-end. How would you diagnose and resolve this?
31. Your team inherited a legacy custom program full of nested PERFORM subroutines with heavy use of global variables. The business now wants to add new functionality and unit test it. How would you approach refactoring this safely without breaking existing functionality?
32. Your organization is migrating a large custom ABAP landscape from a classical ECC on AnyDB setup to S/4HANA. As the architect, what ABAP-specific technical debt would you prioritize addressing before or during the migration, and why?
33. As an ABAP Architect, how would you define and enforce coding and performance standards across a large team of consultants from different vendors working on a multi-year S/4HANA implementation, to prevent recurring performance and maintainability issues in production?
34. A pricing enhancement contains hundreds of nested IF statements. How would you refactor it?
35. You're designing the exception handling and logging strategy for a strategic, long-lived custom framework (used by 200+ Z-programs across the enterprise) that will be maintained by multiple teams over many years. What principles would guide your design to keep it maintainable and diagnosable long-term?
Related lesson
ABAP Core Part 6: System Fields — sy-subrc, sy-tabix, sy-datum and MoreRelated topics
Next practice step
Go deeper on this topic
- ABAP Core — lessons, mock tests and code lab
- Internal Tables
- Open SQL
- Modularization
- OOP ABAP
- ALV Reports
- Enhancements
- SAP ABAP Workflow interview questions
- SAP ABAP Adobe Forms interview questions
- SAP ABAP ALV Reports interview questions
- SAP ABAP BAPI interview questions
- SAP ABAP Internal Tables interview questions
- SAP ABAP Modularization interview questions