Skip to content
FAST SAP SOLUTIONS®Discuss a project

START HERE · NO PRIOR TOPIC KNOWLEDGE NEEDED

What it is. Why it matters.

A document type classifies an accounting document at header level. A posting key controls aspects of an individual line, including account type and debit or credit direction.

Completely new to SAP?

Manufacturers use SAP to connect work such as buying components, recording inventory, planning production, shipping equipment and accounting for costs. SAP S/4HANA is an enterprise resource planning system: it connects these activities through shared business data.

Financial Accounting records business events as accounting documents. An account groups relevant amounts; individual entries explain how the total arose.

A transaction code, or t-code, is a shortcut to a task in classic SAP GUI. Fiori apps provide another way to work. Names and screens depend on the product and release; you do not need a live system to learn the concepts in this guide.

Original editorial vector illustration for SAP document type versus posting key: Header rules and line-item rules
Original FSS editorial vector illustration. Conceptual artwork, not an SAP interface or customer-system evidence.
Scope and source-review notes

Scope and evidence

Source review by FAST SAP SOLUTIONS® editorial. This badge describes our editorial review; it does not represent SAP certification or independent endorsement.

SAP ERP and S/4HANA FI document types and posting-key concepts. Classic keys are examples; Fiori applications and released interfaces can derive keys from semantic inputs.

Reviewed relevant official SAP indexed documentation excerpts on 14 November 2026. Examples, identifiers, amounts and expected observations are illustrative; no customer SAP execution was performed. Transaction availability, labels and results depend on the installed release, deployment and local configuration.

A MANUFACTURING EXAMPLE

Read a component supplier invoice posting

Header rule versus line rule

Document header: Accounting document type. Line 1: Supplier account entry. Line 2: Expense account entry. Posting key scope: Individual line-item rules
What to notice: A document-level category does not replace the account-type and debit/credit rules of each line.Original annotated example with illustrative values. This is not an SAP screen or a result from a customer system.
Read the example values
Document header
Accounting document type
Line 1
Supplier account entry
Line 2
Expense account entry
Posting key scope
Individual line-item rules
Words you’ll meet in this guide
Posting
Recording a financial entry.
General ledger
The main collection of financial accounts.
Open item
An accounting entry still needing matching or settlement.
Company code
An organizational unit used for separate financial accounts.
Accounting document
A record of a financial entry with a header and individual account lines.
HANA
SAP’s database platform.
API
A defined interface through which programs exchange data or request actions.
FI
Financial Accounting: the SAP area for financial postings and reporting.
Preview the practical steps

SEE THE CONNECTION

See it in a simple example.

A small example to make the idea concrete.

Document header → Line-item rules → Accounting entry. Conceptual diagram for SAP document type versus posting key: Header rules and line-item rules.
Apply the idea: A plant's accounts-payable analyst needs to distinguish the header controls on a supplier invoice from the controls on each accounting line.An illustrative example, not a live SAP screen. The connections show how to think about the topic; they are not instructions to change a system.
  1. Read a component supplier invoice posting

    A plant's accounts-payable analyst needs to distinguish the header controls on a supplier invoice from the controls on each accounting line.

  2. Header classification and line behavior are different controls

    The document type classifies the whole accounting document and helps control permitted account types and number assignment.

  3. Read the document type as a document-level contract

    SAP describes the document type as a header key that distinguishes business transactions, controls which account types can be posted and connects to document numbering.

  4. Read posting keys line by line

    Posting keys translate account category and debit/credit behavior into the document’s internal line representation.

Reading map · FSS editorial. The sections below explain each part in detail.

Found this useful?

Share this guide with your network, or leave a like.

LinkedIn WhatsApp

Your like is saved in this browser.

Explore Knowledge Hub

Discuss Your SAP Project

Your enquiry is sent through this website and used only to respond to your request.