Customer Functions: Inventory Management
The user exit MBCF0002 includes a function module that is called up when you enter a goods movement for each item. It enables you to fill in the item text in the material document item, depending on the following data: - MKPF (Material document header)
- MSEG (Material document item)
- VM07M (Additional data for material document item)
- DM07M (Additional data for material document item)
The item text is also stored in the accounting document. Examples
Goods receipt for a purchase order assigned to an account: since the purchase order number does not contain a material number, the material description entered in the purchase order is used as an item text (field MSEG-SGTXT).
Example of source text:
IF I_MSEG-MATNR IS INITIAL. E_SGTXT = I_DM07M-MAKTX. ENDIF.
If the material description is to be used as the item text for all goods movements, the source text has the following line only:
E_SGTXT = I_DM07M-MAKTX.
Function/Program:- EXIT_SAPMM07M_001: Customer Function Exit: Set Segment Text in Material Document Item
|