This Pipeline example demonstrates using a SAP S/4HANA Batch Read Snap to query and retrieve multiple Account and Contact records from the SAP S/4HANA On-Premise instance and write them into a JSON file. The Snap queries the AccountCollection and ContactCollection entities through the API object ZCRM_BUPA_ODATA_0001 (Odata Services for Business Partner).
Download this Pipeline
-
The Mapper Snap is configured to map the schema from its input JSON (coming from the upstream JSON
Generator Snap) with the schema propagated backward by the SAP S/4HANA Batch Read Snap. It also outputs the Target Schema as the Input Schema for the SAP S/4HANA Batch Read Snap.
-
The following settings are defined for the SAP S/4HANA Batch Read Snap to retrieve Account and Contact data from the SAP S/4HANA On-Premise instance it accesses. The Snap is configured to send three HTTP API requests (one on AccountCollection and two on ContactCollection) in a single call to the SAP S/4HANA server:
- API object: ZCRM_BUPA_ODATA_0001 (Odata Services for Business Partner)
- Entities: AccountCollection and ContactCollection
-
A successful validation or execution of the Snap gives the following output preview. The binary output view:
The JSON Document output view:
-
A
File Writer
Snap is connected to the SAP S/4HANA Batch Read Snap to save the JSON-formatted data into a file.
-
To view the output JSON file, SSH to the target directory and open the newly created JSON file. The following image shows a preview of the output JSON file containing the batch response data:
To reuse the example pipelines:
- Download and import the SLP file into your Environment.
- Configure Snap accounts.
- Provide Pipeline parameters, if any.