Professional Documents
Culture Documents
New Fields For Output Control
New Fields For Output Control
New fields for output control are entered in the following INCLUDEs:
If you also want to use a new field for the setup of condition tables (key field) it must also be
included in the structure KOMBZ (contained in KOMB).
The routines and user exits for assigning values to the new fields are found in the
programs RVCOMFZZ, RVCOMFZ1 and RVCOMFZ4. It is also possible to copy partners
here.
In output determination, communication table KOMB contains all key fields that can be used for
conditions for output determination.
When you create new fields for output determination, you can distinguishbetween two types of
fields:
Both types of field have to be included in KOMKBV1. Fields which are only used to query
conditions do not have to be included in KOMB and T681F or in the field catalog.
If the field is identical to the field in the communication table (e.g. VBAK), a value is
assigned to it automatically by MOVE-CORRESPONDING. If SAP delivers the field in a
subsequent system version, no generation errors will be caused.
If the field is not identical with the field in the communication table,you have to assign a
value to it using the MOVE command. Begin the field name with the letters ZZ. This will
avoid generation errors if the field is later delivered by SAP in a subsequent system
version.
When entering partner numbers in the communication block, proceed as described in the
examples above. Partner function ZY is assigned to partner type AP in this example.
Remember to use a different routine to assign values to the new fields. If, for example, you want
to copy the partner function ZY into the new field ZZEINKA, for example, the statement is:
USEREXIT_KOMKBV1_PARTNER
WHEN'ZY'.COM_KBV1-ZZEINKA = COM_VBPA-PARNR.
The VBPA field used to assign a value to the new field depends on the partner function
determined in the sales order. Each partner function is assigned to a partner type (e.g. partner
function LF - partner type LI), which controls the assignment. Other source fields should be used
for other partner types: COM_VBPA-KUNNR, COM_VBPA-LIFNR, COM_VBPA-PERNR and
COM_VBPA-PARNR.
KU => COM_VBPA-KUNNR
LI => COM_VBPA-LIFNR
PE => COM_VBPA-PERNR
AG => COM_VBPA-PARNR