Symptom
- The API_WAREHOUSE_ORDER_TASK_2 returns a task where TargetQuantityInAltvUnit is displayed with 4 decimals (for example, 1.3125).
- When attempting to confirm the task, the system raises: “Invalid format for quantity fields; maximum of three decimal places (/SCWM/ODATA_API074)"
- The system does not allow confirmation of tasks when quantities contain 4 decimals.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use API_WAREHOUSE_ORDER_TASK_2 to confirm a product warehouse task where TargetQuantityInAltvUnit has 4 decimal places (for example, 1.3125).
- Send the confirmation request (ConfirmWarehouseTaskProduct) with a quantity having 4 decimals.
- Observe the error message “Virheellinen määräkenttien muoto. Enintään kolme desimaalia” (/SCWM/ODATA_API/074).
Cause
Known limitation: the confirmation endpoint validates quantity fields with a maximum of three decimal places; values with more than three decimals are rejected.
Resolution
Adjust the payload so all quantity fields sent to ConfirmWarehouseTaskProduct have at most three decimal places:
- Round or truncate ActualQuantityInAltvUnit to three decimals before sending.
- If used, also ensure DifferenceQuantityInAltvUnit has at most three decimals.
For partial confirmations where rounding creates a remaining difference, populate DifferenceQuantityInAltvUnit with the discrepancy and ensure difference handling is configured in the system.
As the specific functionality you are looking for (handling higher decimal precision without adjustment) is not currently supported, I recommend submitting a feature request to SAP.
You can do this following the guideline:
2963059 – How to Submit Feature Requests for SAP S/4HANA Cloud Product
See Also
- Refer to: Confirm Product Warehouse Tasks | Help Portal
- Refer to: 2963059 – How to Submit Feature Requests for SAP S/4HANA Cloud Product
- Refer to: 3606803 – How to Submit Product Relevant Feedback for SAP S/4HANA Cloud Public Edition
Keywords
API_WAREHOUSE_ORDER_TASK_2, warehouse task confirmation, TargetQuantityInAltvUnit, ActualQuantityInAltvUnit, DifferenceQuantityInAltvUnit, three decimals, 4 decimals, /SCWM/ODATA_API/074, quantity precision, rounding, truncation, EWM API, HTTP 400, confirmation error , KBA , SCM-EWM-API-2CL , Remote APIs (Public Cloud) , Problem
SAP Knowledge Base Article - Public