SAP document types are two-character keys that classify accounting documents, control posting rules, and form a critical, auditable link between business transactions and the general ledger. AB, DR, DZ, KR, KZ, and SA are not just labels, they are governance controls that keep postings deterministic.
That’s why document types matter more than many teams expect. A finance team can automate forms, approvals, and journal entry creation, but if the underlying document type is wrong, the control path is wrong too. Auditors do not care that the entry was fast. They care that it landed in the right governed structure.
Table of Contents
- What Are SAP Document Types
- Why Document Types Are a Critical Financial Control
- Key Categories of SAP Document Types
- Quick Reference of Common Document Types
- Document Number Ranges and Their Role in Audits
- The Link Between Document Types and Automation Gaps
- How Loopfour Enforces Document-Level Controls
- Frequently Asked Questions About SAP Document Types
What Are SAP Document Types
SAP document types are two-character keys in the accounting document header that classify the transaction and control how the document posts. SAP says the document type applies to the entire document and is defined at the client level, so it functions as a cross-company control rather than a line-item field. That is why teams should treat it as part of the posting rule set, not just a label in the header. SAP FI/CO document type documentation
A document type does more than name a journal entry. It shapes which account categories can post, how the document is numbered, and how the record is interpreted later in review or audit. SAP’s standard guidance links document types to posting behavior and reporting logic, which is why finance teams should configure them as a control point rather than a convenience setting.
Practical rule: if your team can change a document type casually, your control design is already too loose.
The clean way to think about SAP document types is direct. They are the rule set behind the posting, and they help auditors understand why a transaction exists in the first place. That is why standard SAP documentation treats them as core finance configuration, not a cosmetic attribute.
For non-experts who need a broader accounting context, essential accounting definitions for non-experts is a useful companion reference. It helps separate control concepts from system-specific jargon.
Why Document Types Are a Critical Financial Control
SAP document types are a control layer because they constrain what can be posted, where it can be posted, and how it can be traced. SAP’s configuration guidance says each document type needs an assigned number range, may define a reverse document type, and can restrict postings to account categories such as assets, customers, suppliers, and G/L accounts. SAP document type configuration guidance

Three controls that matter most
Posting restrictions stop the wrong transaction from landing in the wrong place. A vendor invoice should not behave like a customer invoice, and SAP document type design is one of the ways that rule gets enforced. That is basic segregation of duties in system form.
Number ranges make the transaction sequence inspectable. When document types are mapped to distinct ranges, the audit trail becomes easier to test for completeness and duplication. Central Michigan University’s published SAP table shows fixed ranges for DR, DZ, KR, and KZ, which illustrates the deterministic structure many organizations use. Central Michigan University SAP document types and numbers
Reverse document types make corrections traceable. Instead of deleting history or creating a side channel for fixes, the reversal points back to an approved document path. That matters because your auditors want the record to hold up, not just the result.
If your team wants a control explanation that a broader finance audience can understand, the linked overview on document-level accounting control helps frame why policy enforcement needs to happen inside the workflow, not around it.
SAP document types do not just classify a posting, they shape the evidence your controls produce.
Key Categories of SAP Document Types
SAP document types cluster around business process categories, not around one universal codebook. That is why AB, DR, KR, DZ, KZ, AA, AF, and AD each signal different transaction logic across the finance stack. SAP S/4HANA Cloud explicitly lists document types for asset postings, depreciation, and accruals or deferrals, which shows that the design reaches beyond AP and AR. SAP S/4HANA Cloud document type documentation
Business-process view
G/L document types cover general journal activity. AB and SA are the common reference points here, with AB used for a general journal entry and SA for a G/L account document. These are the types finance teams lean on for recurring accruals, reclasses, and month-end cleanup.
Accounts payable document types handle supplier-facing postings. KR is the standard vendor invoice code and KZ is the vendor payment code. These matter because AP workflows need clear separation between invoice receipt and cash disbursement.
Accounts receivable document types handle customer-facing postings. DR is the customer invoice code and DZ is the customer payment code. Keeping those distinct helps downstream reconciliation stay deterministic.
Asset accounting document types extend the same logic into capital assets and closing entries. AA covers asset posting, AF covers depreciation postings, and AD covers accruals or deferrals in the S/4HANA Cloud documentation. That matters because the same control model applies across operational finance, not just the subledgers.
The category tells you the process. The document type tells SAP which control path to enforce.
Quick Reference of Common Document Types
Use this table as a fast lookup, not as a reason to treat every code as interchangeable. SAP document types matter because they give each posting a fixed control path, so the same code carries the same meaning across teams, entities, and audits. When finance uses those codes consistently, reporting, reconciliation, and control testing become more deterministic.
The table below is useful for day-to-day reference, but it only works if document type usage stays disciplined inside the system design. For a close look at how structured posting controls support an audit trail for automated finance, see audit trail controls in automated finance.
| Document Type | Description | Typical Use Case |
|---|---|---|
| AB | General document | General journal entries and miscellaneous postings |
| SA | G/L account document | General ledger postings and accounting adjustments |
| DR | Customer invoice | Accounts receivable billing to customers |
| DZ | Customer payment | Customer cash receipts and clearing |
| KR | Vendor invoice | Supplier invoices in accounts payable |
| KZ | Vendor payment | Supplier disbursements and payment clearing |
| AA | Asset posting | Asset acquisitions or capital movements |
| AF | Depreciation postings | Periodic asset depreciation entries |
| AD | Accruals and deferrals | Closing entries and timing adjustments |
For tax-sensitive workflows, separate identifier checks still matter. The discipline is the same one described in TaxID for tax ID validation, because finance controls work best when identification, classification, and posting all follow the same deterministic logic.
Document Number Ranges and Their Role in Audits
Document number ranges turn SAP document types into traceable evidence. SAP configuration ties each document type to a number range, so every posting follows a sequence that auditors can test from the first document to the last. SAP document type configuration guidance

That sequencing matters because it gives reviewers a clean way to test completeness. If each KR invoice sits in its own range, an auditor can compare posted documents with the expected sequence and spot missing or duplicated entries without relying on inboxes, spreadsheets, or informal follow-up. For finance teams, that is a stronger control because the evidence lives in the system, not in side conversations.
Why sequence matters
Sequence gives three practical benefits. It makes posting history easier to reconstruct. It reduces the risk that different process streams collide in the same namespace. It also supports exception review without guesswork.
The same logic applies to other identifier checks in regulated processes. Clean identifiers create deterministic outcomes, and deterministic outcomes are easier to audit. For a related control parallel, TaxID for tax ID validation shows why structured identifiers matter when a process has to stand up to review.
Sequence also helps when you need to explain a posting path after the fact. A controller can trace what happened, what did not happen, and where a gap appeared. That is the level of evidence auditors expect when a process is automated or partially automated.
The practical point is straightforward. Document type plus number range gives you evidence your team can defend.
For teams that need controls to survive testing, automated finance audit trails is a useful reference for designing records that remain inspectable after the transaction is posted.
The Link Between Document Types and Automation Gaps
Automation fails fast when it ignores SAP document types. A script that posts the right amount but the wrong type can still violate posting rules, land in the wrong number range, or create a reversal path that nobody can audit cleanly.

Where the gaps show up
Manual workflows often rely on tribal knowledge. One analyst knows that a vendor invoice should be KR, another analyst uses a local shortcut, and a third person fixes the issue later in a spreadsheet. That kind of process might keep operations moving, but it doesn’t create durable control evidence.
Brittle automation is not much better. A screen-scraping script or a shallow API wrapper can move data into SAP, but unless it respects the document type rules, it can inadvertently route transactions into the wrong control path. The result is clean-looking output with messy governance underneath.
A common pain point in SAP itself is document type sprawl. Experienced users often have to check tables like BKPF and RBKP to see whether a custom type is even in use, because standard tooling for this is weak. That makes consolidation harder and downstream integrations more fragile. SAP Community discussion on unused document types
If the automation ignores the document type, the automation is already out of policy.
That is the primary failure mode. The transaction may complete, but the control is compromised. Finance teams usually discover the problem when reconciliation, exception handling, or audit support gets slower, not when the script first runs.
How Loopfour Enforces Document-Level Controls
Document type sprawl does not fix itself. Teams inherit local variants, custom Z-codes, and brittle scripts, then spend months trying to remember which posting path still matters. Loopfour, the deterministic finance workflow automation platform, keeps the workflow inside governed rules instead of around them.

Deterministic control instead of brittle handling
A brittle script does one thing, it moves data. Loopfour does the harder thing instead, it encodes the document-level logic so the posting path stays auditable and predefined. That matters when a process can land as KR, DR, SA, or an asset-related type, because the control outcome changes with the code.
A brittle AI agent guesses from context. Loopfour does not guess. It executes the workflow you define, preserves the evidence of each step, and makes the control path inspectable later. That is the difference between automation that looks modern and automation that survives audit scrutiny.
The governance challenge gets sharper when you read about finance team use cases and compare them with SAP’s own complaint about unused document types. The pattern is the same. If the system cannot tell you which document types still matter, your automation will eventually carry legacy noise into new processes.
Practical rule: automate around SAP document type rules, not around the screen layout.
That’s the standard worth defending. It reduces exception drift, supports cleaner approvals, and gives your auditors a coherent trail from policy to posting.
Frequently Asked Questions About SAP Document Types
Can SAP document types be customized?
Yes. SAP supports standard document types like AB, DR, DZ, KR, KZ, and SA, and organizations also create custom Z codes when they need local process distinctions. The risk is sprawl, because every custom type adds another control path to maintain and test.
Can a posted document have its document type changed later?
No, not in the normal operating sense. A posted document’s type is part of the header-level classification, so the safer control pattern is reversal and reposting, not editing history. SAP’s design supports reversal document types for exactly that reason.
How do SAP document types affect reporting?
SAP document types affect reporting because they classify the transaction at the header level and influence how the document is evaluated. That means your reports can separate invoices, payments, accruals, depreciation, and general ledger entries more reliably when the types are used consistently.
What is the difference between a document type and a posting key?
A document type classifies the whole accounting document. A posting key controls the line item behavior inside that document. In practice, the document type answers “what kind of transaction is this,” while the posting key helps answer “how does this line post.”
Why do number ranges matter so much?
Number ranges matter because they make the posting sequence inspectable. When document types are tied to distinct ranges, auditors can test completeness and spot duplicates more easily, which is much harder in loosely controlled manual workflows.
If your team is cleaning up SAP postings, consolidating document types, or automating finance workflows that need to stand up in audit, visit Loopfour and see how deterministic workflow design can keep your controls intact while your operations move faster.