Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Showing results for 
Search instead for 
Did you mean: 

Did you know that you can define rules that the system uses to determine number range intervals and number range prefixes for the numbering of newly created billing documents?

These rules evaluate header fields of the billing document that is being created to dynamically determine the resulting document number.
Custom number range intervals and prefixes can be useful if you want to make the origin of an invoice recognizable at a glance (for example, invoice UK123456 vs invoice US923456). They can also help to fulfill legal invoicing requirements that exist in some countries.

Flexible billing document numbering was previously only possible through the implementation of ABAP custom logic (via Business Add-Ins, AKA BAdIs).
Thanks to the Configurable Parameters and Formulas (CPF) framework, you can now set it up with just a few clicks across a handful of configuration steps in the Manage Your Solution app.

The following two-part video tutorial takes you through all the necessary steps:

  • Overview of the example target implementation

  • Creating your number range intervals and number range prefixes

  • Creating your CPF formula, including the decision table that contains the numbering rules

  • Making the required configurations to link your formula to specific billing document types through use of a custom routine

  • Testing the new implementation by creating billing documents with specific attributes to trigger some of the implemented rules, then check whether they are applied correctly

You can watch the videos below. Happy viewing!

Related Links on SAP Help Portal:

Flexible Billing Document Numbering

Using Configurable Parameters and Formulas (CPF) to Implement Flexible Billing Document Numbering