ERPClimb logoERPClimb
Clean Core
Architect / Cross-trackadvanced 8 min read

Data Boundaries, Security, and Governance for Clean Core Extensions (Part 5)

Preview · a free account unlocks the full lesson

Key takeaway

How to enforce API-only data access, design the security model for extensions, and establish governance controls that keep custom code upgrade-safe over time.

In this lessonShow sections

Visual overview

Data Boundaries, Security, and Governance for Clean Core Extensions (Part 5) — learning sheetIn one line: How to enforce API-only data access, design the security model for extensions, and establish governance controls that keep custom code upgrade-safe over time.ERPClimb.com / ARCH / LESSON 5/5 / LEARNING SHEETData Boundaries, Security, and Governance for Clean CoreExtensions (Part 5)1 · IN ONE LINEHow to enforce API-only data access, design the security model for extensions, and establishgovernance controls that keep custom code upgrade-safe over time.2 · KEY IDEAS EXPLAINED1Clean Core is ultimately an access-control andgovernance discipline as much as a coding style.Once an organization agrees to avoid coremodification, the harder ongoing work is enforcingthat no team quietly reintroduces tight couplingthrough undisclosed table access, unreleased API…2Data access boundary: the core principle is thatany extension, whether in-app or side-by-side,must read and write only through releasedinterfaces - released CDS views, released BAdIs,and released APIs (OData V2/V4, SOAP, or REST aspublished in the API Business Hub or equivalent…3Security model: side-by-side extensions on BTPintroduce a distinct security surface.Authentication typically uses OAuth2, with clientcredentials for system-to-system calls andprincipal propagation when an extension must acton behalf of an end user (so the core's own…4Governance for durability: a Clean Core governancemodel typically includes (1) a custom coderegister that classifies every extension by tier(in-app key-user, in-app developer/RAP,side-by-side) and by the released interfaces itdepends on; (2) an architecture review gate that…3 · DO · AVOIDBest practice!Common mistakeEnforce released-object-only access throughautomated static checks in the transport or…Use principal propagation for extensionstouching approval or SoD-sensitive data…Maintain a custom code and extension registerclassifying every object by extensibility tier…✕Allowing side-by-side extensions to use asingle broad-scope service account instead of…✕Treating custom code migration classificationas a one-time exercise instead of re-checking…✕Granting permanent waivers for clean coreexceptions instead of tracking them with…4 · IN A REAL PROJECTAn architecture review during a private cloud rollout discovered that a side-by-side BTP extension had beenusing a technical service account with broad authorizations to call an internal, unreleased API endpointbecause the released equivalent lacked one required field. The governance board required the team to log a…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Clean Core is ultimately an access-control and governance discipline as much as a coding style. Once an organization agrees to avoid core modification, the harder ongoing work is enforcing that no team quietly reintroduces tight coupling through undisclosed table access, unreleased API usage, or ad hoc database views. This lesson focuses on the data, security, and governance mechanisms an architect must put in place to make Clean Core durable rather than a one-time migration slogan.

Data access boundary: the core principle is that any extension, whether in-app or side-by-side, must read and write only through released interfaces - released CDS views, released BAdIs, and released APIs (OData V2/V4, SOAP, or REST as published in the API Business Hub or equivalent released catalog).

Unreleased objects can change or disappear across upgrades without notice, and direct table access bypasses business logic such as authorization checks, derivations, and consistency rules embedded in the application layer. In S/4HANA Public Cloud this is enforced at the platform level - unreleased objects are simply not accessible from the extensibility framework.

In private cloud and on-premise, enforcement is largely a governance and code-review responsibility, since the ABAP stack technically still permits direct access; architects must rely on static code checks, custom code migration tooling categorization (released vs not released, or deprecated), and CI/CD quality gates to catch violations before they reach production.

Security model: side-by-side extensions on BTP introduce a distinct security surface. Authentication typically uses OAuth2, with client credentials for system-to-system calls and principal propagation when an extension must act on behalf of an end user (so the core's own authorization checks still apply based on that user's roles, rather than a blanket service account bypassing segregation-of-duties controls).

Free account

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

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.