Skip to main content
Mount app-rest against the existing Bijection SAP gateway. The gateway operator supplies SAP JCo and, for CDC, the Bijection ABAP add-on and a complete seed. Bind restEndpoint to a reachable HTTPS ingress for the gateway. Seal an installation read token as bearer auth. Bind the receiver and the mount under the same data label.
  • SAP CDC. Bind /v1/streams/<name>/<digest>/<epoch>/changes and initialize with { profile: { mode: "provider", provider: "sap.cdc", limit: 128 } }. Use the captured stream digest and exact epoch. The app requests from position zero, validates contiguous sequence positions and checkpoints through for the next page or poll. The gateway supplies exact composite keys and full images. Explicit deletes remove rows and repeated changes for the same key in one page land the last change. A page admits up to 128 changes and 36 KiB. A larger gateway page fails without moving the cursor. This mode publishes each page independently. An expired or replaced stream needs operator review and a fresh mount for a new epoch.
  • Captured functions. Bind /v1/functions/<name>/<digest>/records and initialize with { profile: { mode: "provider", provider: "sap.functions", selection: "<digest>", limit: 10 } }. Use the same 64-character digest for path and selection. In the gateway path, write a namespace slash as ~. Each poll publishes metadata by the gateway’s function key from one answer of at most 100 records and 36 KiB. Prior observations survive omissions. BAPI invocation is outside this mode.
SAP gateway installation and captured interface

S/4HANA OData and CDS views

Use app-rest and declaredResourceEndpoint(selection, auth, data). Bind the receiver as receivers.resource, using a sealed read credential for the SAP communication arrangement. Bind the mount and its receivers under the same protected data label. For a CDS view, activate its OData exposure and use the published collection path.
Pass the profile to source.initialize. Declare the complete one- to eight-field immutable key and a typed projection of direct fields. Record keys encode the ordered key tuple. Each answer is limited to the installed 1–100 rows and 36 KiB. For v4, use the published OData v4 path such as /sap/opu/odata4/sap/zorders/srvd/sap/zorders/0001/Orders.
  • sap.s4hana.odata-v2.entities and sap.s4hana.odata-v4.entities sweep entity sets ordered by key. Each next position must stay within the installed collection. Missing rows remain.
  • sap.s4hana.odata-v2.delta requires Gateway JSON d.__delta with a $deltatoken or !deltatoken on the same collection. The service must return full after-images. Gateway v2 JSON does not carry tombstones, so missing and deleted provider rows remain published.
  • sap.s4hana.odata-v4.delta requires a terminal same-collection @odata.deltaLink with $deltatoken and full after-images. Explicit tombstones must carry all key fields and reason deleted. Other delta shapes fail the page. Omission leaves existing rows in place.
Tracking modes commit each page with its next position. A terminal delta token seeds the next poll. An HTTP 410 on a retained cursor stops automatic advancement until an operator resets the source. A reset rereads the collection and retains previously landed rows that the provider omits. SAP Gateway delta query support

Write S/4HANA business partners and sales orders

Use providerWriter with the communication arrangement’s HTTPS origin and a protected label. Bind the REST mount and its writer under the same label. Enable the corresponding A2X service for the writer. Declare multiSecret with three sealed HTTP headers. Set Authorization with prefix Basic or Bearer . Seal the SAP session’s X-CSRF-Token and matching Cookie header without prefixes. The credential operator obtains the pair from the same SAP origin and service using X-CSRF-Token: Fetch and rotates it before expiry. The writer sends the sealed values together. Expired or mismatched session credentials can produce an SAP refusal. Submit one JSON object up to 24 KiB. For updates, place the target ID on the command and omit the provider key from the JSON body. An optional ifMatch property carries the quoted ETag and is sent as a header. Bijection retains only status and record ID as write evidence. These modes dispatch each exact command once and have no read cursor. SAP owns deep insert support and the business rules for each service. Business Partner A2X · Sales Order operations · SAP CSRF session handling