SAP S/4HANA Read
Overview
The SAP S/4HANA Read Snap reads and retrieves data objects from the SAP S/4HANA On-Premise instance.

- This is a Read-type Snap.
Works in Ultra Tasks
Prerequisites
- A valid SAP S/4HANA account that supports SAP S/4HANA On-Premise instance, with the appropriate access permissions. See Configuring SAP S/4HANA Accounts.
Limitations and known issues
- SAP S/4HANA On-Premise instance does not support server-side pagination. As a result, the
$skiptokenis not supported. - The Snap does not support OData navigation link.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap has at most 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 exactly 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 Read Example: |
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: |
Entity
String/Expression/ Suggestion |
Required. Select a business object (the Entity or Endpoint) for the API Object chosen above.
Default value: N/A Example: |
Subentity
String/Expression/ Suggestion |
Specify or select a subentity corresponding to the entity chosen above.
Default value: N/A Example: |
| Customized header | Use this field set to enable the Snap to perform a specific action. |
Field name
String |
The field name of the customized HTTP request header.
Default value: N/A Example: |
Field value
String |
The field value for the above field in the customized HTTP request header.
Default value: N/A Example: |
| Key parameter | This field set enables you to specify the key parameters for a specific entity. Providing values for all key parameters in the drop-down 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.
|
Field name
String |
Specify the reference parameter in this field.
Default value: N/A Example: |
Field value
String |
Specify the value for the reference parameter in this field.
Default value: N/A Example: |
| Filter records | This field set enables you to define how the response result is filtered based on the specified parameters (filter criteria). Only one filter can be specified in each row. Multiple filters, if defined in this table, will be applied for generating the final output, in the order they are defined. |
Field name
String |
Specify the system parameter ($filter field) to be used for filtering the records in the output.
Default value: N/A Example: |
Operation
String |
Specify the comparison operator for the $filter field specified above from this drop-down list. Available options are:
Default value: Equals Example: |
Field value
String |
Specify the value with which the above $filter field must be compared. The data type (String, Integer, Boolean, or any other) depends on the $filter field you specified for the filter criterion.
Default value: N/A Example: |
Condition
String |
Select a value from this drop-down list to set the correlation between this filter criterion (row) and the next one (row), if being defined at all, to apply the filters for generating the final output. Available options are:
Default value: Or Example: |
| Output field selection | This field set enables you to select the fields to be included in the output.
To return all available fields in the output, do not specify any output field. |
Element
String/Expression |
Specify the fields from the result dataset to be populated in the output.
Default value: N/A Example: |
| Order By | This field set enables you to define the sort order for the records in the output. Only one column name can be specified in each row for the sort order. Multiple Order by criteria will be applied in the same sequence as they are defined. |
Element
String |
Specify the field in the expected output by which the records in the output must be ordered.
Default value: N/A Example: |
Order by type
String |
Depending on the field selected above, define whether the rows must be sorted in the ascending order or descending order. Available options are:
Default value: Descending Example: |
| Output fields advanced options | Use this section of Snap Settings to customize the output set: the number of output entries and the index of the starting entry. |
Output entry limit
Integer |
Specify the maximum number of entries that SAP S/4HANA On-Premise instance must return in the output.
Default value: N/A Example: |
Output entry offset
Integer |
Specify the record index starting from which SAP S/4HANA On-Premise instance must return records in the output. Use this property along with the Output entry limit to retrieve a specific set of entries in the output.
Default value: N/A Example: |
Raw response
Checkbox |
Select the checkbox to write the raw response to the output as a single document. If this checkbox is deselected, the results are written as individual documents.
Default value: Deselected |
Has next
String/Expression |
Enter the expression that must be evaluated to true or false indicating if the Snap should fetch the next page or not.
Default value: N/A Example: |
Next URL
String/Expression |
Enter an expression that must be evaluated to a URL that the Snap should use to proceed to the next page.
Default value: N/A Example: |
Is an active entity
Dropdown list |
Choose the value for this field. Available options are:
Note: There are many SAP S/4HANA entities that require the field IsActiveEntity to be set as true or false and added to the HTTP request. If this field is not added for these entities, an error 'Draft 2.0 object <SERVICE~ENTITY> requires selection condition on IsActiveEntity' will be returned. If 'true' is selected, the IsActiveEntity will be set as true, vice versa. In order to refer to the entities which do not need this field, please select 'not available'.
Default value: not available Example: |
Disable datatype conversion
Checkbox |
Select the checkbox to disable the datatype conversion for values of key parameters and filters.
Default value: Deselected |
Count
Checkbox |
Select this checkbox to return the total number of records retrieved in the API response.
Default value: Deselected |
Allow empty result
Checkbox |
Select this checkbox to define whether output views can show empty result. If this checkbox is not selected, an error will be thrown when the output has no records.
Default value: 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: |
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: 3 Example: |
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: 1 Example: |
Snap execution
Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
|
Snap General Behavior
The SAP S/4HANA Read Snap supports the following:
- GET operation to read data from the SAP S/4HANA server.
- OData querying operations:
$filter(Filter records),$select(Output field selection),$orderby(Order by),$top(Output entry limit), and$skip(Output entry offset). - OData operation
$count(Count check box). - Connection-failed-retry mechanism.
- Client-side pagination through
$top(Output entry limit) and$skip(Output entry offset) mechanisms. - Customized HTTP Headers.
- 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 GET queries (read operations).
- And then, select an entity to view and specify values for only read-compatible parameters related to this entity in Key parameter, Filter records, Output field selection, and Order by fields.
Pagination
Client-side pagination is supported through the use of the $top (Output entry limit), and $skip (Output entry offset) OData operations.
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Output entry limit: 100 |
|
|
| Output entry offset: 100 |
|
|
| Output entry offset: 100, and Output entry limit: 100 |
|
Using Customized Headers
SAP S/4HANA On-Premise instance contains a large number of API objects and entities. It also allows you to create and use customized API objects and entities as needed.
Some entities may require specific/customized HTTP headers like If-Match, Etag.
SAP S/4HANA Snap Pack supports definition and usage of such customized HTTP headers.
This Snap Pack currently contains the following common HTTP headers pre-defined and ready to use. You can however add any custom or specific HTTP headers to fulfill your requirement.
Content-typeCache-ControlAuthorizationAcceptX-CSRF-TokenCookie
The HTTP headers listed above are internally handled by the Snap and need NOT be defined again in Customized header section.

Accessing Related Entities from Snap Outputs for an Entity
Records in SAP S/4HANA Read Snap output may contain navigation properties, typically uri fields, pertaining to some entities related to the entity specified in Snap Settings.
For example, the SAP S/4HANA Read Snap output for the ZCRM_BUPA_OData_0001 (OData Services for Business Partner) API object and the AccountCollection entity contains navigation properties (of entities) like Contacts, Addresses, Logo, Attachments.
The navigation properties can be used to access specific details of these related entities.
In the API response, the navigation property values are displayed as URLs.
You can use one of the following methods to retrieve the details of each related entity returned in the output:
- Pass the value (URL) from the Snap output as input to any of the three SAP S/4HANA Read Snaps to navigate to or access details of these related entities.
- Parse the value (URL) from the Snap output and use it as input to Service URL field of a REST Get Snap.
Both of these methods return the properties of the corresponding related entity.
While querying for AccountCollection entity in the API object ZCRM_BUPA_OData_0001 (OData Services for Business Partner), you can navigate to the Contacts property by connecting any one of the three Read Snaps from this Snap Pack in the downstream to call the ContactCollection entity in the API object ZCRM_BUPA_OData_0001 (OData Services for Business Partner) and filter with a specific accountId.
If using the SAP S/4HANA Read Custom Query Snap in the downstream, enhance the customized query by adding $expand=Contacts,Addresses to display the contents of these two properties in the API response of the entity AccountCollection.
Troubleshooting
| Field/Field set | Type | Description |
|---|---|---|
| You have an empty value in the Output field selection table. | The Output field selection table has an empty field. | Provide a valid entry for the selected output field. |
| You have an empty value in the Order by table. | The Order by table has an empty field. | Enter a valid value to define sort order. |
| You have an empty value in the Field name field for the Key parameter. | The Field name field must not be empty for the Key parameter. | Enter a valid Field name for the Key parameter. |
| You have an empty field in the Field name/value field for the Customized header. | The Field name/value field must not be empty for the Customized header. | Enter a valid Field name/value for the Customized header. |
| Empty result found. | There is no data coming back from the API call. Possible reasons:
|
Select the Allow empty result check box. |
| API object does not exist. | Allowed API object format is <API ID>(Description). | Locate and select an API Object from the drop-down list. |
| Entity does not exist. | The entered Entity is not found in the server. | Locate and select the Entity from the drop-down list. |