Ansicht
Dokumentation

MWMTO005 - Underdelivery

MWMTO005 - Underdelivery

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

With this user exit, the underdelivery of a material can be integrated into the TO processing.

In order to remove a certain quantity of a material from stock (starting from the preparation screen for the stock removal), TO items are created iteratively until requested quantity is met. Sometimes (for example, During the stock removal of quantities that cannot be split up, such as barrels or bales), it is useful to cancel this process before the requested quantity is reached.
The user exit is performed after the successful creation of (almost) every TO item starting from this preparation screen. If storage bins are entered manually on this screen or by picking them up from the stock list, the user exit will only be performed when the last of these items has been created. Only abend or system messages should be sent within the function module. Error messages or warnings messages are generally not useful because at this time no fields are ready for input on the screen.

The user exit in the program is function module EXIT_SAPML03T_001. In order to be able to use the user exit, you must create Include ZXLTOU11 and activate the enhancement with transaction CMOD.
The following parameters are available:

Import parameters

  1. I_AUSML The entire quantity of this material that is to be removed
  2. I_OFFML The open quantity that has not yet been scheduled
  3. I_SUMTL The quantity for which TO items have already been created
All three quantities refer to the base unit of measure. I_AUSML generally equals the total of I_OFFML and I_SUMTL, unless an item exists on the preparation screen for which the TO creation was cancelled. These three quantity fields are relevant if active ingredient processing is not active (I_LTAP-WIRME is set to its initial value).
  1. I_AUSME The entire quantity of this material that is to be removed
  2. I_OFFME The open quantity that has not yet been scheduled
  3. I_SUMTM The quantity for which TO items have already been created

All three quantities refer to the base unit of measure. I_AUSME generally equals the total of I_OFFML and I_SUMTL, unless an item exists on the preparation screen for which the TO creation was cancelled. These three quantity fields are relevant if active ingredient processing is active (I_LTAP-WIRME is not set to its initial value).

  1. I_LTAK The respective TO header that contains, for example, the reference documents such as transfer requirement number or the like. Please refer to the interface documentation of function module L_TO_PREPARE_ITEM_INT for more information on the filled fields in I_LTAK.
  2. I_LTAP The last created TO item
  3. I_MLVS Material master
  4. I_MGEF Hazardous material master
  5. I_T333 Movement type with which the TO is created
  6. I_T340D Warehouse number control
  7. I_VORGA Transaction within the TO processing

Export parameters

  1. E_EXIT E_EXIT = 'X' cancels the item creation for this material. Otherwise, it is continued.

Table parameters

  1. T_LTAPA Table of the items that are displayed on the preparation screen. This table must not be changed. It contains the most important information on the TO items for this material that have already been created. Items for which the TO creation was cancelled are indicated with T_LTAPA-XTAPS = ' '. Items for this material that refer to transfer requirement or delivery note items other than the current one are not contained in the table.





PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3779 Date: 20240425 Time: 020102     sap01-206 ( 77 ms )