IDoc for Canceling Warehouse Tasks
Using IDoc /SCWM/WMCAID01, you can send a cancellation request to an external system, or confirm execution of a cancellation movement to Extended Warehouse Management (EWM).
When physical stock movements are executed via the connected non-SAP system, EWM cannot determine whether the warehouse tasks (WTs) transferred to the non-SAP system have already been executed. For this reason, the EWM can only send a cancellation request to the non-SAP system.
The non-SAP system then decides whether or not the movement has already been executed. If the stock movement has already been executed, the external system confirms to EWM that the stock movement has already been completed and that cancellation is therefore no longer possible. In this case, the user receives a corresponding message in EWM.
You decide for each individual case what should happen with a WT item that cannot be cancelled. In this case, you make the necessary adjustments manually in the system.

You can only cancel warehouse tasks (WTs) if they have not yet been confirmed.
To send a cancellation request from EWM, fill the following fields in IDoc /SCWM/WMCAID01:
Segment |
Field |
/SCWM/E2LTCAH |
LGNUM |
|
WHO |
|
CANRQ |
/SCWM/E2LTCAI |
LBNUM |
To send a cancellation of a WT to EWM, fill the following fields in IDoc /SCWM/WMCAID01:
Segment |
Field |
/SCWM/E2LTCAH |
LGNUM |
|
WHO |
|
CANCL |
/SCWM/E2LTCAI |
LBNUM |

You can also cancel a warehouse task from the non-SAP system and send the cancellation to EWM, even if EWM has not sent a cancellation request first.
You define message type /SCWM/WMCATO for the inbound and outbound partner profile.
IDoc /SCWM/WMCAID01 is made up of two segments:
· /SCWM/E2LTCAH(header data for the warehouse task)
· /SCWM/E2LTCAH (item data for the warehouse task)
Segment definition /SCWM/E2LTCAH000
Field |
Data Type |
Description |
Required Entry |
Comments |
LGNUM |
CHAR 3 |
Warehouse Number |
X |
|
WHO |
CHAR 12 |
Warehouse order |
X |
|
CNAME |
CHAR 12 |
User name for WT cancellation |
|
|
CANRQ |
CHAR 1 |
Request cancellation warehouse task |
X |
X for cancellation request |
CANCL |
CHAR 1 |
Response cancellation warehouse task |
X |
X for cancellation from external system |
Segment definition /SCWM/E2LTCAI000
Field |
Data Type |
Description |
Required Entry |
Comments |
LBNUM |
CHAR 12 |
Warehouse task |
X |
|
VLENR |
CHAR 20 |
Source HU |
X |
|
NLENR |
CHAR 20 |
Destination HU |
X |
|
SFEHL |
CHAR 1 |
Error during cancellation |
|
|
SFTXT |
CHAR 80 |
Error text for cancellation |
|
This text appears in the inbox for error messages |