
Integrating Headless CMS with SAP, Oracle, Dynamics
Do we have to replace SAP to adopt a headless CMS? No — the ERP stays the system of record. Five coupling patterns and a roadmap that never touches it.
TL;DR: A headless CMS does not replace SAP, Oracle, or Microsoft Dynamics — the ERP stays the back-office system of record and the CMS reads from it. Adopting one is an integration project, not an ERP migration, and the safe default is a read-mostly, one-way sync from the ERP into a cached content layer. This guide covers the system-of-record principle, the SAP/Oracle/Dynamics integration surfaces, five coupling patterns, failure handling, and a four-phase roadmap that never touches the ERP.
The fear that blocks the decision — and why it is unfounded
A question that can stall headless CMS evaluations is not on the architecture diagram: "if we adopt a headless CMS, do we have to replace SAP?" The fear is reasonable on its face — the ERP runs finance, inventory, orders, and pricing, and nobody wants a website project to put that at risk. The fear is also unfounded, and naming it directly is the fastest way to de-risk the whole conversation.
A headless CMS is a content and presentation layer. It owns editorial copy, page composition, media, and the story around a product — not the product master, not the price book, not the order. The ERP keeps owning everything it owns today; the CMS reads what it needs and renders it. Nothing in the catalog, the pricing engine, or the financial ledger changes ownership.
The distinction that settles the room is one sentence: this is an integration project, not an ERP migration. A migration replaces a system of record, which is typically a long, high-risk program. An integration is a bounded connection between two systems that keep doing their separate jobs. Much of the concern about disrupting ERP operations eases once stakeholders understand the ERP is never opened, only read.
System of record vs system of engagement — the architectural principle
The principle underneath every decision in this article is the split between a system of record and a system of engagement. The system of record (SoR) is the authoritative source of a piece of business data — the ERP holds the material master, the price, the stock figure, the order status. It is never overwritten by the CMS, and its data is true by definition because nothing downstream is allowed to disagree with it.
The system of engagement (SoE) is where people interact with the brand — the website, the app, the portal. The headless CMS is an SoE: it holds the marketing narrative, the SEO structure, the page layout, and a cached projection of the SoR data it needs to render. The boundary is clean to state: the product specification and the price come from the ERP through an API; the story told around them lives in the CMS.
Write direction is the part to get right, because getting it wrong is how an integration becomes a liability. In this design, ERP integration is one-way: the ERP pushes or the CMS pulls, the CMS caches, and the CMS does not write back into the ERP. This is the deliberate contrast with the CRM integration article, where the customer system of record genuinely requires a bidirectional flow — forms writing in, lifecycle reading out. Both articles share one principle, never replace the system of record, but the ERP couples read-mostly while the CRM couples both ways, and conflating the two leads teams to build a write path into an ERP that should never have one.
Integrating with SAP (S/4HANA, ECC)
SAP exposes more than enough integration surface to feed a content layer without a custom connector. OData services exposed through SAP Gateway can serve product, pricing, and stock reads; on older ECC landscapes, BAPIs (business-object methods that SAP stores as RFC-capable function modules) can be called over RFC; and SAP Integration Suite, which SAP positions as the migration path from SAP Process Orchestration (PI/PO), is the orchestration layer when the connection has to be governed centrally. The SAP Business Accelerator Hub catalogs the available APIs, which is the place to confirm what a given S/4HANA or ECC release actually exposes rather than assuming.
The pattern is a scheduled or event-driven sync of SoR data into a CMS read collection that editors never write to. The CMS holds an enriched product content layer — marketing copy, media, SEO fields, localized variants — keyed to the SAP material number, so the authoritative figure and the story stay joined without either system reaching into the other.
// A scheduled job, never the render path. Reads SAP, writes the CMS read model.
// Illustrative sketch: sapOData is a placeholder client, and MaterialSet with its
// fields stands in for whichever SAP services expose them. Paging is omitted here.
async function syncCatalogFromSAP() {
const materials = await sapOData.get('/MaterialSet?$select=Matnr,Price,StockQty')
for (const m of materials) {
const data = { materialNumber: m.Matnr, price: m.Price, stock: m.StockQty, syncedAt: new Date().toISOString() }
const existing = await payload.find({
collection: 'product-cache', // CMS read model — editors never write here
where: { materialNumber: { equals: m.Matnr } },
limit: 1,
})
if (existing.docs.length > 0) {
await payload.update({ collection: 'product-cache', id: existing.docs[0].id, data })
} else {
await payload.create({ collection: 'product-cache', data }) // new materials are created, not skipped
}
}
}The rule that protects production is one that is easy to break under deadline pressure: never put SAP under live render load. A page that calls SAP synchronously on every request couples the site's uptime and latency to an ERP that may not be sized for public web traffic, and the failure tends to surface when a campaign drives volume. Cache the SoR data in the CMS or an edge key-value store and serve from the cache; SAP is read on a schedule, not by visitors.
Integrating with Oracle and Microsoft Dynamics
Oracle and Microsoft expose comparable API surfaces, so the principle carries without change. Oracle ERP Cloud and E-Business Suite present REST APIs for the relevant business objects, with Oracle Integration as the orchestration layer when the connection needs managed mapping, scheduling, and error handling rather than a hand-rolled job; Oracle's product REST API guides — for example, the REST API for Oracle Fusion Cloud Financials — are where to confirm the specific REST resources a given module publishes. On the Microsoft side, Dynamics 365 Finance and Supply Chain Management expose the data entities marked public through their own OData REST endpoint, with Power Automate and Azure Logic Apps as Microsoft's low-code integration options.
The principle is identical across all three vendors: the ERP is authoritative, the CMS subscribes to changes and caches a read model, and the render path touches the cache, not the ERP. The vendor differences — paging, limits, endpoint structure — matter in the build but not in the architecture; a team that has built the SAP sync already knows the shape of the Oracle and Dynamics ones, because the coupling decision, not the API dialect, is what matters.
Identity is the piece that should reuse what exists rather than inventing a parallel governance model. Single sign-on through the enterprise identity provider — Entra ID, Okta, or the incumbent — means CMS editor roles map onto the access governance the organization already audits, so adopting a content layer does not create a new, ungoverned set of credentials beside the ERP's.
One practitioner caution spans all three vendors and is worth stating before the pattern choice. ERP read APIs can page their results, and some enforce documented throttles — SAP OData pages results, the Dynamics 365 finance and operations OData endpoint supports server-driven paging with a maximum page size of 10,000, and where an integration reads data held in Dataverse, the Dataverse Web API enforces service protection limits on the number of requests, combined execution time, and concurrent requests per user. For Oracle, confirm the paging and limit rules in the REST guide for the module in question. A sync job written as if a full catalog were one call can work in a staging tenant of a few hundred materials and fail in production at tens of thousands, and the failure can be a silent partial fetch rather than a clean error. The defensible job follows pagination cursors, respects the documented throttle, and records how many records it expected against how many it wrote — which is also the reconciliation signal the failure-handling section depends on.
Integration patterns — pick the right coupling
There is no single correct integration pattern; there is a correct coupling for each data type, and choosing it deliberately is the engineering work. Five patterns cover the common ERP-to-CMS connections, and the failure mode of the wrong choice is as important as the fit of the right one.
| Pattern | Coupling | Use it for | Cost of getting it wrong |
|---|---|---|---|
| Direct API at render | Tight | Low-traffic, freshness-critical reads only | Page latency and uptime track the ERP |
| Scheduled batch sync | Loose | Catalog and pricing that change daily | Staleness up to one sync interval |
| Event-driven (webhook / queue) | Loose | Inventory and order status near real time | The operational weight of a queue |
| Middleware / iPaaS | Mediated | Many systems orchestrated centrally | Another platform to license and run |
| Backend-for-Frontend (BFF) | Composed | One frontend-shaped API over ERP + CMS | A service your team builds and owns |
Direct API at render is the pattern to reach for last, not first: it is simple to write and couples page latency to ERP availability, which is acceptable only for genuinely low-traffic, freshness-critical reads and nowhere else. Scheduled batch sync is the workhorse default for catalog and pricing that change on a daily rhythm. Event-driven coupling through webhooks or a message queue earns its added complexity for inventory and order status, where minutes of staleness are visible to a customer. Middleware platforms — SAP Integration Suite, MuleSoft, Boomi, the Azure fabric — are pattern examples for the case where many systems must be orchestrated together, not a recommendation to buy one when a scheduled job would do. The Backend-for-Frontend is the composition layer that presents ERP and CMS to the frontend as one shape, and it is the right answer often enough that it belongs in the roadmap rather than as an afterthought.
Data sync, caching, and failure handling
The architectural promise of this design — the site stays up when the ERP does not — is only true if the cache is treated as a first-class component rather than an optimization. The SoR read model lives in the CMS database or an edge key-value store, and the render path reads it, so an ERP maintenance window or an outage is invisible to visitors. A page rendering last-known-good pricing while SAP is down is a correct system; a page erroring because it tried to call SAP live is a design mistake.
Staleness is a budget, not an accident, and it is set per data type rather than globally. Marketing copy can be hours stale with no consequence; a price can usually tolerate the sync interval; a stock figure on a low-inventory item may need event-driven freshness because showing "in stock" on a sold-out product is a customer-facing failure. Writing the staleness budget down per data type is what turns "how fresh does this need to be" from an argument into a specification.
Two more disciplines keep the cache honest. Sync jobs must be idempotent and paired with reconciliation, so a job that runs twice does not corrupt the read model and drift between ERP and cache is detected and repaired on a schedule rather than discovered by a customer. And degradation must be graceful: when freshness cannot be guaranteed, the right behavior is last-known-good data with an internal freshness signal, never a broken page — the site degrades in fidelity, not in availability.
A migration-free adoption roadmap
The roadmap exists to make the no-migration promise concrete, because stakeholders trust a sequenced plan more than a reassurance. The sequence is deliberately conservative.
Phase 1 keeps the ERP exactly as it is and stands up the headless CMS alongside it, sharing nothing yet. This phase alone can settle much of the political question, because it demonstrates the CMS can exist without the ERP being touched. Phase 2 builds a one-way read sync for the single highest-value dataset — usually catalog or pricing — through whichever of the five patterns fits its freshness needs, and nothing else. Phase 3 introduces a Backend-for-Frontend layer that composes ERP and CMS into the frontend-shaped API the new site consumes, so the frontend never learns the ERP exists. Phase 4 extends sync coverage and adds event-driven freshness only where a data type has earned it.
At no point in the four phases is the ERP replaced, reduced, or rearchitected — that absence is the entire point and the sentence to repeat to a nervous stakeholder. The same SoR-preservation discipline governs the front-office side in the CRM integration article; the difference is only the coupling direction, and reading the two together is the way to scope a full integration without proposing a migration anywhere.
What to settle before the integration project
- Write the one-sentence framing for stakeholders — "this is an integration, not an ERP migration" — and confirm it against the scope before design starts.
- List every ERP data type the site needs and assign each a coupling pattern and a staleness budget, rather than picking one pattern for everything.
- Confirm the SAP / Oracle / Dynamics surface the relevant release actually exposes against the vendor's own API catalog, not against an assumed version.
- Make the cache a required component: define the last-known-good behavior and the reconciliation job before the first sync ships.
- Keep the render path off the ERP by default — direct live calls only for a named, low-traffic, freshness-critical exception.
- Sequence the rollout as the four phases and verify the ERP is untouched at each one before proceeding.