Ansicht
Dokumentation

MWMTO009 - Prevent the TA items being deleted

MWMTO009 - Prevent the TA items being deleted

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

The deletion of TO items can be prevented by means of this user exit.

The user exit is performed on the 'Place into stock' preparation screen and on the 'Remove from stock' preparation screen. A table of the items the user wants to delete is transferred. This deletion can be prevented, which is useful for example if, due to other user exits, several items were created which are consistent and a "middle" item may not be deleted.
Only A or S messages may be issued.

The user exit in the program is the function module EXIT_SAPML03T_004. In order to be able to use it, the include ZXLTOU15 must be created and the enhancement must be activated by means of transaction CMOD.
The following parameters are available

Import parameters

  1. I_LTAK the respective TO header from which reference documents, for example, follow such as transfer requirement tracking number, and the like.
For more information on filled fields in I_LTAK, please refer to the interface documentation of the function module L_TO_PREPARE_ITEM_INT.
  1. I_MLVS Material master
  2. I_MGEF Hazardous material master
  3. I_T333 Movement type with which the TO is created
  4. I_T340D Warehouse number control
  5. I_VORGA Transaction within TO processing

Export parameters

E_SUBRC Return code of processing with the following values

  1. R_CUS_OK => Deletion may be performed
  2. R_CUS_EXIT => Deletion must not be performed

Table parameters

T_LTAPL Table of the TO items to be deleted

Each table entry consists of three fields. XPNUM is the current number on the corresponding preparation screen; XTAPS specifies whether a TO item has already been created for this line ('X'). In case an item has already been created internally, TAPOS specifies the precise line item number.

If the deletion is rejected, a system message should be issued from the user exit to inform the user.






General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2513 Date: 20240426 Time: 064152     sap01-206 ( 31 ms )