4.1 Document Types, Number Ranges & Header Controls
Key Takeaways
A document type is maintained at client level and governs the document header and permitted account types.
Assign a range key to the document type and maintain the applicable interval for the company code.
SAP assigns internal numbers. A person or source system supplies external numbers. Identify the document with its company code, fiscal year and number.
An annual internal interval can restart at its lower bound. A continuous interval with year 9999 can span fiscal years.
Negative FI reversal reduces the original transaction figures when the company code and reversal reason permit it. A different posting date depends on the reversal reason.
4.1 Document Types, Number Ranges & Header Controls
The FI document header records values that apply to the journal entry as a whole, such as company code and document type. The individual lines record the accounts, amounts and assignments. SAP stores the header in BKPF, the FI entry-view items where applicable in BSEG, and the ledger items in the Universal Journal (ACDOCA). See 2.1 for the differences among the views.
An FI document is identified by company code, fiscal year, and document number. The document type assigns the number range key and governs which account types may be used. This combines a client-level setting with numbering that can differ by company code.
1. Document Types: Architecture & Client-Level Definition
A Document Type is a two-character alphanumeric identifier (e.g., SA, KR, DR, AA) that classifies financial transactions by their commercial nature (such as vendor invoices, customer payments, depreciation runs, or general journal adjustments).
Client-Level Scope
Document types are maintained in OBA7 and apply throughout that client. Company codes can use the same document type with different number intervals. A document type can also restrict which account types are allowed, even if a posting key exists for the account the user tries to enter.
Common SAP Document Types
| Document type | Common use |
|---|---|
SA | General G/L account posting |
KR, KG, KZ | Supplier invoice, credit memo and payment respectively |
DR, DG, DZ | Customer invoice, credit memo and payment respectively |
KN | Supplier net invoice or credit memo. Uses the vendor net procedure. |
AB | General document. SAP's standard definition permits all account types. |
RE | Invoice receipt from Materials Management |
RV | Customer billing document from Sales |
Confirm the settings in your client. For example, a business can use the delivered DG definition to allow customer and G/L lines for a customer credit memo. A customized supplier invoice type can allow supplier and G/L lines and require a reference.
2. Document Header Controls in Transaction OBA7
Account Types
Choose the applicable account types for postings with the document type. Examples are A asset, D customer, K supplier, M material and S G/L. A particular line's posting key must also permit the line's account type. For example, assume an FI invoice type permits only customer and G/L accounts. The invoice cannot include a supplier line. SAP documents message F5243 for an account type that is not permitted by the document type in posting paths including MIRO, FB01, FB60 and FB70.
Header Fields and Reversal Document Type
- Reference and header text. The document type can require the document header's Reference (
BKPF-XBLNR) or Document Header Text (BKPF-BKTXT). Recording a supplier reference helps identify the invoice. Duplicate-invoice checking has its own controls. - Reversal document type. When one is configured for the original type, use it for the reversal. If none is specified, SAP uses the original type.
- Net document type. For the vendor net procedure, SAP calculates the cash discount and net amount at invoice posting using the payment terms. This setting is relevant to document types used for supplier invoices.
3. Number Range Intervals: Architecture & Rules (FBN1 / NRIV)
Link the Document Type to the Number Interval
- In
OBA7, assign a number range key to the document type. Multiple document types can share that key. - In
FBN1, define the intervals for the company code that posts the documents. Maintain the interval's bounds, validity year, and internal or external assignment. The posting fiscal year determines the interval used.
For example, document type KR uses number range 19 in two company codes. These are their internal intervals for 2026.
| Company code | Range | First number | Last number | Current number | Next number |
|---|---|---|---|---|---|
1000 | 19 | 1900000000 | 1999999999 | 1900000042 | 1900000043 |
2000 | 19 | 5100000000 | 5199999999 | 5100000108 | 5100000109 |
Fiscal Year and Number Assignment
| Configuration | How it works |
|---|---|
| Year-dependent internal interval | An annual interval lets the counter start from its lower bound for the new fiscal year. Define the necessary intervals before posting to each year. |
| Continuous internal interval | A far-future validity year such as 9999 lets a single interval run across fiscal years. Verify that the relevant interval exists and has capacity. |
| External assignment | The user or source system supplies the number. It can be alphanumeric when allowed by the range. SAP checks the interval and uniqueness in the company code and fiscal year. There is no system-generated next number. |
An internal counter assigns the next available number from the applicable interval. Gaps can occur, for example, if an update fails after number allocation. An internal interval can restart in a new fiscal year without establishing either gapless numbering or compliance with a legal invoice series. Keep supplier-provided invoice references distinct from SAP's accounting document number.
4. Document Reversal Mechanics & Reversal Reasons
Use FB08 for an individual FI reversal or the available mass reversal function for eligible documents. A reversal creates a new document that refers to the original. Reset clearing first if the FI document contains cleared items. For a transaction originating in another component, use the relevant cancellation process. An MM invoice reversal needs to update invoice verification as well as FI.
Reversal Reasons and Posting Dates
The configured reason specifies whether the reversal uses negative posting and whether the user can enter a different posting date. For an original posting in a closed period, select a permitted reason that allows an alternative date and enter a date in an open period. Choose the settings by their meaning in the client. Reason codes can be customized.
Standard Reversal and Negative Posting
Assume the original journal entry debits Utilities Expense and credits a Cash account for USD 1,000. Both reversals restore the net balance. Their effects on transaction figures differ.
| Method | Effect on Utilities Expense | Effect on Cash |
|---|---|---|
| Standard reversal | Adds USD 1,000 to credit turnover. The original USD 1,000 debit turnover remains. | Adds USD 1,000 to debit turnover. The original USD 1,000 credit turnover remains. |
| Negative posting | The inverse posting reduces the original debit turnover by USD 1,000. | The inverse posting reduces the original credit turnover by USD 1,000. |
The company code must permit negative postings and the FI reversal reason must request negative posting. The table describes the turnover effect: an inverse posting with the negative indicator reduces the transaction figures on the original side. For a separate manual transfer or correction using negative postings, use a document type that explicitly allows that posting.
Check the Configuration
If a document type is available but posting fails with a number range error, check its range key against the company code and fiscal year in FBN1. If a line's account type is rejected, check both the document type settings and the line's posting key. For a reversal in an open period with no increase in turnover, use a permitted reason whose date and negative posting settings match the requirement.
A financial configuration specialist needs to define a new document type for legal reporting in SAP S/4HANA. At which architectural organizational level is the document type defined, and what control function does it exercise over posting line items?
Defined at the Client level in table T003; controls permitted account types (Assets, Customers, Vendors, Material, G/L) and assigns the number range key
Defined at the Company Code level in table T001; controls debit and credit line item field display statuses
Defined at the Controlling Area level in table TKA01; determines whether primary or secondary cost elements can be posted
Defined at the Chart of Accounts level in table T004; governs whether open item management is active for balance sheet accounts
A company's policy requires the SAP internal number for one supplier invoice series to start again from 1 in each new fiscal year. Which setup meets that requirement?
Use an external interval and enter the source document number
Use validity year 9999 and one continuous counter
Maintain an annual internal interval beginning at 1 for each required fiscal year
Enable buffering and reuse the same continuous interval
An FI accountant needs to reverse an eligible utility expense posting without increasing the debit and credit turnover. Which setup gives that result?
Select an ordinary reversal reason
Use a reason configured for negative posting in a company code that permits negative posting
Change the original document number range from internal to external
Enter an ordinary inverse journal entry
Sections you finish are checked off in the contents.