OOP ABAP Part 10: OOP in S/4HANA, RAP and Clean Core
Preview · a free account unlocks the full lesson
See where classic OOP knowledge is used in S/4HANA: BAdIs as interfaces, released APIs and wrapper classes, RAP behaviour pools with local handler classes, ABAP Cloud restrictions and Clean ABAP guidelines for classes.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 9 of this series built up OOP skills; this lesson connects them to what you actually meet in S/4HANA projects today, while classic ECC and on-premise code keeps running in the very same system. In S/4HANA, extensions are object-oriented throughout: BAdIs are interfaces, RAP behavior is implemented in classes, and released APIs are themselves classes and interfaces.
A new BAdI implementation, built in SE19 or ADT, is simply a class implementing the BAdI's interface — IF_EX_… for classic BAdIs, IF_BADI_… for new ones — and the framework instantiates it through GET BADI / CALL BADI; everything covered in Parts 3 and 8, on interfaces, factories, and polymorphism, applies directly here.
SAP marks certain objects as released, with API state C1 meaning they're usable in cloud development. In ABAP Cloud, you may only use released CDS views, classes, and interfaces — for example, the XCO library, or CL_ABAP_CONTEXT_INFO in place of sy-uname in some cases. If you need functionality that isn't released while working on-premise, create a wrapper class in a classic ABAP package, release that wrapper yourself for your cloud-ready code to depend on, and keep the dependency on the unreleased object contained in that one place.
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
Interview questions on this topic
Related SAP topics
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.