Sub topic 1
What clean core means and why it matters
Prerequisites
This chapter assumes basic knowledge of SAP S/4HANA business processes, REST and OData APIs, cloud services, and simple JavaScript or Node.js code.
Clean core and upgrade safety
The clean core principle means keeping SAP S/4HANA’s standard code unchanged and placing custom behavior in supported extension points. Custom requirements should depend on released APIs, events, and extension contracts rather than internal tables or modified standard objects.
This separation reduces upgrade effort. SAP can change internal implementation details while preserving released contracts. An extension that uses those contracts is easier to test, move, and maintain.
Released APIs and stable contracts
A released API is an SAP interface marked for customer use. Its operations, fields, and behavior have a defined support commitment. An unreleased object may work today but can change or disappear during an upgrade.
Before building an extension, check that its dependencies are released:
- Prefer released OData or REST APIs, business events, and extension points.
- Avoid direct access to SAP application tables and internal classes.
- Record the API version, authentication method, and required scopes.
- Test error handling, authorization, pagination, and API limits.
The dependency path should look like this:
The three extension options at a glance
| Option | Where it runs | Typical use |
|---|---|---|
| In-app extensibility | In S/4HANA | Fields, forms, workflows, and rules for key users |
| Developer extensibility | S/4HANA ABAP environment | Structured custom logic close to the business process |
| Side-by-side extensibility | SAP BTP | Independent applications, integrations, and process extensions |
Choose in-app extensibility for small changes owned by business users. Choose developer extensibility when logic must stay close to an S/4HANA transaction and supported ABAP Cloud APIs are sufficient. Choose side-by-side extensibility when independent scaling, separate releases, or integration with other systems matters.
Classifying extensions with clean core levels A to D
Use the level to describe the extension’s dependency and upgrade risk.
| Level | Pattern | Upgrade posture |
|---|---|---|
| A | Released APIs, events, and extension points only | Cloud-compliant and highly stable |
| B | Supported custom code with released interfaces, but tighter platform coupling | Upgrade-stable with routine testing |
| C | Classic or partly unsupported dependencies | Upgrade-compatible only with remediation effort |
| D | Modifications, direct table access, or unreleased internals | Non-compliant and high risk |
Exercise
A new approval app uses a released S/4HANA API and runs independently on SAP BTP. Which option and clean core level best describe it?
Show answer
It is a side-by-side extension and normally fits level A.