SAP ABAP OOP ABAP Interview Questions
OOP ABAP is a standard block in SAP ABAP interviews. It is rarely asked as a definition; it is asked as a situation you have to talk your way through.
Master Object-Oriented ABAP with classes, objects, methods, constructors, encapsulation, interfaces, factory methods, testing and S/4HANA-ready design.
This page carries 26 reviewed SAP ABAP oop abap interview questions, each with a complete written answer and no sign-in required. The set breaks down into 5 foundational, 15 mid-level and 6 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.
Treat the answers as a starting structure, not a script. Interviewers in SAP ABAP rounds follow up on whatever you sound least certain about, so the value is in being able to keep going after the first answer.
26 OOP ABAP questions with answers
2. Explain the difference between a local class and a global class in ABAP OO. When would you use each, and what are the implications for maintainability and reusability?
3. An ALV event handler is a local class in a report, while a material validation rule is needed by several programs. Where should each class live and why?
4. A custom document class exposes its status as a public attribute, and different programs set invalid status values. How do you fix this with encapsulation?
5. Explain the CREATE OBJECT and NEW operator for instantiating objects. What are the differences, and when would you use each in modern ABAP?
6. Explain the difference between an interface and an abstract class in ABAP Objects.
7. Explain the difference between the instance constructor and the static constructor in ABAP OO. When is each executed, and when would you use each?
8. Explain abstract classes and final classes in ABAP OO. When would you mark a class as ABSTRACT or FINAL, and what design constraints does this enforce?
9. Compare static methods and instance methods. When should you use each, and what are the implications for state management and testability?
10. Explain object references and object lifetime in ABAP OO. When are objects automatically garbage collected, and how does this differ from function module data?
11. What is the difference between an interface and an abstract class?
12. Method call raises CX_SY_REF_IS_INITIAL. What happened?
13. A report has customer, material and pricing validation all inside one START-OF-SELECTION block. How would you restructure it using classes?
14. A service catches CX_ROOT and raises a generic "Save failed" error, so support cannot see whether it was a locking or SQL problem. How should exceptions be handled instead?
15. Country tax rules are implemented as a long CASE statement in several programs. How would you introduce a factory, and how would you make it extensible without code changes?
16. Country-specific tax logic was written as IF/CASE blocks in several programs. How would you use interfaces and polymorphism to redesign it?
17. You need to send notifications through Email, SMS, and Teams. How would you design this in ABAP OOP?
18. A pricing class used static attributes for sales organization and configuration, and results mixed up when two sales orgs were processed in one run. What went wrong and how do you fix it?
19. A delivery service reads customer-risk data directly from the database inside its methods, so it cannot be unit tested. How do you make it testable?
20. What are static-check and dynamic-check exceptions?
21. Explain RTTI (Runtime Type Information) and RTTS (Runtime Type Services) in ABAP. Design a generic data validation and serialization class using RTTI.
22. Explain exception handling in OO ABAP. Design a custom exception hierarchy for a material master API that handles validation errors, not-found errors, and database errors gracefully.
23. How do you evolve an ABAP monolith toward clean OO without a rewrite?
24. A billing engine created a subclass for every provider and country combination and now has dozens of subclasses. How would you redesign it?
25. A sales-order rule exists separately in a user exit, an OData service and a background job. How would you consolidate it in an S/4HANA clean core approach?
26. When is inheritance the right choice over composition in ABAP?
Related lesson
OOP ABAP Part 5: Instance Methods, Static Methods and ConstructorsRelated topics
Next practice step
Go deeper on this topic
- OOP ABAP — lessons, mock tests and code lab
- ABAP Core
- Internal Tables
- Open SQL
- Modularization
- ALV Reports
- Enhancements
- SAP ABAP SmartForms interview questions
- SAP ABAP User Exits interview questions
- SAP ABAP on HANA Interview Questions
- SAP ABAP Performance Tuning Interview Questions
- SAP Architect ABAP Core interview questions
- SAP Architect API Strategy interview questions