IDoc for Canceling Warehouse Tasks

Definition

Using IDoc /SCWM/WMCAID01, you can send a cancellation request to an external system, or confirm execution of a cancellation movement to SAP Extended Warehouse Management (SAP EWM).

Use

When physical stock movements are executed via the connected non-SAP system, SAP EWM cannot determine whether the warehouse tasks transferred to the non-SAP system have already been executed. For this reason, SAP 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 SAP 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 SAP EWM.

You decide for each individual case what should happen with a warehouse task item that cannot be canceled. In this case, you make the necessary adjustments manually in the system.

Sending a Cancellation Request from SAP EWM to the Non-SAP System

To send a cancellation request from SAP EWM, fill the following fields in IDoc /SCWMWMCAID01/:

Segment

Field

/SCWM/E1LTCAH000

LGNUM

 

WHO

 

CANRQ

/SCWM/E1LTCAI000

TANUM

Sending a Cancellation from the Non-SAP System to SAP EWM

To send a cancellation of a warehouse task to SAP EWM, fill the following fields in IDoc /SCWM/WMCAID01:

Segment

Field

/SCWM/E1LTCAH000

LGNUM

 

WHO

 

CANCL

/SCWM/E1LTCAI000

TANUM

Structure

Message Type

You define message type /SCWM/WMCATO for the inbound and outbound partner profile.

Segments

IDoc /SCWM/WMCAID01 is made up of two segments:

  • /SCWM/E1LTCAH (header data for the warehouse task)

  • /SCWM/E1LTCAI (item data for the warehouse task)

    Segment Definition /SCWM/E1LTCAH000

    Field

    Data Type

    Description

    Required Entry

    Comment

    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/E1LTCAI000

Field

Data Type

Description

Required Entry

Comment

TANUM

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