Keep intelligent automation outside the S/4HANA core without losing traceability or control.
Related, 7 November 2026: the same boundary thinking applies to agents. See Prebuilt vs custom Joule agents and AI agent governance: who owns what.
The design question
Every AI-assisted process on S/4HANA raises the same question: where does the intelligence live, and how does the core stay upgradeable? The clean-core answer is simple to state and easy to get wrong in detail. The model, prompts, orchestration and decision log live outside the core; the core exposes data through released interfaces and accepts changes only through the same transactions a user would run.
A boundary that works
- Inside the core: business data, authorizations, posting logic, standard worklists and the events the core already raises (document posted, lock set, dunning executed).
- Outside the core (SAP BTP or an equivalent platform): the agent or model, retrieval of evidence, the proposal, the confidence score and the record of who approved what.
- Between the two: released OData or SOAP APIs and business events for reading; released APIs or a user-driven transaction for writing. No direct table updates, no unreleased function modules, no modifications.
For FI-CA this usually means reading open items, dunning history and correspondence through released services and writing back, if at all, through the same interfaces an integration would use.
Traceability is the real requirement
Auditors do not ask how clever the model is. They ask why a specific account was treated differently and who decided. So the extension stores, per decision: the business object key, the evidence snapshot, the proposal, the confidence, the human decision and the timestamp. The core shows only the outcome it would have had anyway, with the user who approved it.
Checklist before you build
- Every read goes through a released API or event; every write goes through a released API or a user action.
- The extension can be switched off and the process falls back to the standard SAP worklist with no data loss.
- Prompts and model versions are versioned like code and recorded with each decision.
- The decision log is reportable without opening the AI platform.
- Upgrade testing of the core does not need the extension to be present.
Reader takeaway
Clean core is not a constraint on AI; it is what keeps an AI extension cheap to run through the next S/4HANA upgrade. Put the intelligence next to the core, keep the evidence trail outside it, and let the core do only what it already does well.
Frequently asked questions
Does clean core mean no custom code at all?
No. It means custom and AI logic stays out of the modification layer: use released APIs, events and the extensibility options SAP supports for upgrades, so the core can be upgraded without re-testing bespoke code inside it.
Where should an AI recommendation be stored?
Store the proposal, evidence, confidence and the human decision outside the core, linked to the SAP document or business object key. The core keeps only the resulting posting or status change it would have had anyway.
Continue your trail
You now have the Clean Core context.
Save this guide, continue to the next concept or return to the Knowledge Library with your context intact.
Clean Core
1 resource in this area.
Spotted something out of date, or have a question about this topic? Corrections and questions are always welcome.
Send a note →
