Skip to main content
Technical Preview

Overview

A client-mode connector for a curated manufacturing and plant-maintenance slice of SAP S/4HANA Cloud OData APIs on the Business Accelerator Hub: BASE_ADDRESS is the tenant host root (https://{tenant}-api.s4hana.cloud.sap). Endpoints carry /sap/opu/odata/sap/.... Topics use erp/sap-s4hana-cloud/<object>/<verb>.
S/4HANA Cloud OData requires a real tenant and either a communication-user (Basic) or OAuth 2.0 client-credentials Bearer token. Mutating calls need an X-CSRF-Token (fetch with Fetch first). This template has not been verified against a live tenant.

Basic Syntax

Events

Auth

OAuth Bearer (client credentials access token):
Or Basic communication user on config (Hub secret):
CSRF on POST:
string
required
OAuth 2.0 access token from the S/4HANA Cloud / BTP token endpoint (client credentials). Prefer a Hub secret. Never commit the token.
string
required
Production plant code for Getproductionordersbyplant (ProductionPlant OData filter).
string
Production order key for Getproductionorder.
string
required
Value from the X-CSRF-Token response header after Fetchcsrf. Required on all POST events.
High-level setup (no secrets in the template):
  1. Create Communication Arrangements for the needed scenarios (e.g. production / confirmation, material document, maintenance SAP_COM_0397).
  2. Create a communication user or OAuth client; obtain Basic credentials or an access token.
  3. Set BASE_ADDRESS to https://{tenant}-api.s4hana.cloud.sap.
  4. Fetch CSRF, then call GET/POST events with placeholders filled.
GET production orders by plant smoke payload:
POST maintenance notification (connector body is {payload}; fetch CSRF first):

Try it

  1. Replace YOUR_TENANT in BASE_ADDRESS and add the connector on a lab broker.
  2. Publish token + plant JSON to erp/sap-s4hana-cloud/production-order/get.
  3. Subscribe to erp/sap-s4hana-cloud/production-order/get/response.
  4. For POSTs: call erp/sap-s4hana-cloud/csrf/fetch first, then publish with csrf_token and body fields.
Recorded factory probes without a tenant: Accelerator Hub overviews HTTP 200, Help Portal HTTP 200, sandbox OData unauthenticated HTTP 401, placeholder tenant host unreachable. Live tenant smoke is still required before status ready.
Last modified on October 21, 2026