Ansicht
Dokumentation

MWMTO008 - Storage type search for stock removal

MWMTO008 - Storage type search for stock removal

PERFORM Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Using this customer exit you can influence the storage type search of a material during stock removal.

The customer exit takes place on the preparation screen for stock removal, before the first item is created. The search sequence according to the storage type indicator and the standard parameters are proposed and can be changed. Also, it is possible to propose work items for creating transfer orders and, in this way, to implement a type of stock removal strategy across all storage types.
Only A or S messages can be sent.

The customer exit in the program is FB EXIT_SAPML03T_003. To fill it with data, you must create include ZXLTOU14 and activate the customer exit using Transaction CMOD.
The following parameters are available:

Import parameters

  1. I_LTAK the respective transfer order header from which, for example, reference documents such as the TR number are derived.
  2. I_LTAP Transfer order item
You can obtain further information on filled fields in I_LTAK and I_LTAP from 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 Procedure within TO processing
  6. I_AUSML Total quantity to be removed from stock in base unit of measure. This quantity is relevant if active ingredient processing is active (I_LTAP-WIRME is set to its initial value).
  7. I_AUSME Total quantity to be removed from stock in alternative unit of measure. This quantity is relevant if active ingredient processing is not active ((I_LTAP-WIRME is not set to its initial value).

Changing parameters

  1. C_LGTY0 Source storage type (0)
  2. C_LGTY1 Source storage type (1)
  3. C_LGTY2 Source storage type (2)
  4. C_LGTY3 Source storage type (3)
  5. C_LGTY4 Source storage type (4)
  6. C_LGTY5 Source storage type (5)
  7. C_LGTY6 Source storage type (6)
  8. C_LGTY7 Source storage type (7)
  9. C_LGTY8 Source storage type (8)
  10. C_CONTI Continue search in spite of work items
  11. C_LGTY9 Source storage type (9)

Table parameters

  1. T_LTAPA Table of workitems for stock removal

There are no export parameters. The C parameters as well as table T_LTAPA are passed on by reference and can be changed directly. The units of measure and the conversion factors can be obtained from I_LTAP if active ingredient processing is not active. If active ingredient processing is used, the conversion factors for the batch must be used. With some work items it is important that the required quantity be filled in the base unit of measure as well as the alternative unit of measure (fields T_LTAPA-ANFML and T_LTAPA-ANFME). The fields T_LTAPA-XTAPS and T_LTAPA-TAPOS must have the initial value. The total for all work items must not exceed the quantity to be removed (I_AUSML).

It is important to watch out if the table T_LTAPA is filled and the total of these work items does not match the entire quantity to be removed from stock (I_AUSML). During posting or when the system moves on to the next material, the system in this case only converts the items from T_LTAPA into transfer order items. Any remaining quantity can only be processed by a stock removal in the foreground or background through the creation of TO items

You can influence this system behavior by changing the parameter C_CONTI. If you set this parameter to "X", the system will always try to process any remaining quantity through the creation of TO items. If you set the parameter to "Y", the system will not attempt to create further items, even if transfer orders are created through function modules.






CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4150 Date: 20240420 Time: 055551     sap01-206 ( 76 ms )