Show TOC
New Fields For
Account Determination
Basics of
Modification in Account Determination
- The following communication structures are
relevant for the account determination:
- KOMKCV (Account determination communication
header)
- KOMPCV (Account determination communication
item)
- KOMCV (Allowed fields for the account
determination)
For technical
reasons, the communication structure KOMCV is used, which combines KOMKCV and
KOMPCV, and which contains all fields that can generally be used for the
account determination. When entering new fields in KOMKCV or KOMPCV, the
fields are also automatically included in KOMCV.
- New fields for the account determination are
integrated in the following INCLUDES:
- Header data in KOMKCZ (INCLUDE in KOMKCV or
KOMCV)
- Item data in KOMPCZ (INCLUDE in KOMPCV or
KOMCV)
- The routines for supplying the new fields in
billing are found in member RV60AFZZ. Use the following user
exits:
- USEREXIT_ACCOUNT_PREP_KOMKCV
- USEREXIT_ACCOUNT_PREP_KOMPCV
Example for
usage of the new fields in account determination
1. Check
whether a corresponding document field exists in the billing header
(VBRK).
The billing header
contains the field LAND1, which is defined as a header field in table
VBRK.
2. Include the
field name ZZLLAND in the communication structure KOMKCV using the INCLUDE
KOMKCZ, and allocate the data element LLAND to it.
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.
3. Activate the
structure.
4. Supply the
field in the FORM routines using the appropriate user exits in member
RV60AFZZ. The statement is as follows:
FORM
USEREXIT_ACCOUNT_PREP_KOMKCV.
MOVE
VBRK-LAND1 TO KOMKCV-ZZLLAND.
ENDFORM.
5. Assign the
specifications C,V, and 001 to the field ZZLLAND in table T681F.