Add Fields To Field Catalog - Example - Sap
Add Fields To Field Catalog - Example - Sap
This userexit can be used to move additional fields into the communication table which is used
for pricing:
The technical name of Material Group 2 and Material Group 3 is MVGR2 and MVGR2
respectively. Now these fields also exist in the Sales Order hence we can use these two fields to
carry out different prices. These two fields are not available in the condition table where we select
the fields to define a key combination.
SAP has also provided some additional pricing fields in the customer master. But in situations
where the price selection parameter is huge and complex we have the option to choose the field
from customer or material master as per the suitablility.
The fields which are ready to use in the condition table V/03 comes from the field catalog.
1. Integrate the field name ZZMVGR2 in the communication structure KOMP using the
INCLUDE KOMPAZ and allocate the data element MVGR2 to it.
Explaining KOMP
There are three structures that need to be populated KOMP, KOMK and KOMG. KOMP is at the
item level, KOMK is at the header level and KOMG is automatically updated when fields are
added in KOMK or KOMP.
ZZMVGR2 is Material Group 2 which needs to be added in KOMP using include KOMPAZ
Include is a component used to add fields, in our case it is ZZMVGR2.
How to add the component is beyond the scope of this book, but it is essential to know which
include and what structures should be used for this purpose. Once ZZMVGR2 is added it
becomes available in Conditions Allowed Fields.
4. Allocate the specifications A, V and 001 to the field ZZMVGR2 in table T681F.