Show TOC
New Fields For
Listing/Exclusion
Basics of
Modifications for Listing and Exclusion
- For listing and exclusion the following
communication structures are relevant:
- KOMKG (Material listing - header)
- KOMPG (Material listing/material exclusion -
item)
- 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.
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.