Retrieving customer material data from SAP S/4HANA Cloud

The example assumes that you have configured and authorized a valid SAP S/4HANA Cloud Account (see Configuring SAP S/4HANA Cloud Accounts). The following SAP S/4HANA Cloud Read Snap and Pipeline shows how you can query and retrieve records from SAP S/4HANA Cloud. In this example, the Read Snap queries the customer material data using the API object API_CUSTOMER_MATERIAL_SRV_0001 (Remote API for Customer Material) and the Entity A_CustomerMaterial.



Download this Pipeline
  1. Configure the SAP S/4HANA Cloud Read Snap to query the customer material data from the SAP S/4HANA Cloud instance.

    On validation, the Snap displays the customer material records retrieved from the SAP S/4HANA Cloud instance.

    Cloud Read Snap configuration Cloud Read Snap output

    Cloud Read Snap configuration


    Cloud Read Snap output

  2. Configure the JSON Formatter Snap to format the output data of the upstream Snap and the File Writer Snap to write it to a new file.

    On running the pipeline, the Snap writes the JSON-formatted data to the specified file. To view the output JSON file, you must SSH to the target directory and open the newly-created file.

    File Writer Snap configuration File Writer Snap output

    File Writer Snap configuration


    File Writer Snap output

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.