Retrieve multiple Account and Contact records from SAP S/4HANA server - Mapper Snap

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).

Note: The example assumes that you have configured and authorized a valid SAP S/4HANA Account (see Configuring SAP S/4HANA Accounts).


Download this Pipeline
  1. 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.


  2. 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


  3. A successful validation or execution of the Snap gives the following output preview. The binary output view:


    The JSON Document output view:



  4. A File Writer Snap is connected to the SAP S/4HANA Batch Read Snap to save the JSON-formatted data into a file.


  5. 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:
  1. Download and import the SLP file into your Environment.
  2. Configure Snap accounts.
  3. Provide Pipeline parameters, if any.