SAP Knowledge Base Article - Public

3834290 - Cannot post EWM warehouse goods movement via API due to "synchronous goods movement is not active" (movement type 261) - SAP S/4HANA Cloud Public Edition

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

  1. 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).
  2. Include Extended Warehouse Management fields at item level such as EWMWarehouse and EWMStorageBin (and, if relevant, HandlingUnitExternalID).
  3. Send the request to post the goods movement.
  4. 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

  1. In the API_MATERIAL_DOCUMENT_SRV request, add the field CtrlPostgForExtWhseMgmtSyst at A_MaterialDocumentHeader.
  2. Choose the appropriate value for CtrlPostgForExtWhseMgmtSyst:
  3. 1. "3" to post the goods movement synchronously to Extended Warehouse Management (EWM).
  4. 2. "1" to create a delivery document instead of a material document.
  5. 3. "2" to execute the stock change in the core system.
  6. Resend the request with CtrlPostgForExtWhseMgmtSyst set (for synchronous EWM posting, use "3").
  7. 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

Refer to: API_MATERIAL_DOCUMENT_SRV - Create material document and post to EWM synchronously

Refer to: Note 3498212 - "Warehouse Management" tab doesn't show up when posting Goods Issue for Reservation - SAP S/4HANA Cloud

Refer to: Note 3452904 - Customizing "Activate Synchronous Goods Movements in the Warehouse" doesn't work for Goods Receipt with Production Order - SAP S/4HANA Cloud

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

Product

SAP S/4HANA Cloud Public Edition all versions