SAP ABAP IMG Activity SIMG_XXMENUOLSDMODA4 (New Fields For Listing/Exclusion)
Hierarchy
☛SAP_APPL (Software Component) Logistics and Accounting ⤷SD-MD (Application Component) Master Data ⤷VIO (Package) Introductory Guide to R/3 Organization and Environment
KOMGG (Material listing/material exclusion - communication block)
For technical reasons, the communication structure KOMGG is used, which combines KOMKG and KOMPG, and which contains all fields that can generally be used for material listing and material exclusion. When entering new fields in KOMKG or KOMPG, the fields are also automatically included in KOMGG.
New fields for material listing and exclusion are integrated in the following INCLUDES.
Header data in KOMKGZ (INCLUDE in KOMKG, KOMGG)
Item data in KOMPGZ (INCLUDE in KOMPG, KOMGG)
The routines for supplying the new fields in order processing are found in member MV45AFZA. Use the following user exits:
USEREXIT_MOVE_FIELD_TO_KOMKG (header fields)
USEREXIT_MOVE_FIELD_TO_KOMPG (item fields)
A statement for supplying a new header field for material listing could be, for example:
FORM USEREXIT_MOVE_FIELD_TO_KOMKG
MOVE VBAK-FELDXY TO KOMKG-ZZFELDXY.
ENDFORM.
Remember that new data fields must start with the letters "ZZ" or "YY", since SAP reserved these letters to protect them against overwriting during a release changeover.