SAP Knowledge Base Article - Public

2859300 - How to Update the Quantity of a Sales Order with PATCH Operation in Postman

Symptom

You don't know how to update the quantity of a sales order with PATCH operation in Postman, even though the sales order is in a consistent state.

Environment

SAP Business ByDesign

Resolution

The sequence of steps to update the item schedule line in postman is as follows:

  1. GET Call to get objects ID of the item: https://<Tenant URL>/sap/byd/odata/cust/v1/YYY/SalesOrderCollection('XXX')/Item (where YYY is the name of the Custom OData Service and XXX is the Object ID)
  2. GET Call to get the object ID of the item schedule line: https://<Tenant URL>/sap/byd/odata/cust/v1/YYY/ItemCollection('XXX')/ItemScheduleLine
  3. PATCH Call to update the quantity: https://<Tenant URL>/sap/byd/odata/cust/v1/YYY/ItemScheduleLineCollection('XXX')
  4. Payload in the PATCH Call should include the ObjectID, quantity, unitCode. 

Keywords

Custom OData Service, update operation, 204 error, 204 no content, , KBA , AP-SLO , Sales Order Processing , AP-RC-ODF-BYD , OData Framework and Console (ByD) , How To

Product

SAP Business ByDesign all versions