SAP S/4 HANA Clean Core Principles – Must know

SAP’s updated extensibility model (which replaced the older 3-tier extensibility model) classifies custom extensions into four Clean Core Levels (A, B, C, and D) based on upgrade safety, architectural integrity, and compliance with SAP-released interfaces.

In the architecture above, Levels A and B are considered Clean Core, Level C is Conditional Clean Core, and Level D is Not Clean Core.

Summary Comparison

LevelStatusTechnical ApproachUpgrade RiskATC Finding
Level AClean Core (Target)ABAP Cloud (on-stack) & SAP BTP (side-by-side) using released APIsLowestNo message
Level BClean Core (Approved Classic)Classic ABAP using SAP-recommended classic APIs & extension pointsLowPriority 3 (Info)
Level CConditional Clean CoreClassic ABAP using internal SAP objects monitored via changelog checksMedium to HighPriority 2 (Warning)
Level DNot Clean CoreModifications, implicit enhancements, and explicitly non-recommended objects (noAPI)HighestPriority 1 (Error)

Detailed Breakdown & Practical Examples

1. Level A — Clean Core (Modern & Cloud-Ready)

Extensions built exclusively with released SAP APIs (local or remote), released CDS views, and released extension points. They run either on-stack using the ABAP Cloud development model (including Key User Extensibility) or side-by-side on SAP Business Technology Platform (BTP).

  • On-Stack Examples:
    • Adding a custom field to a Purchase Order or Material Master using Key User Extensibility (Custom Fields and Logic app).
    • Building a custom Fiori app on S/4HANA using the ABAP RESTful Application Programming Model (RAP) that reads data solely through released I_ CDS views (e.g., I_PurchaseOrderAPI01).
    • Implementing a released Cloud BAdI (such as MM_PUR_S4_PO_MODIFY_HEADER for purchase order header validations).
  • Side-by-Side Examples:
    • Creating an external supplier onboarding or approval workflow app on SAP BTP using SAP Build Apps, SAP Build Process Automation, or CAP (Cloud Application Programming Model), communicating via standard OData/REST APIs and SAP Event Mesh.

2. Level B — Clean Core (Approved Classic ABAP)

Extensions in S/4HANA Cloud Private Edition or On-Premise that use classic ABAP, but strictly rely on SAP-recommended classic APIs and extension points where a Level A released alternative does not yet exist.

  • Examples:
    • Calling classic released BAPIs (e.g., BAPI_PO_CREATE1 to create a purchase order or BAPI_GOODSMVT_CREATE to post a goods movement in MIGO) instead of direct table updates.
    • Implementing classic BAdIs (e.g., ME_PROCESS_PO_CUST for custom PO checks) or standard customer exits/user exits explicitly documented by SAP as supported extension points.
    • Using classic IDocs or standard RFC function modules approved for integration.

3. Level C — Conditional Clean Core (Monitored Legacy/Internal Objects)

Extensions built using SAP internal objects (objects that are neither officially released for ABAP Cloud nor explicitly blacklisted as noAPI). They are tolerated temporarily as “conditionally clean” if tracked with SAP’s Changelog for SAP Objects in ABAP Test Cockpit (ATC) during upgrades.

  • Examples:
    • Writing a custom ABAP report (Z_STOCK_REPORT) that performs a SELECT directly against standard internal tables like MARA, EKKO, EKPO, or MSEG rather than a released CDS view.
    • Calling an internal, unreleased SAP function module or class method (e.g., internal LIPS / VBRK helper routines) that SAP has not marked as noAPI.
    • Using legacy batch input (BDC) recordings on standard transactions like VL01N or MM02 where a BAPI or API exists.

4. Level D — Not Clean Core (High Technical Debt)

Extensions that violate SAP extensibility rules by altering standard SAP code, bypassing application logic, or using objects explicitly marked as not recommended (noAPI) in the Cloudification Repository. These require mandatory remediation planning.

  • Examples:
    • Core Modifications: Registering an SSCR object key to directly edit standard SAP includes (such as MV45AFZZ or standard function groups).
    • Implicit Enhancements: Injecting custom code at the beginning or end of a standard SAP subroutine/method where SAP provided no explicit enhancement spot.
    • Direct Database Writes: Executing direct UPDATE, INSERT, or DELETE statements on standard SAP tables (e.g., modifying VBAP or MARD directly in ABAP).
    • Blacklisted Objects: Using objects flagged as noAPI in ATC checks (e.g., obsolete internal cluster tables or deprecated internal modules).

Thanks, and Best Regards,

Ganesh Padala


Discover more from GANESH SAP SCM

Subscribe to get the latest posts sent to your email.

Leave a Reply