Book a Demo
Book a Demo

How to Accelerate SAP Development with AI Without Breaking Clean Core

SAP clean core AI done right: grade every generated ABAP extension A to D with ABAP Test Cockpit, keep human sign-off, accelerate without debt.

Sagar ChakrabortySagar ChakrabortyDirector of Artificial Intelligence Innovations & Strategy, AiFA LabsPublished Aug 12, 2026 · Updated Aug 12, 2026 · 17 min read
AI voice · studio narration coming soon
Rate this guide
Markdown
Part of the guideAI for Development in Existing S/4HANA Environments
Start hereGovernanceMigrationPart of the guide: AI for Development in Exist…5 Q&AKey TakeawaysWho This Guide Is ForCan AI-Generated SAP Developm…What Clean Core Actually Requ…How SAP Grades Every Extensio…Where Acceleration Turns Into…How Can SAP Teams Use AI Whil…What AI Tools Support SAP Cle…How Enterprises Can Govern AI…About the AuthorYou are here

AI can accelerate SAP development without breaking clean core, but only when the speed is governed. SAP clean core AI is the use of AI-assisted development inside SAP's clean core extensibility guardrails, released APIs, the ABAP Cloud model and automated compliance checks, rather than unrestricted code generation. On the extensibility dimension, SAP's clean core model determines how upgrade-safe an extension is. Since 2025, SAP classifies extensions on a formal scale from A to D based on the objects and interfaces they use. So the real question this article answers is not whether AI can write ABAP. It obviously can. The question is whether every AI-generated line is graded on the same scale as human code before it ships. We build SASA (SAP AI SDLC Assist), an AI platform for the SAP delivery lifecycle, which is why we read SAP's clean core and ABAP Cloud documentation line by line rather than in summary. Everything here is drawn from SAP's own documentation, and it ends with a five-point framework you can run against your current approach.

Key Takeaways

  • AI-generated SAP development stays clean-core compliant on the extensibility dimension when every extension targets released APIs and is graded A to D by ABAP Test Cockpit, the same way human code is.
  • SAP grades extensions into four clean core levels, A to D, based on "architectural integrity, upgrade safety, and alignment with clean core principles," a model it introduced in 2025.
  • Clean core does not forbid custom code. SAP requires extensions "decoupled from the core by leveraging released APIs," built on-stack with ABAP Cloud or side-by-side on SAP BTP.
  • Speed is the risk multiplier. Automation that produces Level C or D output faster is automating technical debt, which SAP calls "expensive to upgrade."
  • SAP's own AI, Joule for developers, is "designed to support ABAP Cloud development... respecting the technical constraints and standards," and routes low-confidence output to human review.
  • Action step: grade AI output with ABAP Test Cockpit before it ships, keep human sign-off at your existing SAP Activate quality gates, and pilot on one bounded flow first.

Who This Guide Is For

This is written for the people who own the decision to let AI into SAP delivery and the standards it has to meet. Heads and VPs of SAP and SAP Centre of Excellence leads weighing acceleration against governance. Enterprise and ABAP architects who own the extension rules the rest of the team builds against. S/4HANA transformation and SAP BTP leads carrying a delivery backlog. And SAP system integrators trying to deliver more work without adding proportionally more people. It assumes you run SAP development already and are deciding how to speed it up without paying for it at every upgrade.

Can AI-Generated SAP Development Follow Clean Core Principles?

Yes. AI-generated SAP development can follow clean core principles, because clean core is defined by which objects and APIs an extension uses and how decoupled it is from the standard. SAP grades the output, not the author. The governing question becomes whether the extension uses released, upgrade-stable building blocks and whether it has been checked. An AI that generates against released APIs inside the ABAP Cloud model, and whose output is then graded by ABAP Test Cockpit, produces the same clean result a compliant developer would. Point the same AI at internal tables and non-released objects and it produces debt faster than a person could type it. The difference is governance, which you design into the generation and then verify. The rest of this article is how that works, section by section.

What Clean Core Actually Requires (and What It Does Not)

Clean core means keeping your ERP system "as close as possible to its standard, vendor-provided state while handling custom modifications through cloud extensions and side-by-side innovations," in SAP's own definition. It does not mean eliminating custom code. That is the misread we correct most often when we walk into an SAP team, and it matters here because it decides whether AI acceleration is even allowed to help.

Clean Core Is About Decoupling, Not Zero Custom Code

SAP is explicit that business differentiation "often depends on tailored processes, custom applications, or personalized user experiences," and it supports that "through clean extensibility, a framework that enables innovation without compromising system integrity," per its August 2025 extensibility guidance. The two sanctioned paths are side-by-side extensibility on SAP BTP and on-stack extensibility with ABAP Cloud. What clean core discourages is modifying the standard core directly. SAP Learning draws the line cleanly: a side-by-side extension "is always stable and will not be affected by release upgrades," while with classic extensibility "customizations can become unstable since there are no restrictions on the ABAP code you can use, or the objects you can change," in SAP's clean core training. Clean, then, is a property of how an extension is built, and SAP defines six dimensions of it in what it calls the clean core concept: software stack, extensibility, integrations, processes, data, and operations. SAP's principle for the dimension we care about here is that clean extensions are "decoupled from the core by leveraging released APIs," per its RISE clean core methodology. This article stays on the extensibility dimension, because that is where AI-generated code lands. For the fuller clean core primer and how it sits inside the whole delivery lifecycle, see our pillar on SAP SDLC automation with SASA.

The Cost SAP Attaches to Getting It Wrong

The reason any of this governs AI is the price SAP attaches to an un-clean core. "Over time, layers of custom code create complex systems that are difficult to maintain, expensive to upgrade, and prone to error," SAP writes, naming the result technical debt that "slows down innovation and makes it harder for businesses to adapt," again in its clean core guidance. Modifying the core, SAP adds, "limits flexibility, slows down upgrades, and increases the total cost of ownership." Hold that thought next to the promise of AI acceleration. If the thing you are speeding up is the production of code that behaves this way, you have not saved time. You have borrowed it at interest, and the upgrade is when the bill arrives. The way to avoid that bill is to know the grade of what you are shipping, which is exactly what SAP now measures.

How SAP Grades Every Extension: Clean Core Levels A to D

Since 2025, SAP classifies extensions into four clean core levels, from A at the cleanest end to D at the highest risk, with ABAP Test Cockpit findings mapping the extension to its level. These four levels are SAP's clean core extensibility model, so they score the extensibility dimension specifically, which is exactly where custom and AI-generated code lands. SAP describes it as evolving "its original three-tier model into the clean core level concept, an enhanced maturity model" that "categorizes extensions into four distinct levels (A, B, C, and D) based on their architectural integrity, upgrade safety, and alignment with clean core principles," in the August 2025 announcement. That scale is what makes governing AI output concrete rather than a matter of opinion. You do not have to argue about whether generated code is clean. You can grade it.

What Each Clean Core Level Means

Here are the four levels in SAP's own words, with the interface each depends on and what it means for your next upgrade.

LevelSAP's definitionInterface usedUpgrade safety
A"Fully compliant extensions using only publicly released and stable SAP interfaces, backed by formal stability contracts"Released APIs, ABAP Cloud on-stack or side-by-side on SAP BTPHighest. Insulated from upgrades by design
B"Compliant extensions, in addition to meeting level A criteria, using also SAP's classic APIs and technologies... well-defined, documented, and generally upgrade-stable interfaces for extension use"Classic APIsGenerally stable, with more to watch
C"Partially compliant extensions allowing access to SAP internal objects, offering flexibility for legacy scenarios"SAP internal objectsAt risk. Internal objects can change between releases
D"Extensions not considered 'clean' that use explicitly non-recommended objects or techniques"Modifications, write access to SAP tables, implicit enhancementsLowest. SAP says these "represent the highest risk and create significant technical debt"

The point for anyone adding AI to the mix is that the scale runs by what the code touches, not by how fast it was written. Whether speed helps or hurts comes down to what the generator is allowed to reach for.

How ABAP Test Cockpit Turns the Levels Into a Check

The levels are not a paper classification. They are enforced in the tooling. Clean core compliance "is enforced by syntax checks and ABAP test cockpit checks in ABAP development tools for Eclipse," per SAP's released-APIs training. The check variant SAP calls ABAP_CLOUD_READINESS "checks that only object types available in ABAP Cloud are developed, only ABAP Cloud language statements are used, and that only released SAP APIs are called," in SAP's clean core development course. The grade then falls out of the findings: released APIs produce no finding and map to Level A, classic APIs produce a Priority 3 information message and map to Level B, internal objects produce a Priority 2 warning and map to Level C, and non-recommended objects produce a Priority 1 error and map to Level D. SAP makes the boundary literal in the editor. Reach for a non-released table and you get told to stop: "The use of table T005 is not permitted. Use CDS Entity I_COUNTRY instead." Because the grade is machine-checkable, it can be run on AI output automatically, before a human ever reviews it.

Where Acceleration Turns Into Technical Debt

Acceleration increases technical debt only when it produces lower-level extensions faster than anyone catches them. Volume without grading is the failure mode, because a generator that is comfortable calling internal objects will produce Level C and D code at a rate no manual review was staffed to inspect. We put it plainly to the teams we work with: if your automation produces Level C output faster, you have automated the creation of technical debt. Nothing about the tool is at fault there. The tool did what it was pointed at.

The fix keeps the speed and adds control. Constrain what the generator can reach for, then grade what comes out before it merges. The two paths start at the same prompt and end in opposite places, one at an upgrade-stable extension with its evidence attached, the other at the code SAP says is expensive to upgrade, just produced faster. Which one you get is a governance decision made before the first line is generated, and the next section is how to make it.

How Can SAP Teams Use AI While Maintaining Clean Core?

Keep the AI inside the same guardrails SAP built for human developers. Generate against released APIs in the ABAP Cloud model, grade every artifact with ABAP Test Cockpit, and keep human approval at the quality gates you already run. Each part has a SAP-published basis.

Hold the AI to the Same Guardrails

ABAP Cloud is "the development model to build clean core compliant business apps, services or extensions," and it is "based on released objects and public APIs and extension points," in SAP's ABAP Cloud FAQ. Its restricted language scope, the version SAP names "ABAP for Cloud Development," is what stops a developer from reaching outside the allowlist, and non-public SAP CDS views "need to be wrapped and released for ABAP Cloud development by the customer" before they can be used. The move for AI is to hold the generator to that same allowlist. If the AI can only emit what a compliant human is allowed to emit, Level A stops being something you hope for and becomes the floor.

SAP Designed Its Own AI to Work This Way

SAP's own AI for ABAP is the clearest evidence that this is the sanctioned pattern. Joule for developers is "designed to support ABAP Cloud development by providing context-aware assistance directly within ABAP development tools," "respecting the technical constraints and standards of ABAP Cloud," with assistance that "aligns with released APIs, extension points, and cloud compliant development practices," per SAP's Joule for developers training. SAP's 2026 custom code migration agent goes further into the delivery flow, running "SAP S/4HANA readiness checks via ABAP test cockpit across entire custom code packages" and helping "create clean core extensions while preserving SAP standards and governance," in SAP's Q2 2026 Business AI release highlights. Read SAP's verbs carefully, because they are precise. The AI is "designed to support," it "aligns with," it "helps create." SAP does not say its AI enforces or guarantees clean core. The enforcement stays with ABAP Test Cockpit and with the developer, and SAP builds that in: high-confidence fixes are applied automatically while "lower-confidence proposals are added as comments for developer review, so teams retain control over final code quality." That is exactly the principle we hold SASA to. Governance is built into generation, and the check still runs.

Keep the Human Approval Gates You Already Have

None of this is autonomous, and it should not be. SAP Activate already gives you the gates. Quality gates are "checkpoints that ensure the project team has met specific criteria before proceeding to the next phase," and "proceeding to the next project phase needs stakeholders and project sponsors to sign off," in SAP's quality-gate training. SAP is equally direct that AI does not remove the developer's job of checking, listing "verifying AI-generated code" among the skills its developers now need, in its developer-experience guidance. The rule we give clients is simple. Every generated artifact goes through the review it would get if a person had written it from scratch, and your architects approve at the gates they already have. AI changes who writes the first draft. It does not change who signs it off.

What AI Tools Support SAP Clean Core Governance?

The governance layer is mostly SAP's own tooling, and AI tools support clean core governance to the degree they generate into that layer rather than beside it. ABAP Test Cockpit grades the code, SAP Cloud ALM carries requirement-to-test traceability and an open test automation interface, gCTS gives you auditable Git-based transport, and custom code management keeps the picture current. An AI that produces a clean grade, a traceable test, and a versioned transport is doing governed work. Produce only the code, and you have handed someone a review problem instead.

The Native SAP Governance Stack

These are the SAP-published tools that turn "we think it is clean" into evidence you can show an auditor.

ToolWhat it governsEvidence it produces
ABAP Test CockpitClean core compliance of custom codeThe A to D grade and prioritised findings, runnable in Eclipse and on transport requests
SAP Cloud ALM Test ManagementTraceability of tests to requirementsEach test case linked to its requirement or user story, for "full traceability" end to end
SAP Cloud ALM Test Automation APIAutomated test preparation and executionAn open interface SAP keeps "open for other third-party test automation integration"
gCTS (git-enabled Change and Transport System)Change and transport of ABAP objectsA versioned, auditable transport managed "using Git as an external version management system"
Custom Code ManagementOngoing control of the custom estateAn inventory, usage data, and remediation actions, with guidance to "re-run ATC on a bi-weekly basis"

Sources for the quoted rows are SAP Cloud ALM test management, the SAP ALM test automation partners page, the SAP Change and Transport System page, and SAP's custom code management best practices.

Where Lifecycle Automation Fits, and Where a Code Assistant Stops

A code assistant accelerates one stage. It writes and explains code inside the editor, which is genuinely useful, and SAP's own Joule for developers is good at it. What an assistant does not do is carry the specification into the code and the code into its tests, because the delay in SAP delivery lives between the stages, not inside the coding one. Lifecycle automation covers that whole chain, generating and connecting requirements, specifications, ABAP, and tests, with the governance evidence attached rather than reconstructed afterward. Here is where each one sits across the lifecycle.

Across the lifecycleCode assistant (for example SAP Joule for developers)Lifecycle automation (SASA)
ScopeOne stage, inside the editorRequirements through testing, end to end
RequirementsDeveloper writes themStructured from the request
Specifications (FDS and TDS)Out of scopeGenerated from the requirement
ABAP codeGenerates, completes and explains code in the IDEGenerated within clean core extensibility guardrails
TestingUnit test generation in the IDEFunctional, regression and scenario QA generated
TraceabilityNot its roleTests traceable to requirements in SAP Cloud ALM
Clean core gradingDesigned to align with ABAP Cloud; SAP's 2026 agent runs ABAP Test CockpitClean core native, graded as the code is generated
Human approvalLow-confidence output routed to developer reviewEvery artifact reviewed and approved at existing gates

This is the category we built SASA for. We made it clean core native rather than adding a compliance check as a later review step, so every line of AI-generated code gets graded on the same scale as human code, and the tests arrive traceable to the requirement they cover. One oil and gas team we work with measured application delivery running twice as fast against its own prior baseline, with the same developers and the same tooling. What changed was the workflow around the code: the functional and technical specifications and the QA validation are generated rather than written by hand, and clean core is checked as the code is generated rather than audited months later. Those are AiFA-reported client results, measured on that team's application delivery, and shown in the SAP application development use case. The full contrast between an assistant and lifecycle automation is drawn out on the Why SASA page.

How Enterprises Can Govern AI-Generated SAP Development: A Five-Point Framework

Govern AI-generated SAP development the way you would govern a fast new developer. Constrain what it is allowed to use, grade everything it produces, and refuse to ship anything ungraded. Here is the framework we run before we propose automation anywhere, and you can run it without us.

  • Constrain generation to the allowlist. Hold the AI to released APIs and the ABAP Cloud model, so Level A is the default target rather than an aspiration. A generator that can reach internal objects will eventually reach them.
  • Grade every generated artifact before merge. Run ABAP Test Cockpit on the output and treat a Priority 1 finding, a Level D result, as a stop rather than a suggestion. The grade is machine-checkable, so it runs in the pipeline without waiting for a meeting.
  • Require the spec and the tests to arrive with the code. Each test should trace to its requirement in SAP Cloud ALM. Code that arrives without its specification and its evidence only defers the review you still owe.
  • Keep the human approval gate. No AI artifact skips the review or the SAP Activate quality gate a human-written one would face. Sign-off does not move because the first draft was generated.
  • Monitor continuously. Re-run ABAP Test Cockpit as new custom code lands and keep a custom-code inventory, so the grade stays true as the estate grows rather than drifting after go-live.

Run those five points against your current approach to AI in SAP delivery. If your answer to any of them is "we generate first and check later," that is the point where acceleration is quietly turning into debt, and it is much cheaper to know now than at the upgrade.

[Request an SAP SDLC Automation Assessment]

About the Author

Sagar Chakraborty is Director of Artificial Intelligence Innovations and Strategy at AiFA Labs, where he leads the team building SASA (SAP AI SDLC Assist), the company's AI platform for the SAP delivery lifecycle, and works most closely with Fortune 500 companies in life sciences and healthcare. He holds a PhD and a Master of Technology in Artificial Intelligence from IIT Jodhpur, completed a management program at IIM Calcutta, holds two patents in document-processing neural architectures, and has spent over ten years building AI products, starting as a software engineer in 2014 and previously shipping at Amazon Robotics, Wipro and Allied Media. TradeFlock named him one of India's Top 10 AI Leaders in 2025, and his research is connected to AI labs at IIT Jodhpur and IIT Kharagpur. His SAP expertise is in the delivery lifecycle, which is the lens this article applies to accelerating development while preserving Clean Core; the architectural, governance and clean core claims here rest on the linked primary sources rather than on personal opinion. Read Sagar Chakraborty's full profile. Connect with Sagar on LinkedIn. View full profile →

Frequently Asked Questions

No. On the extensibility dimension, clean core compliance depends on which objects and APIs the output uses and whether it is graded, not on the fact that AI wrote it. AI-generated ABAP that targets released APIs and reaches Level A on SAP's clean core extensibility model is, on that dimension, exactly as clean as the same code written by hand. Ungoverned generation is where the risk comes from.

References

  • SAP. What Is a Clean Core?
  • SAP. RISE with SAP: ERP Clean Core Strategy
  • SAP News. How to Extend SAP S/4HANA Cloud the Right Way (Clean Core Levels A to D), August 2025
  • SAP Learning. Discovering the Clean Core Concept
  • SAP Learning. Utilizing the Clean Core Strategy and Extensibility Tools
  • SAP Learning. Exploring Released APIs (Clean Core Extensibility)
  • SAP Learning. Setting Up for Clean Core Development (ATC Variants and Levels)
  • SAP Community. ABAP Cloud FAQ
  • SAP. Joule for Developers
  • SAP News. How Joule for Developers and ABAP AI Capabilities Transform the Developer Experience, July 2025
  • SAP News. SAP Business AI: Release Highlights Q2 2026
  • SAP Learning. Setting Up SAP Joule for Developers
  • SAP Support. SAP Cloud ALM Test Management
  • SAP Support. SAP ALM Test Automation (Partners)
  • SAP. SAP Activate Methodology
  • SAP Learning. Defining Quality Gates in an Enablement Project Plan
  • SAP Learning. Improving Code Quality Using ABAP Test Cockpit
  • SAP Support. Change and Transport System (gCTS)
  • SAP Help. Custom Code Management During an SAP S/4HANA Conversion (Best Practices)
Found this useful?
Send it to someone on your SAP team.
See how this applies to your SAP delivery
Walk through SASA with the AiFA Labs team.
Book a Demo

Comments

Watch it in action

Product demos from the AiFA Labs channel · subscribe on YouTube →