This Pipeline example demonstrates how to use a SAP S/4HANA Read Custom Query Snap to define a custom query for retrieving sales order records from the SAP S/4HANA On-Premise instance. The Snap queries the A_SalesOrder entity through the API object ZAPI_SALES_ORDER_SRV_0001 (Remote API for SD Sales Order).
Download this Pipeline
-
The following settings are defined for the SAP S/4HANA Read Custom Query Snap to retrieve sales order data from the SAP S/4HANA On-Premise instance it accesses:
- API object: ZAPI_SALES_ORDER_SRV_0001 (Remote API for SD Sales Order)
- Entity: A_SalesOrder
- Subentity: to_PricingElement
- Customized query:
$select=SalesOrder,SalesOrderType,to_Item/SalesOrder,to_Item/SalesOrderItem&$expand=to_Item&$top=10&$filter=SalesOrderType eq 'OR'
-
A successful validation or execution of the Snap gives the following output preview.
-
A JSON
Formatter Snap is connected to the SAP S/4HANA Read Custom Query Snap to read and format its output data into standard JSON format.
-
A
File Writer
Snap is connected to the JSON
Formatter 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:
To reuse the example pipelines:
- Download and import the SLP file into your Environment.
- Configure Snap accounts.
- Provide Pipeline parameters, if any.