SAP ABAP Modularization Interview Questions
Modularization 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.
Learn how to structure ABAP code using FORM routines, function modules, methods, includes, classes and reusable service design.
This page carries 17 reviewed SAP ABAP modularization interview questions, each with a complete written answer and no sign-in required. The set breaks down into 3 foundational, 10 mid-level and 4 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 modularization.
17 Modularization questions with answers
2. A customer validation rule was written as a local class in one report. Now two other programs need it. What do you do?
3. When should you use a subroutine (FORM), a function module, and a method?
4. Report crashes because a FORM reads an uninitialised global variable. How do you prevent it?
5. Customer validation exists separately in three reports and one OData service. How do you move it into a class-based design?
6. The same delivery-block rule is coded separately in a report, a user exit and an OData service, and they now give different results. How do you fix this?
7. A pricing routine uses several global variables and CHANGING parameters, and nobody knows which values it changes. How do you clean up its interface?
8. A delivery user exit in MV50AFZ1 contains several FORM routines sharing global variables, and a change caused wrong values in another FORM. How do you work safely here?
9. You need logic that a report uses, that an external system calls via RFC, and that runs in the update task. Would you use a FORM, a method or a function module?
10. A 6,000-line SD report with everything in START-OF-SELECTION is hard to change. How do you restructure it into maintainable modules?
11. A custom RFC-enabled function module is called by several external systems. What must you consider when changing it?
12. A pricing rule was copied into five reports. A defect was fixed in one of them, and the others still produce wrong prices. How do you prevent this happening again?
13. Where would you put business logic that must be reused by a report, a Fiori app and a BAPI?
14. How do you design a service layer for a large ABAP application?
15. What is the cost of many small function-module calls in a loop?
16. How do you evolve a legacy function group into a service class without breaking callers?
17. Users get a success message after saving a sales-related custom document, but the record is sometimes missing in the database. What could be wrong with the update logic?
Related lesson
Modularization Part 8: Parameter Passing — IMPORTING, EXPORTING, CHANGING and RETURNINGRelated topics
Next practice step
Go deeper on this topic
- Modularization — lessons, mock tests and code lab
- ABAP Core
- Internal Tables
- Open SQL
- OOP ABAP
- ALV Reports
- Enhancements
- SAP ABAP OOP ABAP interview questions
- 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