Symptom
Cannot post a goods movement via API for warehouse due to error "You can't perform this action, synchronous goods movement is not active."
Environment
- SAP S/4HANA Cloud Public Edition
- VDM Stock and Goods Movements (Public Cloud)
Reproducing the Issue
- Call API_MATERIAL_DOCUMENT_SRV to create a material document (entity A_MaterialDocumentHeader) with GoodsMovementCode "03" and an item using GoodsMovementType "261" (goods issue to a manufacturing order).
- Include Extended Warehouse Management fields at item level such as EWMWarehouse and EWMStorageBin (and, if relevant, HandlingUnitExternalID).
- Send the request to post the goods movement.
- Observe the error: "You can't perform this action, synchronous goods movement is not active."
Cause
The API payload does not include the control parameter CtrlPostgForExtWhseMgmtSyst to enable the required posting behavior with Extended Warehouse Management, so synchronous goods movement is not active.
Resolution
- In the API_MATERIAL_DOCUMENT_SRV request, add the field CtrlPostgForExtWhseMgmtSyst at A_MaterialDocumentHeader.
- Choose the appropriate value for CtrlPostgForExtWhseMgmtSyst:
- 1. "3" to post the goods movement synchronously to Extended Warehouse Management (EWM).
- 2. "1" to create a delivery document instead of a material document.
- 3. "2" to execute the stock change in the core system.
- Resend the request with CtrlPostgForExtWhseMgmtSyst set (for synchronous EWM posting, use "3").
- Verify that the posting completes without the "synchronous goods movement is not active" error and that the expected material/warehouse documents are created.
See Also
Keywords
API_MATERIAL_DOCUMENT_SRV, A_MaterialDocumentHeader, CtrlPostgForExtWhseMgmtSyst, synchronous goods movement, EWM, 261, goods issue, manufacturing order, EWMWarehouse, EWMStorageBin, GoodsMovementCode 03, material document API, warehouse posting error, Public Cloud, stock and goods movements , KBA , MM-IM-VDM-SGM-2CL , VDM Stock and Goods Movements (Public Cloud) , Problem
SAP Knowledge Base Article - Public