SAP S/4HANA AI Ontology & Governed MCP Connector
SAP S/4HANA stores tens of thousands of physical tables alongside custom Z-fields, split company codes and Data Control Language policies. Generic SQL or OData wrappers either expose unrestricted rows through a technical service user or choke an LLM context window with cryptic four- and six-letter field names. Naditu maps your released CDS views and Z-extensions into governed business objects while enforcing caller authorizations before any query runs.
Released CDS Views · OData V4 · HANA Read Replica
Human-approved via RAP OData V4 & BAPI
Canonical ontology mapping
Business objects & field-level governance.
Instead of exposing raw physical tables to an LLM, Naditu assembles governed domain objects and enforces caller role policies at query time.
Sales Order & Delivery
Physical tables / entitiesI_SalesOrder · I_SalesOrderItem · VBAK · LIKPGovernance & masking ruleNetPriceAmount & margin: Sales Ops and Finance onlyPurchase Order & Supplier
Physical tables / entitiesI_PurchaseOrderAPI01 · EKKO · EKPO · I_BusinessPartnerGovernance & masking ruleSupplier bank & contract rebate: Purchasing and Finance onlyUniversal Journal Entry
Physical tables / entitiesI_JournalEntryItem · ACDOCA · BSEGGovernance & masking ruleCompany-code & cost-center row filter from caller SSO groupProduction Order & Material
Physical tables / entitiesI_ManufacturingOrder · AFKO · MARA · MARCGovernance & masking ruleStandardValuationPrice masked outside Plant Controlling
| Business object | Physical tables / entities | Governance & masking rule |
|---|---|---|
| Sales Order & Delivery | I_SalesOrder · I_SalesOrderItem · VBAK · LIKP | NetPriceAmount & margin: Sales Ops and Finance only |
| Purchase Order & Supplier | I_PurchaseOrderAPI01 · EKKO · EKPO · I_BusinessPartner | Supplier bank & contract rebate: Purchasing and Finance only |
| Universal Journal Entry | I_JournalEntryItem · ACDOCA · BSEG | Company-code & cost-center row filter from caller SSO group |
| Production Order & Material | I_ManufacturingOrder · AFKO · MARA · MARC | StandardValuationPrice masked outside Plant Controlling |
Why raw SQL & generic MCP fail
Three physical schema traps solved in the layer.
Every operational system carries implicit join keys, status discriminators and multi-company rules that ungrounded Text-to-SQL guesses wrong.
- 01
Service-account DCL bypass vs. per-caller company code scope
Connecting an MCP tool with a single SAP communication user strips per-employee company code (BUKRS) and plant (WERKS) boundaries. Naditu intersects caller IdP groups with company-code and plant row policies on every call.
- 02
ACDOCA ledger, record-type and reversal double counting
Unfiltered SQL over ACDOCA mixes leading and non-leading ledgers (RLDNR = 0L vs local GAAP) and reversed documents. The ontology pins ledger, fiscal year variant and reversal exclusion rules once.
- 03
Custom ZZ extensions and domain fixed-value codes
Customer append structures and single-character delivery/billing status codes (such as A, B, C) are documented with your functional leads so models never guess field semantics.
Common engineering questions.
Does Naditu require SAP Business Data Cloud or Joule licenses to connect S/4HANA?
No. Naditu connects directly to your existing S/4HANA Private Cloud or On-Premise instance over released OData V4 services, RFC/BAPI or a read-only HANA replica inside your network.
How are writes such as purchase requisitions or order blocks handled in S/4HANA?
Naditu never executes direct SQL inserts or updates against SAP tables. Mutations are drafted as typed payloads and submitted through official RAP OData V4 APIs or BAPIs only after a named approver confirms.
Can we join SAP S/4HANA orders with Salesforce, MES or regional subsidiary ERPs?
Yes. Naditu resolves cross-system keys such as Business Partner numbers, SKU codes and work order references at query time without copying S/4HANA tables into an external lakehouse.
Engineering deep dives
Related architecture notes from the blog.
SAP S/4HANA OData V4, CDS views, and Joule for AI teams
How SAP S/4HANA CDS views, DCL roles, ORD, Business Data Cloud, and Joule work, and how enterprises bridge on-prem SAP ECC 6.0, Z-tables, and multi-ERP AI.
Does SAP ship an S/4HANA MCP server for business data?
What SAP ships for MCP today: six developer packages, the BTP Integration Suite MCP gateway, Joule Studio generators, and what ERP teams still build.