Performing the Invoicing Process Configuration

Objectives

After completing this lesson, you will be able to:
  • Explain the invoicing process
  • Understand the customizing of the invoicing process
  • Explain the invoicing document

Explain the Invoicing Process

Lesson Overview

At the conclusion of this lesson, you will understand how to customize the invoicing process for data selection of source documents and groupings into invoicing units.

Business Example

Print Service Corporation has new requirements with regard to invoicing. The invoicing process should invoice only billing documents. An invoicing reversal process is required as an additional invoicing function. The postings should be made together for the invoice and not separately. Printing should be defined for the invoicing process.

Invoicing Process Configuration

The figure illustrates the Invoicing process flow from a technical perspective.

Invoicing from a technical perspective.

Invoicing is performed in the following steps:

  1. Data selection

    During data selection, the system selects the invoicing orders for the invoicing process. You define the data selection criteria for the invoicing process.

  2. Creation of invoicing units

    The system groups the selected invoicing orders into invoicing units for each contract account. You can create several invoicing units for each contract account. For each invoicing unit, invoicing in contract accounts receivable and payable creates one invoicing document.

    You define the criteria for creating the invoicing units for the invoicing process.

  3. Processing of billing documents

    The system includes the selected billing documents for an invoicing unit in the invoicing document. The billing document items are linked with the items of the invoicing document, and the derivations required for the posting in contract accounts receivable and payable (FI-CA) are performed.

  4. Execution of additional functions

    In addition to processing billing documents, in invoicing in contract accounts receivable and payable, you can integrate further FI-CA functions. These include interest calculation, the creation of dunning proposals, or the calculation of charges and discounts. You define which additional functions are executed for each invoicing process.

  5. Account maintenance

    Using the account maintenance integrated in invoicing in contract accounts receivable and payable, you can perform clearing between the posting documents entered in invoicing and the open items of the contract account posted before invoicing. You define the criteria for clearing in the clearing control.

  6. Update

    The system writes the invoicing documents created for the invoicing unit and the posting documents to the database, and deletes the processed invoicing orders.

  7. Print preparation

    Along with the invoicing unit, a correspondence container for invoice printing and an extraction order for the update to BW are created.

Customization of the Invoicing Process

The invoicing process flow depends on the following parameters:

  • Invoicing process

  • Invoicing type

  • Invoicing category

This multilevel control enables you to run invoicing according to your requirements. The criteria specified above are determined as follows during the processing of each contract account.

The user specifies the invoicing process explicitly when starting invoicing. The main task of the process is to define which categories of source documents are to be processed. It also defines the process flow for the invoicing functions. There is a differentiation between mandatory and optional invoicing functions.

Each invoicing process proposes an invoicing type. You can override the invoicing type in event 2603. The invoicing type enables you to react individually to the composition and the properties of the invoicing unit. It also defines which optional invoicing functions are performed for each invoicing unit.

At master data level, you can influence the invoicing process flow using the invoicing category, this is transferred from the contract account.

Business example for the creation of two invoicing processes:

Invoicing process and collective invoicing: You want to execute invoicing runs that only process (normal) billing documents, and invoicing runs that only process collective billing documents. Therefore, you define one invoicing process that selects only source documents of the category INVBI, and one invoicing process that selects only collective billing documents.

Source Document Category:

  • Describes a category of source documents to be invoiced.
  • Is a selection criterion in the configuration of the invoicing process.
  • Provides information regarding the technical aspects and storage details of the original document.

The following source document categories are allowed:

  • INVBI – Billing Documents
  • VBRK – SD Billing Documents
  • SD – SD Documents (FI-CA Sample Document)
  • COLBI – Collective Bill Documents
  • ACTIT – Open Posting Items to be activated
  • SUBIN – Single Invoicing Document for Invoicing List
  • CYCLE – Periodic Invoicing

Source document categories include the following:

  • INVBI Billing Documents

    Indicates source documents that are created by any SAP systems or systems from other providers, and that are transferred to invoicing in contract accounts receivable and payable by means of a defined interface.

  • VBRK SD Billing Documents

    Indicates source documents created by the Sales and Distribution (SD) component and to be posted or processed into an invoice in invoicing in contract accounts receivable and payable.

  • SD SD Documents (FI-CA Sample Document)

    Indicates FI-CA sample documents created by the Sales and Distribution (SD) component and to be posted or processed into an invoice in invoicing in contract accounts receivable and payable.

  • COLBI Collective Bill Documents

    Indicates source documents created during invoicing of the individual accounts of a collective bill.

  • ACTIT Open Posting Item to Be Activated

    Open item posted before invoicing that has a special clearing restriction and that is to be requested by invoicing.

  • SUBIN Single Invoicing Document of an Invoicing List

    Invoicing document that is to be entered in an invoicing list.

  • CYCLE Periodic Invoicing

    Invoicing order that was created by scheduling.

  • ADHOC Ad-hoc Invoicing

    Invoicing order for the creation of ad-hoc invoicing when there are no source documents to be invoiced.

Hint

For the reversal process:

When an invoicing document is reversed, invoicing orders are created again for the source documents processed in this invoicing document.

The source document category contains information about the technical makeup of the source document and where it is stored.

You can use the source document type to differentiate the source documents of a source document category according to their business significance.

Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

To select the source categories for a defined invoicing process, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

Main Selection Indicator

In mass processing, this indicator controls the determination of the contract accounts to be invoiced. A contract account only qualifies for invoicing if, among the invoicing orders, there is at least one source document of the source document category with the Main Selection indicator set.

Selection Rule for Source Documents (default setting)

Controls how the system determines the source documents that are to be processed in an invoicing process.

Invoicing Unit and Grouping Options

  • Invoicing orders or billing documents are summarized in invoicing units to be invoiced and displayed on an invoice together. The invoicing unit is the basis for the invoicing.
  • in a first step, the system groups all source documents that have the same contract account, business partner and currency.
  • Dependent on the grouping variant, the billing documents can be further grouped into invoicing units.
  • The grouping proposal can be processed on a customer-specific basis in event 2601.
  • For invoicing in dialog in expert mode, the invoicing units created are offered for selection in a dialog box.

The source documents selected for a contract account are grouped into invoicing units so that they can be invoiced and displayed on an invoice together. The invoicing unit is the basis for invoicing, it can contain the source documents of a maximum of one contract account.

The source documents to be invoiced that are determined for a contract account are processed together in one invoicing unit by default. However, you can control the grouping of the invoicing orders and create the grouping strategy for making up the invoicing unit.

For example, in customizing, you can define whether billing documents from different company codes are to be invoiced separately. You can also define that specific company codes can be invoiced together, or excluded from the current invoicing.

In addition, you can process the grouping proposal to meet your company's requirements in event 2601.

If you run invoicing in dialog using expert mode, in a fourth step, the invoicing units created so far appear for selection in a dialog box. There, you can change the assignment of source documents to invoicing units manually.

The system creates one invoicing document per invoicing unit. The invoicing document documents the posting transactions performed in FI-CA by invoicing. The invoicing document is the basis for invoice printing.

Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesMaintain Grouping Variants.

In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

The grouping characteristic of a grouping variant identifies the field that is used to group the documents to be invoiced into invoicing units.

Grouping characteristics are used in the configuration of grouping variants. You can use any fields from the structure FKKINV_TRIG for invoicing orders. Examples include the following:

  • Company Codes

  • Division

  • Source Document Number (Billing Document Number)

  • Contract Reference

  • Source Document Category

If necessary, you can define your own fields with the value derivation using a function module defined in the characteristic definition.

Invoicing consists of numerous processing steps. From a business point of view, some of these processing steps form complete business transactions and are known as invoicing functions. In the definition of an invoicing process, you define which invoicing functions are to be performed. This offers several advantages.

The invoicing functions selected make clear which invoicing processing steps are performed in an invoicing process.

At least one mandatory invoicing function has to be assigned to an invoicing process. Otherwise, the correctness and data consistency of the invoicing program cannot be guaranteed.

You can use a multilevel control to activate or deactivate invoicing functions that are not required in all cases.

Financial Accounting (New)Contract Accounts Receivable and PayableIntegrationInvoicing in Contract Accounts Receivable and PayableInvoicingInvoicing ProcessesDefine Invoicing Processes.

Selecting Invoicing Functions

Step 1:

In the definition of an invoicing process, in the Invoicing Functions sub dialog, you have to assign one or more invoicing functions to the invoicing process.

If you start invoicing with an invoicing process, the assignment of the invoicing functions has the following effect:

  1. Invoicing functions assigned where the Function Can Be Activated indicator is not selected are performed. The run cannot be prevented in step 2 or 3.

  2. Invoicing does not perform invoicing functions that are not explicitly listed in the assignment. This decision also cannot be changed in step 2 and 3.

For invoicing functions where the Function Can Be Activated indicator is set, step 2 or 3 defines whether they are performed.

Financial Accounting (New)Contract Accounts Receivable and PayableIntegrationInvoicing in Contract Accounts Receivable and PayableInvoicingInvoicing ProcessesDefine Invoicing Types.

Step 2:

In the definition of the invoicing types, in the Invoicing Functions sub dialog, you can assign all invoicing functions that are designated as can be activated/deactivated to the combination of invoicing type and invoicing category. In the assignment, you must also assign the activation status. Invoicing interprets this assignment as follows:

  • Functions that can be activated and that are not assigned to the invoicing type are not performed. This decision cannot be changed in step 3.

  • Functions that can be activated and have been assigned to the invoicing type with activation status 1 Function active, cannot be deactivated in dialog, are performed. This decision cannot be changed in step 3.

  • Functions that can be activated and have been assigned to the invoicing type with activation status 2 Function active, can be deactivated in dialog, are performed. This decision can be changed in step 3.

  • Functions that can be activated and have been assigned to the invoicing type with activation status 3 Function not active, can be activated in dialog, are not performed. This decision can be changed in step 3.

Financial Accounting (New)Contract Accounts Receivable and PayableIntegrationInvoicing in Contract Accounts Receivable and PayableInvoicingInvoicing ProcessesDefine Invoicing Types.

Invoicing Type

Business example of use of the invoicing type:

Use different invoicing types for periodic invoicing and final invoicing if there are differences in invoice print design or process control.

You differentiate between billing documents that belong to a normal, periodic billing and billing documents that have arisen due to the end of a contract (final billing documents). Interest can only be calculated on cash security deposits and cleared against the invoice receivable for the invoicing of final billing documents.

  1. You define a standard invoicing type and assign it to the invoicing processes. You define a further final billing invoicing type.

  2. In event 2603, you check whether final billing documents are processed. If the answer is yes, set the Final Billing invoicing type.

  3. In event 2622, you define that interest is only calculated on cash security deposits for the final billing invoicing type.

  4. In posting area 2630 (account maintenance), you permit the clearing of cash security deposits for the final billing invoicing type only.

The Invoicing Documents

The successful processing of an invoicing unit in an invoicing process leads to the creation of an invoicing document. The invoicing document stores information required for printing an invoice, and is therefore the basis for invoicing printing that, due to this data retention, can be decoupled and performed as a downstream process. The invoicing document also documents the invoicing process, retains data for subsequent processes, such as invoicing reversal, and saves data for display and evaluation.

Structure

In particular, the invoicing document provides information about the following:

  • The invoice data provided to the customer (for example, invoice number, invoice due date, invoice amount).

  • How the invoice for a contract account arose (for example, invoicing process, invoicing type and category, time of creation).

  • The processing mode in which invoicing was performed (simulated, posted, reversed).

  • Which source documents were processed in an invoicing unit and were therefore grouped to one invoice.

  • How the individual source documents were processed in the invoicing process for the invoice display and in accounting.

  • Which further invoicing items were displayed on the invoice and processed in accounting (for example, tax items, items from additional information).

  • Which posting documents were created or processed in an invoice and what their business meaning is from the perspective of the invoicing document.

You cannot delete real (not simulated) invoicing documents. If the content of a billing document is not correct, it can be reversed. During the reversal, a reversal invoicing document is created. The posting documents created during invoicing are reversed within the program with a document reversal from FI-CA. You can invoice the source documents again.

Invoicing documents are simulation documents if the invoicing process that creates them was started in simulation mode. Simulation documents have no influence on the subsequent update run of the invoicing process. Specifically, when you create simulation documents there are no postings in FI-CA. Simulations are used for checking and testing purposes. You cannot reverse the simulation documents.

Document types and number ranges:

The invoicing document number is the key that uniquely identifies an invoicing document per client.

The invoicing document numbers are numerical and are determined internally. External number assignment is not supported. Within a number range, the numbering of invoicing documents is sequential and has no gaps.

Customizing of Invoicing Document Type

For the document number assignment of the invoicing documents, perform the following activities in customizing for Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingDocumentsInvoicing Documents.

The same concept is used for the FI-CA document type: Customizing of FI-CA Document Type.

For the document number assignment of the invoicing documents, perform the following activities in the customizing for Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingDocumentsPosting Documents.

Contract Accounts Receivable and PayableIntegrationInvoicing in Contract Accounts Receivable and Payable InvoicingDocument Account AssignmentInvoicing Documents.

The assignment of document types to invoicing processes depends on the invoicing process, invoicing type, and invoicing category.

Hint

You can use the same document type for all invoicing documents. However, we recommend that you use different document types for real and for simulated invoicing documents, and assign different number ranges to these document types. We also recommend using separate document types and number ranges for the reversal documents.

Invoicing functions in an invoicing process can create one or more posting documents.

The invoicing function Invoicing Billing Documents derives postings in FI-CA from the billing data. These postings are saved in the form of posting documents.

In FI-CA, the system stores a posting document under a unique document number. The document consists of header data, items for contract accounts, and items for G/L accounts.

You can summarize the main and sub-transaction from invoicing items to business partner sub-ledger items, to have a better overview in the account balance.

Configure the Invoicing Process

Business Example

Print Service Corporation launches the product line Data High Speed. Billable item class TD## should be used productively from the beginning of next month. You now need to configure the new invoicing process for billable item class TD## with special properties.

Only billing documents created with billing process BP## should be selected. The reversal invoicing process is allowed.

Perform exercise (Task 1 to 6) in back-end system T41 client 400, user BR245-## password Welcome1.

Exercise Options

To perform this exercise, you have two options:

  1. Watch the simulation: to start the simulation, choose Start Exercise in the figure below.
  2. Perform the steps, as described below.

Task 1: Assign Source Document Type Z## Data High Speed Gr## to Billing Documents

Only billing documents of billing process BP## should be selected by the new invoicing process for your group.

To flag the output of your billing process BP## (exercise, Configure Billing Process), define a new source document type Z## and assign it to your billing process BP##.

Steps

  1. To define a new source document type, in customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingBillingBilling DocumentsDefine Source Document Types for Billing Documents.

    To assign billing source document type Z## to billing process BP## and billing type BIDA, in customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingBillingBilling DocumentsAssign Document Types.

    Hint

    Be aware that Billing Documents that were created before this change don´t have the necessary assignment. Please run the billing process again, after this change.

    1. Define a source document type Z## Data High Speed Gr ## for billing documents. Start a new session from the menu bar by choosing SystemCreate Session. In the new session, call the SAP Easy Access menu and choose ToolsCustomizingIMGExecute Project.

      Choose SAP Reference IMG.

      In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingBillingBilling DocumentsDefine Source Document Types for Billing Documents.

      Choose EditNew Entry Source.

      Document Type:Z##
      Source Document Type Text:Data High Speed Gr##

      To save your entries, choose Table ViewSave.

      Assign billing source document type Z## to billing process BP## and billing type BIDA.

      In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingBillingBilling DocumentsAssign Document Types.

      Choose EditCreate.

      Billing Process:BP##
      :Billing TypeBIDA

      Change the assignment:

      Doc. Type:01
      Rever. Doc01
      DT Sim:02
      Source Doc Typeold 001 → new Z##

      In the Account menu, choose DeterminationSave.

Task 2: Define a New Invoicing Process that Selects Billing Documents and SD Documents

Define a new invoicing process with following identifier and name: ## Invoicing Process Gr ## (## represents your group number).

Steps

  1. You define this in customizing under Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

    Configure a new invoicing process for billing documents with source document type Z## and with the following properties:

    • The invoicing process should only be executed if at least one billing document is included.

    • The invoicing process should select only source document type Z##.

    1. You define this in customizing under Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

      Invoicing Process:##
      Subprocess Descr.:Invoicing Process Group ##

      To save your entries, go to the Table menu and choose ViewSave.

      a) The invoicing process should be executed if at least one billing document is included. Define selection control for invoicing process ##.

      Source Document Category:INVBI
      Selection Rule: 
      Main Selection Indicator:select

      Select the main document indicator. This ensures that at least one invoicing document of source category INVBI must be included in the invoicing process.

    2. The invoicing process should only select source document types Z##.

      Define enhanced selection control for invoicing process ##.

      Source Document Type:Z##
      Select Source Document:select
      Main Document Indicator:select

Task 3: Configure the Invoicing Function for the New Invoicing Process

Steps

  1. Configure the invoicing function in customizing under Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

    Configure invoicing function INV_BILL_DOC and the REVERSAL invoicing function.

    1. Select invoicing process ## and go to the Invoicing Functions submenu.

      Choose EditNew Entry.

      INV_Bill_DOC 
      REVERSAL 

      Choose Table ViewSave.

Task 4: Define the Invoicing Type for Invoicing Process ##

Steps

  1. You do not need to define a new invoicing type, but it is mandatory to assign one.

    Assign invoicing type 01 for invoicing process ##.

    Hint

    If you want to control the process flow of invoicing dependent on the composition of the invoicing unit, you should define several invoicing types.

    In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Types.

    Add invoicing process ## to invoicing type 01. Process ## will therefore also use invoicing type 01. Adapt the text of invoicing type 01 for use in invoicing process ##.

    To assign invoicing type 01 to the invoicing process, in customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Invoicing Processes.

    Enter invoicing type 01 for invoicing process ##.

Task 5: Assign Documents to the Invoicing Process

Assign document types for posting documents for invoicing to the new invoicing process ##.

Steps

  1. In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingDocumentsPosting DocumentsDefine Document Types for Posting Documents for Invoicing (posting area 2605).

    Copy the entry from invoicing process Z1 to ## (your new process).

    Assign an application form to invoicing process ## for invoice printing.

    In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingInvoicing ProcessesDefine Specifications for Determination of Billing Form (posting area 2680).

    Copy the entry from invoicing process Z1 to ## (your new process).

    Maintain document types for invoicing documents for invoicing process ##.

    In customizing, choose Financial Accounting (New)Contract Accounts Receivable and PayableConvergent InvoicingInvoicingDocumentsInvoicing DocumentsMaintain Document Types for Invoicing Documents (posting area 2600).

    Copy the entry from invoicing process Z1 to ## (your new process).

Task 6: Create Billable Items as Test Data for your Own Invoicing Process

Create billable items for your contract account CA## for billable item class TD##, subprocess BS##.

Steps

  1. Execute the RFKKBIXBITSAMPLE program again with variant TESTOWNBILLING to generate test data.

    In the SAP Easy Access menu, choose ToolsABAP WorkbenchDevelopmentABAP Editor (transaction SE38).

    Program:RFKKBIXBITSAMPLE
    With Variant:TESTOWNBILLING

    Change the following fields:

    Billable Item Class:Change ## to your group number
    Subprocess:Change ## to your group number
    Contract Account:Change ## to your group number

    Choose ProgramExecute.

    1. Execute the RFKKBIXBITSAMPLE program with variant TESTOWNBILLING to generate test data.

      In the SAP Easy Access menu, choose ToolsABAP WorkbenchDevelopmentABAP Editor (transaction SE38).

      Program:RFKKBIXBITSAMPLE
      With Variant:TESTOWNBILLING

      Change the following fields:

      Contract Account:Change ## to your group number

      The billable item class is already initialized with TD##, subprocess BS##, and billable item type BI00.

      Choose ProgramExecute.

      The system outputs the message Generation of sample data.

      Result: The report has generated 3 billable items for your billing process. If this fails, the system generates a log file with an error message. In this case, check the customizing settings for your billing process again step by step.

Task 7: Test your Invoicing Process

See exercise 5 task 10 for detailed steps in Billing Process Execution.

Steps

  1. Execute

    Billing ProcessBP##Billing Process Group ##
    Billing SubprocessBS##Billing Subprocess Group ##
    Billing DateToday 
    Contract AccountCA## 
  2. Execute your invoicing process ##

    See exercise 7 for detailed process steps in Invoicing Process Execution.

    1. In the SAP Fiori launchpad choose the tile Execute Invoicing - Business Partner (Corresponding back-end transaction FKKINV_S).

    2. Enter the following parameters:

      Invoicing Process##
      Document DateToday
      Posting DateToday
      Business PartnerBP##

      Choose the Execute button in the lower right corner of the app.

Log in to track your progress & complete quizzes