ERPClimb logoERPClimb

SAP Architect Clean Core Interview Questions

Interviewers use clean core to test depth rather than coverage: the follow-up question is almost always "why does the system behave that way?", and that is where prepared answers usually run out.

Clean Core is the architectural discipline of keeping the S/4HANA digital core upgrade-safe by minimizing modifications and classic customizations, and instead extending SAP functionality through released APIs, in-app extensibility tools, and side-by-side platforms such as BTP. This topic covers why Clean Core matters for upgradeability and TCO, the extensibility options and their trade-offs, governance mechanisms to enforce clean core over time, and how these decisions differ across ECC, S/4HANA on-premise/private cloud, and public cloud.

This page carries 10 reviewed SAP Architect clean core interview questions, each with a complete written answer and no sign-in required. The set breaks down into 3 foundational, 4 mid-level and 3 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.

If you can handle every question here without hesitating, clean core is unlikely to be what costs you an SAP Architect interview — and the same reasoning pattern transfers to the neighbouring topics linked at the bottom of this page.

10 Clean Core questions with answers

easyClean Core

1. What are the core concepts of Clean Core, and how would you explain them clearly in an SAP interview?

Clean Core is the architectural discipline of keeping the S/4HANA digital core upgrade-safe by minimizing modifications and classic customizations, and instead extending SAP functionality through released APIs, in-app extensibility tools, and side-by-side platforms such as BTP. This topic covers why Clean Core matters for upgradeability and TCO, the extensibility options and their trade-offs, governance mechanisms to enforce clean core over time, and how these decisions differ across ECC, S/4HANA on-premise/private cloud, and public cloud. Key lesson areas: Choosing Extension Patterns: In-App vs Side-by-Side under Clean Core; Clean Core Governance, Operations, and Long-Term Roadmap Management; Data Boundaries, Security, and Governance for Clean Core Extensions; Extensibility Models and Trade-offs Under Clean Core; Why Clean Core Matters: Business and Technical Rationale Establishes the governance structures, monitoring practices, and roadmap planning needed to sustain a clean core over multiple release cycles, including how to measure extensibility health and manage cost trade-offs. Explores in-app, developer, and side-by-side extensibility options under clean core, with concrete trade-offs for choosing between them across deployment models. How to decide between in-app key-user extensibility, developer extensibility, and side-by-side extensions on BTP, and how that choice affects integration flow and long-term maintainability. 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. Introduces the clean core concept, why SAP and customers adopted it, and the core problems it solves compared to classic ECC customization practices.
easyClean Core

2. Using this SAP project situation — A retail customer migrating from ECC 6 — explain Why Clean Core Matters: Business and Technical Rationale. What should happen, which concepts or process steps matter, and what common mistake would you avoid?

Introduces the clean core concept, why SAP and customers adopted it, and the core problems it solves compared to classic ECC customization practices. Deep explanation: Clean core is a response to decades of ECC-era practice where customers modified standard SAP objects directly (core modifications), enhanced standard programs with custom logic scattered across the codebase, and built custom tables and reports tightly coupled to SAP internals. This approach worked for a while but created enormous technical debt: every SAP support package or upgrade risked breaking custom code, regression testing became expensive and slow, and the customer's ability to consume new SAP innovation (new Fiori apps, new business processes, embedded analytics) was blocked because the underlying data model or logic had been altered. With S/4HANA, and especially with S/4HANA Cloud Public Edition, SAP shifted to a model where the core ERP system should remain as close as possible to the SAP-delivered standard. 'Clean' does not mean 'no extensions' — it means extensions are built using released, stable extension points (APIs, BAdIs, Business Add-Ins, key-user extensibility tools, or side-by-side apps on SAP BTP) rather than direct modification of standard objects, tables, or code. The core stays upgradable; the differentiation logic lives in a controlled, documented layer. The business rationale is straightforward: faster adoption of SAP innovations, shorter and cheaper upgrade cycles, reduced regression testing scope, and a clearer separation between what SAP owns (the core) and what the customer owns (extensions). The technical rationale centers on stability of upgrade paths — in S/4HANA Cloud Public Edition, customers do not have the option to modify the core at all; extensibility is restricted to released APIs and the key-user extensibility framework. In S/4HANA on-premise and private cloud, more traditional ABAP development is technically possible, but SAP strongly recommends following clean core principles even there, because private cloud customers still receive periodic upgrades and want to avoid the same technical debt that plagued ECC estates. A critical distinction for architects: clean core is not identical across deployment models. In S/4HANA Cloud Public Edition, clean core is enforced by the platform — you literally cannot modify standard objects. In S/4HANA on-premise or private cloud, clean core is a discipline and governance choice — the system technically allows modification, but the organization chooses to restrict it through custom code standards, code review gates, and use of released extension points (BAdIs, enhancement spots, CDS extension includes) instead of direct object changes. ECC does not have a formal 'clean core' concept at all; it predates this architecture pattern, though many of the same discipline principles (avoid core mods, use user-exits/BAdIs where possible) were always considered good ABAP practice. Another core idea is the 'extensibility model': SAP categorizes extensions as in-app (key-user extensibility, low-code tools inside the S/4HANA UI, suitable for simple field additions, custom fields, custom CDS views) versus developer extensibility (ABAP-based extensions using released APIs, on-stack in S/4HANA or off-stack via BTP ABAP Environment) versus side-by-side extensibility (apps built on BTP — Java, Node.js, ABAP Cloud, or low-code — that consume the core via APIs and events, running entirely outside the ERP system). Clean core strategy pushes complex, evolving business logic toward side-by-side or developer extensibility using released APIs, keeping the in-app footprint minimal. For an architect, understanding this lesson is foundational because every later decision — extension type, integration pattern, governance policy, migration approach — depends on correctly framing what 'clean' means in the customer's specific deployment context. Recommended practices: • Establish a clear internal definition of 'clean' calibrated to the actual deployment model (public cloud, private cloud, or on-premise) before starting any extension design. • Run a custom code classification exercise early in any S/4HANA transition project to separate retire, replace, and re-platform candidates. • Educate business stakeholders that clean core is as much a governance and process discipline as a technical constraint. • Document clean core principles in an architecture decision record accessible to all delivery teams, not just Basis or ABAP developers. • Avoid conflating 'no custom code' with 'no differentiation' — clean core still allows strong differentiation through side-by-side extensions and released APIs. Common mistakes to challenge: • Assuming clean core means zero customization is allowed in every deployment model, when in on-premise/private cloud it is a governance choice, not a hard platform restriction. • Treating clean core purely as a technical ABAP topic and ignoring the business process and organizational change management aspects. • Failing to distinguish between SAP Cloud Public Edition's enforced restrictions and private cloud's advisory guidelines, leading to incorrect scoping in proj
easyClean Core

3. Using this SAP project situation — A retail company completed its S/4HANA private cloud clean core migration eighteen months ago — explain Clean Core Governance, Operations, and Long-Term Roadmap Management. What should happen, which concepts or process steps matter, and what common mistake would you avoid?

Establishes the governance structures, monitoring practices, and roadmap planning needed to sustain a clean core over multiple release cycles, including how to measure extensibility health and manage cost trade-offs. Deep explanation: Clean core is not a one-time migration outcome; it is an operating discipline that must survive personnel turnover, vendor pressure, and quarterly release cycles in S/4HANA Cloud or semi-annual cycles in private cloud/on-premise. An architect's job in this phase is to convert clean core principles into governance artifacts that a PMO, Basis team, and business process owners can actually enforce. The first pillar is an extensibility governance board or equivalent lightweight review process. Every request for custom code, whether a BTP side-by-side extension, an in-app extension using released extensibility, or a classical ABAP development request, should pass through a documented decision gate. The gate asks: is there a standard SAP capability, an official BTP service, or a partner solution that meets the requirement without custom code, and if not, what extensibility technique keeps the change upgrade-stable and out of the core stack. Decisions and their rationale must be recorded, because six months later someone will ask why a particular extension exists, and 'nobody remembers' is an audit and maintenance risk. The second pillar is a measurable definition of clean core health. Architects should define and track metrics such as: percentage of custom objects using released/stable extensibility points versus classic modification-style techniques, count of direct table or API accesses that bypass released interfaces, number of side-by-side extensions and their BTP subscription cost trend, and count of open compatibility warnings raised during upgrade readiness checks in on-premise/private cloud landscapes. These metrics should be visible in a periodic architecture review, not buried in a spreadsheet nobody opens. In public cloud, the extensibility guardrails are tighter by design, so governance focuses more on integration sprawl and BTP service proliferation than on raw custom code volume. The third pillar is upgrade and regression discipline. For S/4HANA Cloud public edition, quarterly releases are mandatory, so the governance cadence must include a pre-release regression pass against key business processes and extension points, ideally automated, run in a test tenant ahead of the mandatory upgrade window. For private cloud/on-premise, release cycles are less frequent but larger, so governance should include a documented upgrade readiness checklist covering custom code checks, released API version deprecations, and BTP integration contract verification. Architects should insist that any side-by-side or in-app extension has an owning team, a support contact, and a rollback plan documented before it goes to production, not retrofitted afterward. The fourth pillar is cost governance. Side-by-side extensibility on BTP introduces recurring platform consumption costs (compute, integration flows, API calls) that did not exist in a purely on-premise custom-code model. Architects must model total cost of ownership across a multi-year horizon, comparing the recurring BTP/integration cost against the avoided upgrade-regression cost of on-stack customization. This is a genuine trade-off, not a foregone conclusion, and finance stakeholders should be part of the roadmap conversation. Finally, roadmap management means treating clean core as a living target. New released extensibility options, new BTP services, and new integration patterns appear over time, and old custom solutions built years ago on now-superseded techniques should be periodically reassessed for consolidation or retirement, rather than left indefinitely as legacy debt that quietly erodes the clean core posture achieved during the original transformation. Recommended practices: • Establish a lightweight, mandatory review gate for any new extension, whether in-app or side-by-side • Maintain a living decision log capturing why each extension exists and who owns it • Define and periodically review measurable clean core health metrics, not just qualitative impressions • Align regression testing cadence with the actual release model of each affected system (public cloud quarterly vs private cloud/on-premise cycles) • Model multi-year total cost of ownership for side-by-side extensibility versus on-stack customization before approving new patterns • Schedule periodic reassessment of legacy extensions for consolidation or retirement as new released capabilities become available Common mistakes to challenge: • Treating the initial clean core migration as a completed project rather than an ongoing operating model • Allowing side-by-side extensions to be approved by multiple teams without a shared decision log or ownership record • Not tracking BTP consumption cost trends until finance raises concerns after costs have already grown significantly • Skipping upgrade readiness regression testing for extensions because 'nothing changed on our side' • Failing to periodically retire or consolidate legacy custom objects that predat
mediumClean Core

4. How would you apply Clean Core in a real SAP project? Walk through the design or implementation approach.

A manufacturing company running S/4HANA Private Cloud needed a custom rebate calculation that varied by regional sales organization. Instead of modifying the standard pricing routine (as they had done in ECC), the architecture team implemented the logic as a released BAdI implementation confined to the ABAP Cloud-released object catalog, keeping it inside the core for latency reasons since rebate calculation happened during every sales order save. Separately, the same company built a supplier collaboration portal as a side-by-side app on SAP BTP that consumed S/4HANA APIs for purchase order status, deliberately keeping that far more volatile and UI-heavy logic outside the core so it could be updated weekly without touching the ERP system. A retail company completed its S/4HANA private cloud clean core migration eighteen months ago. During a routine architecture review, the team discovers that twelve new side-by-side extensions were approved by different regional IT leads without going through any central review, three of them duplicating the same pricing-adjustment logic. The architect introduces a lightweight governance board, retrofits a decision log for all existing extensions, and sets a quarterly metric review that flags duplicate capability and rising BTP consumption cost, leading to consolidation of the three redundant extensions into one shared service. A retail customer migrating from ECC 6.0 to S/4HANA Cloud Private Edition had over 400 custom Z-programs and dozens of core modifications accumulated over 12 years, including modified pricing routines and altered standard tables. During the pre-migration assessment, the architecture team used SAP's custom code analysis tooling to classify each object as 'keep as-is', 'retire', 'convert to released API/BAdI', or 're-platform to BTP side-by-side'. Roughly 60% of the custom code was found to be obsolete or replaceable by standard S/4HANA functionality, and the remaining logic was redesigned to use released extension points, cutting the customer's technical debt and setting a clean baseline before go-live. An architecture review during a private cloud rollout discovered that a side-by-side BTP extension had been using a technical service account with broad authorizations to call an internal, unreleased API endpoint because the released equivalent lacked one required field. The governance board required the team to log a formal exception with a remediation deadline tied to an upcoming SAP release that was expected to add the missing field to the released API, and mandated switching to principal propaga
mediumClean Core

5. Suppose you inherit an existing Clean Core solution. How would you review it before making a change?

First understand the current business requirement, dependencies, configuration or code path, integrations, production usage, and known pain points. Do not redesign before establishing the existing behavior. Lesson areas to review: Choosing Extension Patterns: In-App vs Side-by-Side under Clean Core; Clean Core Governance, Operations, and Long-Term Roadmap Management; Data Boundaries, Security, and Governance for Clean Core Extensions; Extensibility Models and Trade-offs Under Clean Core; Why Clean Core Matters: Business and Technical Rationale Known mistakes: • Allowing side-by-side extensions to use a single broad-scope service account instead of principal propagation for user-sensitive operations • Treating custom code migration classification as a one-time exercise instead of re-checking before every major release upgrade • Granting permanent waivers for clean core exceptions instead of tracking them with remediation deadlines • Skipping static code checks in the CI/CD pipeline, relying only on manual code review which misses unreleased object usage • Storing API credentials or secrets directly in extension code or configuration files instead of a managed credential store • Assuming clean core means zero customization is allowed in every deployment model, when in on-premise/private cloud it is a governance choice, not a hard platform restriction. • Treating clean core purely as a technical ABAP topic and ignoring the business process and organizational change management aspects. • Failing to distinguish between SAP Cloud Public Edition's enforced restrictions and private cloud's advisory guidelines, leading to incorrect scoping in project estimates. • Assuming legacy ECC customizations can be lifted-and-shifted as-is into S/4HANA without reassessment against clean core principles. • Underestimating the effort needed to reclassify and remediate existing custom code before an S/4HANA conversion or migration. • Choosing side-by-side for simple field-level logic that key-user tools could handle, adding unnecessary integration overhead • Embedding cross-system orchestration logic inside in-app extensions, creating hidden dependencies that break clean upgrade paths • Assuming side-by-side calls are transactionally consistent with the core commit without designing for eventual consistency • Using non-released APIs or direct table access from a side-by-side extension because a released equivalent was not readily discovered • Failing to document which extensibility tier was chosen and why, causing repeated re-litigation of the same decision by different team
mediumClean Core

6. A project encounters this situation while working on Extensibility Models and Trade-offs Under Clean Core: A manufacturing company running S/4HANA Private Cloud needed a custom rebate calculation that varied by regional sales organization. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.

Explores in-app, developer, and side-by-side extensibility options under clean core, with concrete trade-offs for choosing between them across deployment models. Deep explanation: Once an architect accepts clean core as the guiding principle, the next decision is which extensibility model to use for a given requirement, because each model carries different trade-offs in flexibility, governance, upgrade safety, and skill requirements. SAP's extensibility framework generally recognizes three categories, and understanding when to apply each is central to architect-level decision-making. In-app extensibility (key-user extensibility) allows business users or citizen developers to add custom fields, custom logic via simple rule-based tools, custom CDS-based views, and adapt UIs using low-code tools built into the Fiori launchpad experience, without writing traditional ABAP. This is available in S/4HANA Cloud Public Edition and, to varying extents, in private cloud and on-premise systems that have the extensibility tools enabled. The trade-off: it is fast and safe (upgrade-stable because it uses SAP-released extension points) but limited in complexity — it is not suited for elaborate business logic, complex integrations, or performance-critical processing. Developer extensibility (on-stack) allows ABAP developers to write custom code inside the S/4HANA system itself, but constrained to the 'released' API and class allowlist (in S/4HANA Cloud, this is enforced through the ABAP Cloud programming model and the released object catalog; in on-premise/private cloud it is more permissive but still recommended to follow the same allowlist discipline). This gives more power than key-user tools — custom business logic, custom apps using Fiori elements, custom CDS views with complex logic — while still theoretically remaining upgrade-safe if only released objects are used. The trade-off is that if a developer strays outside the released object list on private cloud or on-premise (which is technically possible there but not recommended), the clean core principle is broken and upgrade risk returns. Side-by-side extensibility moves the custom logic entirely outside the ERP core, typically onto SAP BTP, using ABAP Cloud Environment, Java, Node.js, or a low-code platform like SAP Build. The extension application communicates with S/4HANA exclusively through released, versioned APIs (OData, REST, or events via integration technology) and is deployed, scaled, and upgraded independently of the core system. This is the strongest form of clean core because the core is never touched, and the extension's lifecycle is fully decoupled — you can even swap the underlying core system's version without breaking the extension, as long as the API contract is preserved. Trade-offs include additional integration complexity, potential latency for real-time processes, the need for separate authentication/authorization design (often via principal propagation), and the operational overhead of running and monitoring a separate BTP landscape. A practical decision framework for architects: use in-app extensibility for simple field or UI-level changes owned by business users; use developer/on-stack extensibility for logic tightly coupled to core transactions where near-zero latency matters and released APIs already exist; use side-by-side extensibility for complex, evolving business logic, multi-system integrations, or capabilities that need independent release cycles or reuse across multiple core systems (e.g., a shared pricing engine reused by both S/4HANA and a separate CRM system). Across deployment models, the enforcement differs: S/4HANA Cloud Public Edition mandates released APIs and key-user/developer extensibility within the ABAP Cloud programming model — there is no option to deviate. Private cloud and on-premise give more latitude technically, but choosing to exceed the released object catalog reintroduces the very upgrade risk clean core exists to prevent, so governance policy (not platform enforcement) is the control mechanism there. Architects must therefore pair the extensibility model decision with a governance model: who approves exceptions, how extensions are cataloged, and how the released API/object list is monitored over time as SAP updates it. Recommended practices: • Build and maintain a decision matrix mapping requirement characteristics (latency, complexity, ownership, reuse) to the appropriate extensibility model. • Restrict on-stack developer extensibility to the released object/API catalog even where the platform does not enforce it. • Prefer side-by-side extensibility for logic likely to change frequently or be reused across multiple backend systems. • Maintain a central extension registry documenting which model, which released APIs, and which business owner apply to each extension. • Reassess the extensibility model choice periodically, since SAP continues to expand the released API/object catalog over time. Common mistakes to challenge: • Defaulting to on-stack ABAP development for every requirement instead of evaluating whether key-user tools or side-by-side apps are more appropriate. • Using non-released APIs
mediumClean Core

7. A project encounters this situation while working on Choosing Extension Patterns: In-App vs Side-by-Side under Clean Core: During an S/4HANA private cloud migration, a retail customer needed a custom loyalty discount calculation. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.

How to decide between in-app key-user extensibility, developer extensibility, and side-by-side extensions on BTP, and how that choice affects integration flow and long-term maintainability. Deep explanation: Clean Core adoption is not a single switch; it is a set of recurring architectural decisions made every time a business requirement cannot be satisfied by standard SAP functionality. The central question an architect must answer for each gap is: where should this logic live, and through what interface should it talk to the core? In S/4HANA on-premise and private cloud, SAP offers a layered extensibility model. In-app extensibility using key-user tools (custom fields, custom logic via released Business Add-Ins, custom CDS views built on released objects) keeps changes inside the ABAP system but constrained to supported extension points. Developer extensibility (ABAP Cloud, RAP - RESTful ABAP Programming model) allows more custom ABAP code but still requires using only released APIs and CDS views, not direct table access or core object modification. Side-by-side extensibility moves the custom logic entirely off the core system, typically onto SAP BTP, using ABAP Environment, Java, or other runtimes, communicating with the core exclusively through released APIs (OData, SOAP, REST) or event-driven integration via an event mesh or similar broker. In S/4HANA Public Cloud, the constraint is stricter: only in-app extensibility using key-user tools and the released extensibility scope is possible for logic that must run inside the tenant; anything more complex must be side-by-side by design, since public cloud tenants do not permit classic ABAP development outside the governed extensibility framework. The decision criteria an architect should apply, in rough priority order: (1) Can standard configuration or a released BAdI/enhancement spot satisfy the requirement without custom code? Prefer this always. (2) Does the logic need tight, low-latency coupling with core transactions (e.g., pricing routines invoked mid-document)? This often favors in-app developer extensibility using RAP and released APIs, because side-by-side calls introduce network latency and eventual-consistency risk. (3) Is the logic long-lived, high-change-frequency, or does it need independent release cycles, its own scaling, or non-ABAP skills (e.g., machine learning scoring, complex UI)? This favors side-by-side on BTP. (4) Does the requirement span multiple SAP and non-SAP systems (orchestration, data aggregation, workflow across systems)? This is a strong signal for side-by-side, often using an integration layer like SAP Integration Suite rather than embedding orchestration logic in any single core system. Runtime and integration flow differ meaningfully between the two patterns. In-app RAP-based extensions execute in the same database and transaction context as standard logic, so they can participate in the same commit and rollback boundaries, and they read/write only through released CDS views and APIs, never raw core tables. Side-by-side extensions on BTP call into the core via API endpoints exposed through the API Business Hub / released interfaces, typically authenticated via OAuth2 with client credentials or principal propagation, and any transactional consistency across the boundary must be designed explicitly, since a side-by-side write and a core write are not part of one database transaction. This introduces the need for idempotent design, retry logic, and sometimes compensating transactions if a downstream call fails after the core commit. A common real-world pattern is hybrid: use in-app custom fields and key-user logic for minor calculations tightly bound to a document, and side-by-side apps on BTP for cross-system processes, dashboards, or logic requiring frequent independent releases. Getting this split wrong is the most frequent Clean Core governance failure: teams either over-extend the core because side-by-side setup feels heavier, or over-engineer side-by-side solutions for simple field-level logic that in-app tools could have solved in an hour. Recommended practices: • Always check for standard configuration and released enhancement spots before proposing any custom extension • Document the extensibility tier decision and rationale for every custom requirement in an architecture decision log • Reserve in-app developer extensibility for logic requiring same-transaction consistency with core documents • Design side-by-side integrations for idempotency and failure recovery since they are not part of the core's database transaction • Differentiate guidance by deployment model: public cloud restricts in-app options more than private cloud or on-premise Common mistakes to challenge: • Choosing side-by-side for simple field-level logic that key-user tools could handle, adding unnecessary integration overhead • Embedding cross-system orchestration logic inside in-app extensions, creating hidden dependencies that break clean upgrade paths • Assuming side-by-side calls are transactionally consistent with the core commit without designing for eventual consistency • Using non-released APIs or direct table access from a si
hardClean Core

8. A production issue is reported in Clean Core. What would you check first, and how would you troubleshoot it systematically?

Start by reproducing and scoping the issue, then validate the relevant master/configuration/runtime data and isolate the failing step before changing anything. Common failure patterns from the lesson set: • Allowing side-by-side extensions to use a single broad-scope service account instead of principal propagation for user-sensitive operations • Treating custom code migration classification as a one-time exercise instead of re-checking before every major release upgrade • Granting permanent waivers for clean core exceptions instead of tracking them with remediation deadlines • Skipping static code checks in the CI/CD pipeline, relying only on manual code review which misses unreleased object usage • Storing API credentials or secrets directly in extension code or configuration files instead of a managed credential store • Assuming clean core means zero customization is allowed in every deployment model, when in on-premise/private cloud it is a governance choice, not a hard platform restriction. • Treating clean core purely as a technical ABAP topic and ignoring the business process and organizational change management aspects. • Failing to distinguish between SAP Cloud Public Edition's enforced restrictions and private cloud's advisory guidelines, leading to incorrect scoping in project estimates. • Assuming legacy ECC customizations can be lifted-and-shifted as-is into S/4HANA without reassessment against clean core principles. • Underestimating the effort needed to reclassify and remediate existing custom code before an S/4HANA conversion or migration. • Choosing side-by-side for simple field-level logic that key-user tools could handle, adding unnecessary integration overhead • Embedding cross-system orchestration logic inside in-app extensions, creating hidden dependencies that break clean upgrade paths • Assuming side-by-side calls are transactionally consistent with the core commit without designing for eventual consistency • Using non-released APIs or direct table access from a side-by-side extension because a released equivalent was not readily discovered • Failing to document which extensibility tier was chosen and why, causing repeated re-litigation of the same decision by different teams • Defaulting to on-stack ABAP development for every requirement instead of evaluating whether key-user tools or side-by-side apps are more appropriate. • Using non-released APIs or classes in private cloud/on-premise developer extensibility because they are technically accessible, quietly reintroducing upgrade risk. • Choosing side-by-side extensibility for
hardClean Core

9. What are the most important design decisions, trade-offs, and best practices in Clean Core?

• Always check for standard configuration and released enhancement spots before proposing any custom extension • Document the extensibility tier decision and rationale for every custom requirement in an architecture decision log • Reserve in-app developer extensibility for logic requiring same-transaction consistency with core documents • Design side-by-side integrations for idempotency and failure recovery since they are not part of the core's database transaction • Differentiate guidance by deployment model: public cloud restricts in-app options more than private cloud or on-premise • Build and maintain a decision matrix mapping requirement characteristics (latency, complexity, ownership, reuse) to the appropriate extensibility model. • Restrict on-stack developer extensibility to the released object/API catalog even where the platform does not enforce it. • Prefer side-by-side extensibility for logic likely to change frequently or be reused across multiple backend systems. • Maintain a central extension registry documenting which model, which released APIs, and which business owner apply to each extension. • Reassess the extensibility model choice periodically, since SAP continues to expand the released API/object catalog over time. • Enforce released-object-only access through automated static checks in the transport or CI/CD pipeline, not manual review alone • Use principal propagation for extensions touching approval or SoD-sensitive data; reserve service accounts for narrowly scoped technical operations • Maintain a custom code and extension register classifying every object by extensibility tier and released dependencies • Track any clean core exceptions with an explicit owner and remediation deadline rather than a permanent waiver • Re-run custom code compliance analysis before every major release upgrade, since released object catalogs evolve • Establish a clear internal definition of 'clean' calibrated to the actual deployment model (public cloud, private cloud, or on-premise) before starting any extension design. • Run a custom code classification exercise early in any S/4HANA transition project to separate retire, replace, and re-platform candidates. • Educate business stakeholders that clean core is as much a governance and process discipline as a technical constraint. • Document clean core principles in an architecture decision record accessible to all delivery teams, not just Basis or ABAP developers. • Avoid conflating 'no custom code' with 'no differentiation' — clean core still allows strong differentiation through side-by-side extensi
hardClean Core

10. You are the senior consultant/architect responsible for Data Boundaries, Security, and Governance for Clean Core Extensions. The project situation is: An architecture review during a private cloud rollout discovered that a side-by-side BTP extension had been using a technical service account with broad authorizations to call an internal, unreleased API endpoint because the released equivalent lacked one required field. How would you assess the design, identify the highest-risk failure modes, and define the evidence required before approving it for production?

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. Deep 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). Architects must decide, per integration, whether principal propagation is required for compliance reasons (e.g., approval workflows where SoD matters) versus where a technical service user with tightly scoped authorizations is acceptable (e.g., a read-only reporting extract). Secrets and credentials for these connections should be stored in a managed credential store rather than embedded in extension code, and API scopes should be minimized to only the operations the extension actually needs - broad admin-level API grants are a common audit finding. Governance for durability: a Clean Core governance model typically includes (1) a custom code register that classifies every extension by tier (in-app key-user, in-app developer/RAP, side-by-side) and by the released interfaces it depends on; (2) an architecture review gate that any new extension must pass before development, verifying no direct table or unreleased object access is planned; (3) automated static checks integrated into the transport or CI/CD pipeline that flag unreleased API usage, direct table access, or deprecated object references before code can be transported to production; (4) a recurring review cadence (e.g., before each SAP release upgrade) that re-scans existing custom code against the current released-object catalog, since objects can be deprecated or reclassified over time; (5) clear ownership - a named team or role accountable for approving exceptions when a genuinely unavoidable deviation from clean core is required, with an explicit expiry or remediation plan rather than a permanent waiver. Migration and rollback implications: when migrating custom code from ECC, the SAP-provided custom code migration analysis (as part of the broader system conversion tooling) classifies existing objects by their compatibility with S/4HANA and, separately, by their clean core compliance. Objects using obsolete data structures or direct table access to now-restructured tables must be remediated, not merely technically adjusted. Rollback planning for a clean core extension is generally simpler than for core modifications: because the extension lives in its own namespace (in-app) or its own system (side-by-side), rollback often means deactivating or undeploying the extension without needing to revert core transports, which is a genuine operational advantage of the approach - but only if the governance controls above were actually followed, since exceptions and hidden coupling erode this benefit. Recommended practices: • Enforce released-object-only access through automated static checks in the transport or CI/CD pipeline, not manual review alone • Use principal propagation for extensions touching approval or SoD-sensitive data; reserve service accounts for narrowly scoped technical operations • Maintain a custom code and extension register classifying every object by extensibility tier and released dependencies • Track any clean core exceptions with an explicit owner and remediation deadline rather than a permanent waiver • Re-run custom code compliance analysis befo

Related lesson

SAP Clean Core Tutorial (Part 1)

Related topics

Next practice step

Go deeper on this topic