ERPClimb logoERPClimb

FICO · Intermediate · Configuration

How to define an FI document type and number range in SAP (OBA7, FBN1)

Create a document number range for a company code, define a new document type that uses it and limits the allowed account types, classify it for document splitting and test a posting.

APPLICABILITY
SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition, and SAP ECC, where the Financial Accounting IMG is available. In SAP S/4HANA Cloud Public Edition the same objects are maintained through the central business configuration tools, with different screens.
TOOLS / TRANSACTIONS
SPRO · FBN1 · OBA7 · FB60

Your project assignment

Accounting in a hypothetical company code ZD10 wants travel expense invoices separated from normal supplier invoices. They ask for document type ZT with its own number interval, supplier and G/L lines only, and the supplier invoice number as a required reference.

Where to start: URLs and transactions

SAP GUI transactions
FBN1, OBA7, FB60
IMG path
Financial Accounting → Financial Accounting Global Settings → Document → Document Types → Define Document Types; Document Number Ranges

Prerequisites

  • Customizing authorization for document control and a customizing transport request; authorization to maintain number ranges.
  • An approved reason for a new document type and a free two-character key and number interval.
  • If document splitting is active, the business transaction and variant the new type belongs to.

Configuration workflow

From number interval to a numbered FI document

All steps visible. Play or advance one stage at a time.

From number interval to a numbered FI documentNumber range (FBN1): Per company code and year → Document type (OBA7): Number range, reversal type → Allowed account types: For example K and S only → Splitting classification: Business transaction and variant → Posting (FB60): Document type chosen in the header. If it works: Number from the new interval, Only allowed lines accepted. If it fails: No number range for the year, Check FBN1 for company code and year1Number range (FBN1)Per company code and year2Document type (OBA7)Number range, reversal type3Allowed account typesFor example K and S only4Splitting classificationBusiness transaction and variant5Posting (FB60)Document type chosen in the headerWORKSNumber from the newintervalOnly allowed linesacceptedFAILSNo number range forthe yearCheck FBN1 for companycode and year
The document type is client-wide; the number interval is needed in every company code. ERPClimb original instructional diagram · not a live SAP screenshot.

Hands-on implementation — step by step

Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.

0/6 completed
  1. 1

    FBN1 → Change Intervals

    Enter the company code and add a new interval. Choose a two-character number, the validity year and a from and to number that does not overlap. Leave External unticked for internal numbering.

    FBN1 → Change IntervalsERPClimb · illustrative screen
    Company code
    ZD10
    Number range / To Year
    91 / 9999 (hypothetical)
    From / To number
    9100000000 / 9199999999
    External
    Not set

    Expected result: The interval is saved with current number 0.

    Why this matters: Number ranges are defined per company code and must not overlap.

  2. 2

    FBN1 → decide yearly or continuous numbering

    Decide whether numbering restarts each fiscal year. Use To Year 9999 for continuous numbering, or create one interval per fiscal year for a yearly restart.

    FBN1 → decide yearly or continuous numberingERPClimb · illustrative screen
    Continuous
    To Year 9999
    Yearly
    One interval per fiscal year, created before the year starts

    Expected result: The numbering method is documented and the intervals match it.

    Why this matters: Yearly intervals must exist before the first posting of the new fiscal year.

  3. 3

    OBA7 → New Entries: properties

    Create the document type with a two-character key. Assign the number range, a reversal document type and, if required, an authorization group.

    OBA7 → New Entries: propertiesERPClimb · illustrative screen
    Document type
    ZT (hypothetical)
    Number range
    91
    Reverse document type
    As agreed
    Authorization group
    Empty or agreed group

    Expected result: The document type is saved with its number range.

    Why this matters: The document type decides the number range and how a reversal is posted.

  4. 4

    OBA7 → account types and control data

    Select only the account types that the business case needs and set the header fields that must be entered.

    OBA7 → account types and control dataERPClimb · illustrative screen
    Account types allowed
    Supplier (K) and G/L account (S)
    Reference number
    Required during document entry
    Customer (D), Assets (A), Material (M)
    Not selected

    Expected result: The type accepts only supplier and G/L lines and requires a reference.

    Why this matters: Limiting account types stops users from misusing the type for other postings.

  5. 5

    Document Splitting → Classify Document Types

    If document splitting is active, open the classification and assign the business transaction and variant to the new type.

    Document Splitting → Classify Document TypesERPClimb · illustrative screen
    Document type
    ZT
    Business transaction
    0300 (Vendor invoice)
    Variant
    0001 (Standard)

    Expected result: The document type is classified once.

    Why this matters: Splitting needs to know which rule set applies to the document type.

  6. 6

    FB60 → test posting

    Post a supplier invoice in the development client and change the document type to the new one. Then try to add a customer line.

    FB60 → test postingERPClimb · illustrative screen
    Company code
    ZD10
    Document type
    ZT
    Reference
    Supplier invoice number (hypothetical)

    Expected result: The invoice posts with a number in the new interval; the customer line is rejected.

    Why this matters: Both results together prove the number range and the account type restriction.

Project acceptance checklist

Use this checklist to prepare evidence for your project lead.

0 of 4 checks marked. This does not certify the SAP configuration.

Validate your configuration

  • A test invoice posted with the new document type gets a number from the new interval.
  • A line with an account type that is not allowed for the document type is rejected.

Common errors and what to check

  • posting fails because the number range is missing for the year.

    Check: The interval was created for another fiscal year or company code, or the To Year is in the past.

  • the interval cannot be saved.

    Check: It overlaps an existing interval of the company code.

  • documents with the new type fail in splitting.

    Check: The document type is not classified for document splitting, or is classified with the wrong business transaction.

  • the new type works in development but not in quality assurance.

    Check: Number range intervals were not created there; they are not part of the normal customizing transport.

More in the SAP Library

Need help with a configuration error? Open ERPClimb Copilot.

Technical references & further reading