Overview
A client-mode connector for a curated manufacturing and plant-maintenance slice of SAP S/4HANA on-premise / ECC OData APIs exposed through SAP Gateway:BASE_ADDRESS is the Gateway host root (https://{host}:{port}). Endpoints carry /sap/opu/odata/sap/.... Topics use erp/sap-s4hana-onprem/<object>/<verb>.
Service naming: Hub/SDK use
API_WORK_CENTERS (not API_WORK_CENTER_SRV) and API_MAINTENANCEORDER (not API_MAINTENANCEORDER_2_SRV). Activate services in /IWFND/MAINT_SERVICE and confirm entity sets with $metadata on your host. Older ECC may expose classic PP/PM Gateway names — adjust after metadata check. Mutating OData calls need X-CSRF-Token. This template has not been verified against a live Gateway host.Basic Syntax
Events
Auth
OAuth / SAML Bearer access token:string
OAuth 2.0 / SAML bearer access token for Gateway. Prefer a Hub secret. Never commit the token. Omit when using Basic on
REST_API_CONFIG.string
required
Plant code for Getproductionordersbyplant, Getworkcenters, and Getpmorders filters.
string
Production order key for Getproductionorder.
string
required
Value from the
X-CSRF-Token response header after Fetchcsrf. Required on all POST events.- Activate the OData services in
/IWFND/MAINT_SERVICE(and confirm with Gateway Client/IWFND/GW_CLIENT). - Create a Gateway user (Basic), OAuth/SAML bearer client, or X.509 client cert.
- Set
BASE_ADDRESStohttps://{host}:{port}. - Fetch CSRF, then call GET/POST events with placeholders filled.
plant).
POST maintenance notification (connector body is {payload}; fetch CSRF first):
Try it
- Replace
YOUR_HOST/YOUR_PORTinBASE_ADDRESSand add the connector on a lab broker. - Publish token + plant JSON to
erp/sap-s4hana-onprem/production-order/get(and optionallywork-center/get/pm-order/get). - Subscribe to the matching
/responsetopics. - For POSTs: call
erp/sap-s4hana-onprem/csrf/fetchfirst, then publish withcsrf_tokenand body fields.
Recorded factory probes without a Gateway host: Accelerator Hub product/overview pages HTTP 200, SAP Gateway Help Portal HTTP 200, placeholder host unreachable. Live Gateway smoke is still required before status ready.

