ERPClimb logoERPClimb
User Exits
ABAP Developmentintermediate 7 min read

User Exits Part 6: RV60AFZZ — Billing User Exit Patterns

Preview · a free account unlocks the full lesson

Key takeaway

Use billing exits correctly: RV60AFZZ FORMs such as USEREXIT FILL VBRK VBRP and USEREXIT NUMBER RANGE, RV60AFZC for account determination and invoice split, copy control data transfer routines (VOFM), and designing billing logic for large VF04 runs.

In this lessonShow sections

Visual overview

User Exits Part 6: RV60AFZZ — Billing User Exit Patterns — learning sheetFlow: SE38: display RV60AFZZ and RV60AFZC → VTFL/VTFA: display a copy control item and its data transfer routine → Implement a custom number range rule in a sandbox and test with VF01. Key ideas: KEY FORMS (RV60AFZZ); RV60AFZC; COPY CONTROL (VOFM); VOLUME. Watch out: Billing runs (VF04, billing jobs) process thousands of documents — every SELECT in a billing exit is multiplied.ERPClimb.com / ABAP / LESSON 6/8 / LEARNING SHEETUser Exits Part 6: RV60AFZZ — Billing User Exit Patterns1 · HOW IT FLOWS1SE38display RV60AFZZ and RV60AFZC2VTFL/VTFAdisplay a copy control item andits data transfer routine3Implement a custom numberrange rule in a sandboxand test with VF012 · KEY IDEAS EXPLAINEDKey Forms (RV60AFZZ)USEREXIT_FILL_VBRK_VBRP — set VBRK/VBRP fieldsduring billing document creation (e.g. customfields, reference texts). XVBRK/XVBRP tables and…USEREXIT_NUMBER_RANGE — choose a different numberrange for billing documents (e.g. per company codeor country) via US_RANGE_INTERN.RV60AFZCContains exits used in account determination andother billing processes (e.g.USEREXIT_ACCOUNT_PREP_KOMKCV / KOMPCV to fill…Copy Control (Vofm)Data transfer routines (VTFL/VTFA copy control,Data VBRK/VBRP) — e.g. routine 9xx copies a fieldfrom the order to the billing document.Split criteria: invoice split via the ZUKRI fieldin data transfer routines — the correct place forcustom split rules.VolumeVF04 and billing jobs run for all due documents;exits run per document/item.Use data from reference documents already inmemory; buffer additional reads.3 · REMEMBER · WATCH OUTRememberBilling (SAPLV60A) exits live in RV60AFZZ (header/item fields, numberrange) and RV60AFZC (e.g. account determination, invoice split-related…USEREXIT_FILL_VBRK_VBRP fills billing header and item fields fromreference documents.Many billing requirements are better solved with copy control datatransfer routines (VOFM) — configured per billing type.!Watch outBilling runs (VF04, billing jobs)process thousands of documents —every SELECT in a billing exit ismultiplied.4 · IN A REAL PROJECTA company needed one invoice per customer project, but VF04 combined deliveries of different projects into oneinvoice. A developer first tried to split in RV60AFZZ by manipulating tables, which caused inconsistentbilling documents in tests. The correct solution was a data transfer routine for VBRK adding the project to…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 4 and 5 of this series covered order and delivery exits; billing is the last step of order-to-cash, and the most volume-sensitive one. Billing (SAPLV60A) exits live in two includes: RV60AFZZ, which holds header and item field exits and the number range exit, and RV60AFZC, which holds exits related to account determination and invoice split.

The key FORMs in RV60AFZZ are USEREXIT_FILL_VBRK_VBRP, which sets VBRK and VBRP fields during billing document creation — for example custom fields or reference texts — with the XVBRK/XVBRP tables and the reference data (VBAK, VBAP, LIKP, LIPS in their respective work areas) available depending on the processing point; USEREXIT_NUMBER_RANGE, which lets you choose a different number range for billing documents, for example per company code or country, through the parameter US_RANGE_INTERN; and USEREXIT_PRINT_ITEM and USEREXIT_PRINT_HEAD, which are rarely used.

RV60AFZC contains exits used in account determination and other billing processes, such as USEREXIT_ACCOUNT_PREP_KOMKCV and USEREXIT_ACCOUNT_PREP_KOMPCV, which fill the account determination communication structures, and these are used together with the customizing of account determination itself.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.