Configuring the Header and Line Items of Financial Accounting (FI) Documents

Objectives

After completing this lesson, you will be able to:
  • Maintain the structure of FI documents
  • Prepare the control elements of the document header
  • Use posting keys to control elements of line items
  • Configure the field status of line items in FI documents

Document Structure

Document in SAP Financials

A dashboard with an overview of financial document details, itemized account data, and a linked detail view displaying document header, account info, and additional details. Icons denote primary keys.

SAP S/4HANA is based on the document principle, which implies the following course of action:

  1. A document is saved for every business transaction posting.
  2. The document remains as a complete unit in the system until it is archived.
  3. Every document is uniquely identified by the following fields:
    • Document Number
    • Company code
    • Fiscal Year

Documents in SAP S/4HANA contain the following details:

A document header
This component contains information that applies to the entire document.
Line items
Each posted accounting document has at least two lines (for example, debit and credit) and a maximum of 999 line items. The information in each separate lite item is specific to this particular line item. When you post documents using an AC interface, such as Sales Order Management, or Purchasing Management, the AC interface creates items in the accounting document that are identical in almost all of the fields.

Control Keys

You can display detailed data for the document header and line items.

There are two important control keys in the document:

  • Document type in the document header.
  • Posting key in the line items.

SAP S/4HANA generates at least one document for every business transaction. Each document is assigned a unique document number. During internal number assignment, the document number is assigned by the system. During external number assignment, the user assigns the document number in the Document Number field.

A business transaction can create one or more documents. For example, when goods arrive from a vendor, SAP S/4HANA creates a material document to record data that is important for inventory management. An accounting document is created to record financially-relevant information, such as accounts data and amounts related to the general ledger.

In SAP S/4HANA, documents are generated for various business transactions without an accounting document being generated at the same time because accounting is not affected by document generation. An example of this is the generation of a purchase order in Materials Management, which does not result in the generation of an accounting document.    

Related documents are linked in SAP S/4HANA, which gives you an overview of every business transaction in SAP.

The RFBELJ00 report allows you to create a compact document journal. The document journal contains a table of the most important data from the document headers and line items of the selected documents.

You can use the RFBUEB00 and RFBUEB01 reports to locate documents.

On the SAP Fiori Launchpad, you can use the Manage Journal Entries tile (General Ledger group) to locate documents.

How to Display FI Documents

How to Display FI Documents

Creation of Document Types

Document Types

Diagram showing the link between original documents, such as customer payments and vendor invoices, and FI documents with corresponding IDs and G/L account details. Arrows indicate the flow.

Document type controls the document header and helps differentiate the business transactions that need to be posted.

Since document types are defined at the client level, they are valid for all company codes. SAP S/4HANA is delivered with document types that can be changed or copied.

Document types define the following elements:

  • Number range for the Document Type:

    Each document type must have a number range assigned to it.

  • Reverse Document Type:

    The document type specified in the field Reverse Document Type is used when a reversal transaction is performed. If you do not specify a reversal document type, the system uses the posted document type for reversal.

  • Account types allowed for postings:

    In the Account types allowed section, specify the Account type – Assets, Customer, Vendor, Material, G/L account that you want to post to.

  • Control data:

    In this section, you select the Net Document Type field, which is only valid for document types used for vendor invoices. Selecting this indicator reduces the total amount due by the cash discount amount specified by the payment terms on the invoice.

    This section also includes the following fields:

    • Customer/Vendor check
    • Negative Postings permitted
    • Inter-company postings
    • Enter trading partner
  • Required during document entry

By selecting Reference Number and Document Header Text, you make each of these fields a required entry in the document header.

Important Standard Document Types

Folders labeled for different financial document types: customer invoices, credit memos, payments, G/L account postings, general documents, vendor invoices, credit memos, payments, and net invoices.

Document type AB allows postings to all account types.

For all other document types, limit the types of accounts you can post to. For example, document type DG allows you to post to customer (D) and general ledger accounts (S) only.

To transfer billing documents from the SAP S/4HANA billing application, you need one of the following document types:

  • RV: The default document type for Sales Order Management billing documents (customer invoices).
  • RE: The default document type for Materials Management billing documents (vendor invoices).

With internal number assignment, SAP S/4HANA assigns a new number to each document in the Financial Accounting component. With external number assignment, the application transfers the billing document number to the accounting document, provided that this number has not already been used.

The payment program uses the document type ZP for most of its automatic postings.

How to Display Document Types

How to Display Document Types

Document Number Ranges

Chart illustrating number assignments: external (EX 02), future fiscal year internal (SB 01), and annual internal (DR 00), with labeled data trends from 2020 to 2023.

The document number range defines the range of numbers that is assigned to document numbers. These number ranges must not overlap.

The following types of number assignments are possible in SAP S/4HANA:

  • Internal numbering

    In this type of numbering, SAP S/4HANA saves the last document number taken from the number range in the Current Number field. The application then assigns the number following the current number as the next document number. Refer to the examples 00 and 01 in the figure.

  • External number assignment

    In this type of numbering, the user enters the number of the original document manually or the number is transferred from another system automatically. Since the numbers are not assigned in sequence, SAP S/4HANA cannot store a current number as shown in example 02 in the figure. The numbering can be alphanumeric.

The document number range must be defined for the year in which it is used.

Options for Defining Document Number Ranges

The following options are available for defining the document range:

  • Continuous:

    At the beginning of a new fiscal year, SAP S/4HANA continues to use the number after the current number as the next number. The application does not restart at the first number of the number range.

  • For every fiscal year:

    At the beginning of a new fiscal year, SAP S/4HANA starts with the first number of the number range. This ensures that the number range is sufficient.

One number range can be assigned to several document types. You can copy the intervals of document number ranges from one company code to another or copy intervals from one fiscal year to another.

You can use the RFBNUM00 report to find gaps in document number assignment.

Create a Number Range and Document Type

Create a Number Range and Document Type

Classify the Document Type for Document Splitting

Classify the Document Type for Document Splitting

Posting Keys

Diagram explaining the functions of a Posting Key. It controls account type (S, D, K, A, M), debit or credit posting, and field status for additional details like business area, cost center, and text.

Similar to document types, posting keys are also defined at client level.

In addition to the control functions shown in the preceding figure, the posting key also specifies the following features:

  • Whether the line item is connected to a payment transaction. You will need this information to analyze the payment history and create payment notices.
  • Whether the posting is sales-relevant and the sales figure of the account will be updated by the transaction. For example, by the posting of a customer invoice.

The following default values for posting keys are provided in Customizing for SAP S/4HANA: 

  • For G/L account postings:Posting key 40 for debit, posting key 50 for credit.
  • For customer postings:Posting key 01 for debit, posting key 11 for credit.
  • For vendor postings:Posting key 21 for debit, posting key 31 for credit.

How to Analyze Posting Keys

How to Analyze Posting Keys

Document Field Status and Field Status Groups

Document Field Status

Flowchart showing field relevance determination based on account type, posting key, and account dependencies, leading to field status options: hide, required entry, or optional entry, with priority rules.

When you enter documents, SAP S/4HANA displays several fields. The fields displayed depend on the transaction and the accounts that you are using. For example, when you post expenses, you have to specify the cost center and tax data. In contrast, you do not need to specify this information when you post cash. The field status controls the information to be entered and displayed when a document is processed. 

As with the field statuses defined for fields in G/L accounts, the field status with the higher priority is used.

These are the priorities:

  • SUPPRESS/HIDE (highest priority)

  • REQUIRED ENTRY

  • OPTIONAL ENTRY (lowest priority)

Entries in tax fields are only possible if the general ledger account is relevant for tax.

The Suppress/Hide field status cannot be combined with the Required Entry field status. This combination causes an error.

Field Status Groups

Flowchart illustrating field status groups for accounts (cash, expense, general, etc.), grouped under a variant linked to company codes, with example account numbers and a document entry control reference.

For each group of general ledger accounts (such as cash accounts or expense accounts) you need to define the status of every document entry field. When you enter the documents for these general ledger accounts, you must decide if the text field is required, optional, or suppressed/hidden. Similarly, when you enter the documents for general ledger accounts, you need to decide if the cost center field is required, optional, or suppressed/hidden.

SAP S/4HANA divides this information into field status groups for each group of general ledger accounts. You assign field status groups to the respective general ledger accounts in the general ledger accounts master records. The field status groups are summarized in one field status variant.

The field status variant is assigned to your company code(s). You cannot make a posting until the field status variant is complete. Typically, you assign the same field status variant to all your company codes so that the same field status information applies across the company codes.

Various field status groups are available in the standard SAP S/4HANA. It is recommended that you copy the standard field status groups and modify the copies as necessary.

If a document is posted to a subledger account, the field status group of the reconciliation account is used.

Standard Posting Keys

Flowchart showing account categories: Receivables, Payables, General Ledger, Assets, and Materials. Highlighted note indicates postings from materials management to specific general ledger accounts.

SAP recommends that you use the standard posting keys delivered. If you change them or define new posting keys, any tables containing a reference to these keys must also be updated.

Posting keys for assets and materials may only be used if the corresponding SAP components are configured.

You can change the field status definitions of posting keys and the field status group to make the field status transaction-dependent or account-dependent. Since subledger accounts do not have a field status group, postings are differentiated by means of different posting keys. For this reason, there are numerous posting keys for subledger accounts.

Postings to general ledger accounts are differentiated by means of different field status groups. As a result, only two posting keys, 40 and 50, are required for general ledger account postings.

How to Maintain the Field Status Through the Field Status Group

How to Maintain the Field Status Through the Field Status Group

How to Assign a Company Code to a Field Status Variant

How to Assign a Company Code to a Field Status Variant

Create a Field Status Group and Assign it to a G/L Account

Create a Field Status Group and Assign it to a G/L Account

Summary

  • Document types control the document header and differentiate business transactions.
  • Number ranges ensure unique identification of documents and can be internally or externally assigned.
  • Posting keys define account types, the field status of additional details and debit/credit indicators for line items.
  • Field status groups control the display and maintenance of line item fields.