SAP S/4HANA Batch Write
Overview
The SAP S/4HANA Batch Write Snap creates, updates, or deletes multiple data objects from SAP S/4HANA applications.

- This is a Write-type Snap.
Works in Ultra Tasks when the Batch size is set to 1.
Prerequisites
- A valid account with the required permissions.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap has exactly one document input view. Expected input: A document with data that indicates the entities to be filtered and retrieved from SAP S/4HANA On-Premise instance. |
|
| Output |
This Snap has at most one document output view. Expected output: A document containing the entity data retrieved from a SAP S/4HANA On-Premise instance. |
|
| Learn more about Error handling. | ||
Snap settings
| Field/Field set | Description |
|---|---|
Label
String |
Required. Specify a name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.
Default value: SAP S/4HANA Batch Write Example: SAP S/4HANA Batch Write |
API object
String |
Required. Select the API that you want to access in SAP S/4HANA On-Premise instance. This drop-down list contains APIs available for the S/4HANA account configured in the Snap, each with a short description.
Default value: N/A Example: ZCRM_BUPA_ODATA_0001 (Odata Services for Business Partner) |
Entity
String/Expression/ Suggestion |
Required. Select a business object (the Entity or Endpoint) for the API Object chosen above.
Default value: N/A Example: AccountCollection |
Subentity
String/Expression/ Suggestion |
Specify or select a subentity corresponding to the entity chosen above.
Default value: N/A Example: MainContact |
Write Type
Dropdown list |
Required. Select the type of write operation you want to perform.
Default value: CREATE Example: CREATE |
Input navigation level
Dropdown list |
Select the depth of navigation for your input schema.
Default value: 0 Example: 1 |
Batch size
Integer |
Select the number of records to be processed in each request.
Default value: 200 Example: 100 |
Disable datatype conversion
Checkbox |
Select the checkbox to disable the datatype conversion for values of key parameters and filters.
Default value: Deselected Example: Selected |
| Connection details | Use this field set to specify the connectivity parameters: timeout, retry count, and retry interval. |
TimeOut
Integer |
Required. Enter, in seconds, the duration for which the Snap must try to establish connection with SAP S/4HANA On-Premise instance. If the connection cannot be established within this duration, the Snap times out, writes the event to the log, and waits until the specified RetryInterval before attempting to reconnect.
Default value: 300 Example: 120 |
Maximum request attempts
Integer |
Required. Specify an integer value to set the maximum number of reconnection attempts that the Snap must perform, in case of connection failure or timeout.
Default value: 0 Example: 5 |
RetryInterval
Integer |
Required. Enter, in seconds, the duration for which the Snap must wait between two reconnection attempts, until the number of retries is reached.
Default value: 0 Example: 10 |
Snap execution
Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
|
Additional information
The following contents provide some helpful information to assist you while using the SAP S/4HANA Batch Write Snap.
Snap General Behavior
The SAP S/4HANA Batch Write Snap supports the following:
- POST/PUT/DELETE operation to create/update/delete data in the SAP S/4HANA On-Premise server.
- Customized HTTP Header. For more information, see Using Customized Headers (in SAP S/4HANA Read Snap).
- Display of only the create/update/delete-compatible input parameter set from the upstream input Snap.
- Dynamic loading of API metadata with a Parent-child dependency structure. This means that you can
- Select an API object from the API object field to view only entities that are related to the API object and support POST queries (create operations).
- And then, select an entity to view and specify values for only create-compatible parameters related to this entity in the Input Schema.
Sending Batch Request
The SAP S/4HANA supports the OData 2.0 protocol. SAP S/4HANA APIs that support OData 2.0 can send batch requests with specific requirements and for specific operations. See the documentation at OData 2.0 batch request, for more details.
Batch Input Schema
The Input Schema assists you to define the input data for the Batch requests. For SAP S/4HANA Batch Write Snap, the KeyParameter and CustomizedHeader can be defined using the Input Schema. The KeyParameter path appears in an upstream Snap for all Write Type options except CREATE.

Schema settings
| Field/Field set | Description |
|---|---|
| CustomizedHeader | Use this property schema to add customized HTTP request headers for implementing specific HTTP requests other than the ones listed under Using Customized Headers section in SAP S/4HANA Read Snap. |
name
String |
The field name of the customized HTTP request header.
Default value: N/A Example: If-Match |
value
String |
The field value of the customized HTTP request header.
Default value: N/A Example: W/"'82F636DC08F14D22260CE67E505C231D0D2ACD95'" |
KeyParameter
Object |
This property schema enables you to specify the key parameters for a specific entity. Providing values for all key parameters represented in the schema list enables SAP S/4HANA to identify a unique record.
Note: Key parameters are NOT the same as filters which can return multiple records. To use a filter like normal select, use the parameters at the Filter records section instead. Use key parameters only to retrieve specific records. Provide values to all keys found in the drop-down list.
Default value: N/A Example: N/A |
Payload
Object |
Specify the input data parameters for the selected entities.
Default value: N/A Example: N/A |
Troubleshooting
| Error | Cause | Resolution |
|---|---|---|
| API object is not existing. | Allowed API object format is <API ID>(Description). | Locate and select an API object from the drop-down list. |
| Entity is not existing. | The entered Entity is not found for the selected API object in the server. | Locate and select the Entity from the drop-down list. |
| The input payload is not found. | The input payload is not found. | Fetch an input payload via Input Schema or input with the root key node Payload. |
| The input payload should be a JSON object. | The input payload is not passed as a JSON object. | Ensure that the input payload coming from the upstream Snap is a JSON object. |