SAP Knowledge Base Article - Public

2833338 - cannot use API API_PRODUCT_SRV with PATCH / PUT Requests to update multiple Entities Simultaneously

Symptom

  • The API API_PRODUCT_SRV can use a POST request to update multiple Entities but not for PATCH / PUT
  • DEEP Request with API_PRODUCT_SRV  throws an error when performing PUT or PATCH Operation.
  • 'sub levels' not appearing when using PATCH for API_PRODUCT_SRV but appears when using POST

Environment

  • SAP S/4HANA Cloud
  • Master Data

Cause

Deep create is only possible in POST requests.

Our current API offering in SAP S/4HANA Cloud doesn't support Deep Patch/Put requests. Deep Entity operation is only supported with POST operation.

The operations PATCH/PUT can be performed only on a specific entity at a time.

Resolution

To send multiple requests in a single request, the current recommendation is to use batch requests.

Sample input file OData_Batch.txt attached of what a Batch request would look like . Please amend for your own requirements .

See Also

For more information on OData BATCH request, please check https://www.odata.org/documentation/odata-version-2-0/batch-processing/

Product Master - Create, Read, Update, Delete

SAP API HUB  Product Master - Create, Read, Update, Delete

Keywords

Deep, Inline component is not defined or not allowed, SY/530, SY 530, S4_PC, put, patch, SAP_COM_0009 , A_Product , KBA , LO-MD-MM , Material Master , LO-MD-FIO-MM , Fiori UI for Product Master , Problem

Product

SAP S/4HANA Cloud all versions

Attachments

OData_Batch.txt