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:
- 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)
- GET Call to get the object ID of the item schedule line: https://<Tenant URL>/sap/byd/odata/cust/v1/YYY/ItemCollection('XXX')/ItemScheduleLine
- PATCH Call to update the quantity: https://<Tenant URL>/sap/byd/odata/cust/v1/YYY/ItemScheduleLineCollection('XXX')
- 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