Symptom
When changing the quantity of an alternative component via planned order API, error message PP_ODATA_API_PLDORD/020 occurs in response.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a planned order with an alternative component.
- Call Planned Order(OData V2) API: PATCH <host>/sap/opu/odata/sap/API_PLANNED_ORDERS/A_PlannedOrderComponent(<Reservation>,<ReservationItem>) with payload {"GoodsMovementEntryQty": "*", "EntryUnit": "*" } to update this alternative component.
Or, call Planned Order(OData V4) API:PATCH <host>/sap/opu/odata4/sap/api_plannedorder/srvd_a2x/sap/plannedorder/0001/PlannedOrderComponent(<PlannedOrder>,<Reservation>,<ReservationItem>). - Observe error message PP_ODATA_API_PLDORD/020 occurs in response.
Cause
This is system standard design.
Updating alternative materials in planned orders is not supported by the planned order APIs, which leads to error message PP_ODATA_API_PLDORD/020.
Resolution
Manually change the quantity of an alternative component in Change Planned Order app.
If it's needed to update alternative materials in planned order by API, raise a feature request.
See Also
- Help Portal :Change Component -Planned Order(OData V2).
- Help Portal :Change Component -Planned Order(OData V4).
Keywords
planned order, alternative material, API_PLANNED_ORDERS, API_PlannedOrder, OData V2, OData V4, GoodsMovementEntryQty, PP_ODATA_API_PLDORD/020. , KBA , PP-SFC-EXE-2CL , Order Execution (Public Cloud) , Problem
SAP Knowledge Base Article - Public