1. SAP Clean Core Principles & Side-by-Side Extensibility
Under RISE with SAP and modern SAP enterprise architecture guidelines, maintaining a "clean core" is compulsory. Custom modifications to standard SAP transparent tables (such as MARA, VBAK, or BKPF) or classic ABAP user exits complicate upgrades to SAP S/4HANA cloud releases. Building a side-by-side AI layer on SAP Business Technology Platform (BTP) preserves clean-core compliance by housing machine learning workloads, vector indexes, and document parsing microservices in decoupled runtime containers.
2. High-Throughput Data Extraction (CDS Views & OData v4)
Extracting historical transactions for AI model training or real-time feature stores must not overload SAP application servers. The architecture utilizes Core Data Services (CDS) analytical views exposed as OData v4 endpoints SAP Help Portal. CDS views execute data aggregations directly at the SAP HANA database layer, pushing calculated results over lightweight JSON/OData connections to the AI layer feature store.
3. Event-Driven Architecture with SAP Event Mesh
Real-time AI inference relies on event-driven publishing rather than polling. SAP Event Mesh streams business events—such as invoice creation, goods receipt posting, or purchase order approval—to external cloud microservices. The AI layer consumes events asynchronously, executes prediction pipelines, and updates decision queues without blocking SAP user transactions.
4. Transactional Writeback Contracts (BAPIs & OData)
Posting AI predictions or automated journal entries back to SAP S/4HANA must strictly follow SAP transactional control guidelines. Writebacks use standard BAPIs (such as BAPI_ACC_DOCUMENT_POST) or SAP-published OData write APIs. Every writeback operation includes a machine-readable reference ID pointing to BTP audit logs.
5. Security, Transport Management & BTP Governance
BTP AI microservices authenticate with SAP S/4HANA via OAuth 2.0 SAML Bearer assertions or principal propagation, ensuring user authorization checks hold. Transport management follows SAP BTP Cloud Transport Management guidelines, separating development, testing, and production tenancies in compliance with ISO/IEC 42001 and NIST AI RMF.