SAP BTP Cloud Connector, Integration Suite & ORD Metadata for Enterprise AI Ontologies
How to connect on-premise SAP S/4HANA and SAP ECC systems to AI agents using Principal Propagation, SAP Integration Suite MCP Gateway, Open Resource Discovery (ORD 1.16), and OData V2/V4 vocabularies.
- 01SAP Cloud Connector opens an outbound TLS reverse-invoke tunnel with zero inbound firewall ports; pair it with Principal Propagation (short-lived X.509 via STS or RFC SNC) so AI agents enforce per-user SAP PFCG authorizations rather than a shared service user.
- 02SAP Integration Suite MCP Server artifacts run exclusively on the SAP-managed Integration Cell runtime (not Edge Integration Cell) and support security and traffic policies without mediation steps.
- 03Open Resource Discovery (ORD 1.16), OpenAPI x-sap-* extensions, and OData Common.FieldControl (7 Mandatory, 1 ReadOnly, 0 Inapplicable) expose machine-readable ontology contracts directly from SAP metadata.
1. SAP BTP Connectivity, Cloud Connector & Principal Propagation Architecture
The most dangerous anti-pattern when connecting cloud AI agents to SAP S/4HANA Private Cloud or on-premise SAP ECC is routing every prompt through a single high-privilege technical RFC or OData user. In SAP BTP Connectivity, the production architecture pairs an on-premise SAP Cloud Connector reverse-invoke TLS 443 tunnel with end-to-end PrincipalPropagation.
Pairing a subaccount opens the encrypted tunnel (*.uc.platform.cloud.sap), yet zero traffic passes until explicit allowlists are configured. Virtual hosts conceal internal hostnames, HTTP mappings enforce case-sensitive path policies (Path Only vs. Path and All Sub-Paths), and RFC mappings restrict callable function modules by exact name or prefix.
- Principal Propagation Flow: The signed-in user’s JWT travels through the BTP Connectivity service to the Cloud Connector, whose local STS mints a short-lived X.509 client certificate (
SSL_CLIENT_CERTheader for HTTPS/WebSocket RFC, orRFC SNCfor classic RFC) so SAP evaluates nativePFCGauthorization objects. - Backend Trust Store Default: Cloud Connector’s
Backend Trust Storetrusts nothing out of the box—internal SAP Gateway and S/4HANA CA certificates must be imported explicitly. - Destination Proxy Types: BTP Destination service supports up to 1,000 destinations per subaccount across
Internet,OnPremise(routed byCloudConnectorLocationId), andPrivateLink.
2. SAP Integration Suite MCP Gateway vs. Edge Integration Cell Boundaries
SAP Integration Suite’s API Management capability introduces first-class, versioned MCP Server artifacts served by the MCP Gateway alongside the API Gateway, exposing Tools, Resources, and Prompts to AI agents. Architects designing hybrid landscapes must account for four hard runtime boundaries documented by SAP:
- Runtime Placement: MCP Server artifacts deploy exclusively on the SAP-managed
Integration Cellruntime; they are not supported on customer-managed KubernetesEdge Integration Cell(EIC) nodes. - Policy Scope Without Mediation: MCP Server artifacts accept
Authentication(mandatory, first, once),Authorization,Quota,Surge Protection, andIP Filterpolicies on the request flow, with zero mediation or payload-mapping steps. - RFC Backend Whitelist: Generating an MCP Server from an RFC destination (
IntegrationCell.Include = true) requires the Cloud Connector to allowRFC_FUNCTION_SEARCH,SWO_QUERY_API_METHODS,RFC_METADATA_GET,RFC_GET_STRUCTURE_DEFINITION,BAPI_TRANSACTION_COMMIT, andBAPI_TRANSACTION_ROLLBACK. - Credential Hygiene: Authenticate agents via Developer Hub credentials (
AuthGroup.API.ApplicationDeveloper) or external OIDC IdPs (SAP Cloud Identity Services, Microsoft Entra ID, Okta, Auth0); using Process Integration Runtime credentials is documented as an anti-pattern.
3. Compiling Open Resource Discovery (ORD 1.16), x-sap-* & OData Vocabularies into an Ontology
SAP publishes four Apache-2.0 metadata standards that feed an enterprise ontology compiler directly: Open Resource Discovery (ORD 1.16), OpenAPI x-sap-* extensions, AsyncAPI event catalogs, and SAP OData V2/V4 vocabularies. While SAP Business Accelerator Hub exposes the static reference catalog, Unified Customer Landscape (UCL) exposes the customer’s live tenant resources and custom extensions.
When compiling OData $metadata (EDMX) into agent tool schemas, never confuse UI visibility annotations with transactional rules: UI.CreateHidden and UI.UpdateHidden only hide Fiori buttons, whereas Common.FieldControl (7 Mandatory, 3 Optional, 1 ReadOnly, 0 Inapplicable) and Core.Computed govern actual API write validity—breaking them rejects the entire payload.
# Source 1: ORD ID -> sap.s4:apiResource:API_SALES_ORDER_SRV:v1
# Source 2: OpenAPI -> x-sap-odm-entity-name: SalesOrder, x-sap-dpp-is-potentially-personal: true
# Source 3: AsyncAPI -> sap.s4.beh.SalesOrder.Approved.v1 (subscribe = emitted by S/4HANA!)
entity: SalesOrder
canonical_id: sap.odm.SalesOrder
ord_resource: sap.s4:apiResource:API_SALES_ORDER_SRV:v1
write_constraints:
- field: SalesOrder
odata_annotation: Core.Computed
agent_rule: never_send_on_create
- field: PurchaseOrderByCustomer
odata_annotation: Common.FieldControl=7
agent_rule: mandatory_before_post
- field: SoldToParty
dpp_classification: sap:DataSubject
rbac_masking: enforce_principal_propagationIn SAP AsyncAPI 2.0 event catalogs, subscribe denotes events the SAP application emits, while publish denotes events it consumes—and under sap:core:v1, events are always consumed through SAP Event Mesh rather than direct point-to-point endpoints.
Glossary Concepts Referenced in This Guide
FOREIGN KEY constraints—common across mature ERP and manufacturing databases.Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[SAP BTP Cloud Connector, Integration Suite & ORD Metadata for Enterprise AI Ontologies — Ontoloji.org](https://ontoloji.org/en/guides/sap-btp-cloud-connector-odata-ord-enterprise-ai-ontology)