Journal Entries, Document Types and Posting Keys
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
Every business event that changes the books, such as paying a supplier or booking a month-end correction, ends as one record that the accountants call a journal entry. SAP stores that record as an accounting document, gives it a number, and keeps it. A newcomer meets three small codes on every entry: a two-letter document type that says what kind of event it is, a two-digit posting key that says which kind of account a line goes to and on which side, and a field status group that says which boxes on the line you must fill in. This page explains what an accounting document is, what each of the three codes controls, how an unfinished entry can be parked or held, and which transactions and apps enter a journal entry. It is written for SAP S/4HANA 2025 FPS02 (on premise and Private Edition) and SAP S/4HANA Cloud Public Edition 2608. The document concept applies to both. The document type and posting key tables and the SAP GUI transaction codes (FB50, F-02, FB01, FBV1) were read in the on-premise help, and the Fiori apps (F0718, F0717A) in both editions. Each fact below says which edition it was read in.
Before you read
-
Accounting Basics: debit, credit and why every journal entry balances.
-
Organizational Structures: what a company code such as
EX01is, because every document belongs to one company code. -
Ledgers, Currencies and Exchange Rates: the ledgers
0Land2Land the currency types that the worked example fills.
Key terms
-
Accounting document: the stored record of one posting, with a header and at least two line items.
-
Journal entry: the accounting document seen from the accountant’s side, one posting with equal debits and credits.
-
Document principle: the rule that every posting leaves a numbered document behind instead of changing a balance directly.
-
Document header: the part of a document with the data that holds for the whole document, such as the dates and the document type.
-
Line item: one line of a document, with an account, an amount and a debit or credit side.
-
Document type: a two-character key in the header that classifies the document, limits the account types it may post to and selects its number range.
-
Posting key: a two-digit key on each line that fixes the account type, the debit or credit side and the layout of the entry screen.
-
Field status group: a setting on a G/L account that makes each field of a line hidden, required or optional.
-
Parked document: a saved, incomplete document that already has a number but changes no balance.
-
Held document: a temporarily saved document that has no document number and changes no balance.
What an accounting document is
Think of the paper voucher in an old accounting office: every payment or invoice got a voucher, the voucher got a running number, and the clerk filed it under that number. Nothing was changed on the ledger page without a voucher behind it. SAP keeps the same discipline in software. A posting never edits a balance directly. It creates a document, and the balances are the sum of the documents. This is sometimes called the document principle. SAP’s help states that each document is given a number that uniquely identifies it within a fiscal year in a company code, so the three together (company code, document number, fiscal year) name one document.
A journal entry in SAP’s wording is a record of a business transaction in Financial Accounting. It can represent an original document such as a receipt, an invoice or a bank statement, and the term also covers sample documents, parked documents and recurring entry documents. A journal entry has two parts.
| Part | What it holds |
|---|---|
Header |
Data that applies to the entire entry: the document date, the posting date and the controlling information, among it the document type (called the journal entry type in the Public Edition wording) |
Line items |
At least two lines. Each has an account number, an amount with its debit or credit side and further details of the posting; it can also carry additional account assignments such as profit center or cost center, and an explanatory text |
An entry can be triggered from outside Finance, for example when a billing document in Sales passes its journal entry to Financial Accounting, or you can create it by hand in General Ledger Accounting. For a manual entry SAP lists the basic data you must give: the journal entry date, the posting date, the document type, the posting key, the account number and the amounts.
After the entry step and before the record reaches the Universal Journal, Financial Accounting can enrich it with ledger-specific information: other ledgers for other accounting principles, other currencies, and generated lines such as clearing items or the lines of document splitting. So two views of the same entry exist. The entry view shows what the user typed, plus data of the business transaction such as payment terms. The ledger view (also called the G/L reporting view) shows the complete stored lines, with the segment, for instance. Which lines you see in a transaction or app depends on the view. The Universal Journal itself is the topic of Finance Overview.
To correct a posted document you do not edit it: the Manage Journal Entries app offers reversal, and SAP’s help adds that a reversal needs a document type with internal number assignment, because the system must number the reverse document itself.
A posting from entry to storage
The flow below is the path of one manual entry. The checks and the choice between post, park and hold are explained in the sections that follow.
Document types
A document type is a two-character key in the header. SAP’s help gives it four jobs.
-
It tells business transactions apart. The type is shown on every line, so in a list of line items you can see at once whether a line comes from a vendor invoice or a manual G/L posting, and you can use the type for evaluation.
-
It limits the account types. The type decides which account types (customer, vendor, G/L) the document may post to.
-
It selects the number range. Each type has a number range, and the range holds the numbers of that type’s documents. Original documents of one range are meant to be stored together, so the type also controls how paper is filed.
-
It switches on the vendor net procedure, in which the discount and the net amount are calculated and posted when the vendor invoice is posted.
Document types are defined at client level, which means every company code of the client can use them. The system usually proposes the right type when a business transaction is entered. For a few transactions, such as clearing, you define the types that the automatic postings need.
The standard document types
The table lists the types SAP shows as the most important ones in the on-premise help. The last column says which account types the help states for the type.
| Type | Description in SAP’s table | Account types |
|---|---|---|
|
General G/L accounts |
G/L accounts (the name of the type; the help gives no further statement) |
|
General document |
All accounts: the help says AB allows posting to all accounts and every other type restricts the account types |
|
Vendor invoice |
Vendor, G/L (a vendor invoice needs a vendor line) |
|
Vendor credit memo |
Vendor, G/L |
|
Vendor net invoice and credit memo |
Vendor, G/L; used with the vendor net procedure |
|
Vendor payment |
Vendor, G/L |
|
Customer invoice |
Customer, G/L |
|
Customer credit memo |
Customer, G/L (SAP’s posting key example states that |
|
Customer payment |
Customer, G/L |
|
CO posting |
Postings that come from Controlling |
The "Account types" column for the types other than AB and SA states what each type is built for, as an
orientation. SAP’s help says only that the standard types are already restricted to specific account types and that you
can change them. Open the document type table in your own system to read the exact setting. Your own system can also
hold more types: SAP states that you can use the delivered types, change them or define your own.
Two further types come up often in books and projects. The Okungbowa book on Financial Accounting configuration lists
AA for an asset posting and AF for asset depreciation, but the on-premise table above does not show them, so treat
them as typical names of the asset area that you confirm in your own system.
Document types and ledgers
For the ledgers of the running example (leading ledger 0L, non-leading ledger 2L) the help adds a recommendation:
to keep document numbers without gaps in the leading and the non-leading ledgers, define a document type with its own
number range for valuation postings to the leading ledger, use it for the valuation postings to the non-leading ledgers
as well, and give it a distinct number range for the non-leading postings. The help also says that for the leading ledger
the document in the entry view corresponds to the document in the ledger view, so no separate document types are
needed there, while a non-leading ledger needs its own types only in two cases: when it is the representative ledger of
a ledger group (entry view), and when its fiscal year variant differs from the one of the leading ledger (ledger view).
Number assignment
A document number is assigned in one of two ways, both set on the number range of the type. With internal assignment the system allocates the next consecutive number, and the clerk copies it onto the paper original. With external assignment the user types the number of the original document, and the system refuses a number that is already taken. SAP recommends internal assignment for documents in the ledger view. Every document type with external assignment needs a reverse document type with internal assignment, because a reversal document gets its number from the system. If none is named, the system reverses with the type of the original document when that type uses internal assignment.
The Public Edition wording
In SAP S/4HANA Cloud Public Edition the same key is called the journal entry type. The help defines it with the same four
functions: it distinguishes business transactions, controls the account types, assigns the document numbers through a
number range and applies the supplier net procedure. Read "supplier" for "vendor" and "journal entry type" for
"document type". The read-only CDS view I_AccountingDocumentType lists the defined types with their number range,
authorization group, exchange rate type and allowed account types.
Posting keys
The document type works on the whole document. The posting key works on one line. It is a two-character numerical key that, together with the account number, controls the posting at line item level. SAP’s help says the posting key determines the account type, the debit or credit posting, and the layout of the entry screens. Posting keys are defined at client level, so they apply to all company codes. A posting key therefore does three things at once: it decides which account type the line goes to, which side of the account it is on, and which fields the screen shows for the line.
| Key | Description in SAP’s table | Side and account type |
|---|---|---|
|
G/L account debit posting |
Debit, G/L account |
|
G/L account credit posting |
Credit, G/L account |
|
Customer invoices |
Debit, customer (follows from the accounting rule that an invoice raises a receivable) |
|
Customer credit memos |
Credit, customer |
|
Vendor invoices |
Credit, vendor (SAP’s asset acquisition example lists key 31 as a credit to a vendor) |
|
Vendor credit memos |
Debit, vendor |
|
Vendor payments |
Debit, vendor |
The side shown for 01, 11, 21 and 25 is the accounting meaning of the description. SAP’s table gives only the
description, so confirm the side in the posting key definition of your system. Asset lines use other keys. In SAP’s
example of an asset acquisition posted together with a vendor invoice, the debit to the asset uses key 70 (account type
"Open Asset") and the credit to the technical clearing account uses key 75, so 70 and 75 are the asset pair, in
the same way that 40 and 50 are the G/L pair. SAP’s help also says there are keys for material accounts, and that you
can define your own keys, with the caution that a key you delete must not be in use.
How the document type and the posting key work together
The two codes check each other. SAP states it this way: the document type defines which account types can be posted to,
and the posting key defines an account type that you must post to. Its example: document type DG allows customer and
G/L accounts, and posting key 11 restricts the line to a customer account. SAP’s caution is to make sure the type and
the key match: a vendor invoice type KR with a customer posting key cannot work, because the key then asks for an account type that the
type does not allow.
Screen layout from the posting key
SAP offers three kinds of entry function. Standard functions enter invoices, credit memos and any transfer posting. Special functions have their own screens, for example for customer and vendor down payments. Fast entry functions serve postings you do often, such as vendor invoices. For the standard functions the posting key designs the screen: in each key you specify which fields appear, you can suppress fields that are not needed and you can make a field required.
Field status groups
The posting key and the account together decide which fields a line shows, and the field status makes each one hidden, required or optional. SAP names three statuses: hidden (suppressed), entry required (a required field) and ready for input (an optional field). Because many G/L accounts need the same fields, you define the statuses once for a group of accounts, the field status group, and put the key of the group in the master record of each G/L account. For example, the account for petty cash can ask for a text and hide the cost center field, while an expense account requires a cost center.
Four facts keep the idea straight.
-
A field status group belongs to a field status variant, not to a company code. In the standard system each company code has its own variant with the same name, and company codes that share one variant can work with identical groups.
-
The same definition screen serves two places, the G/L account master record and the posting key, and the system always shows all fields of the line item grouped into field groups, so you decide per group, not per field.
-
For customers and vendors you do not set the field status in their master records. You set it in the reconciliation accounts that feed the general ledger.
-
A setting only has an effect when the entry screen of the line contains the field. The payment term fields are not on a G/L line, so a G/L account’s field status for them does nothing.
In the Post General Journal Entries app the effect is visible: SAP states that the line item fields of the app can vary because they depend on the G/L account and its field status group, which you maintain in the Manage G/L Account Master Data app. Number ranges, field status variants and tolerance groups are set up in the Customizing of General Ledger Accounting, which the page Number Ranges, Field Status Variants and Tolerance Groups covers.
Park, hold or post
Posting is final: balances change and the document gets its number. Real work is interrupted, though. The invoice lacks a cost center, or a second person must approve. SAP offers two ways to save such an entry without posting it.
| Aspect | Park | Hold |
|---|---|---|
Document number |
Assigned, in the same way as when a document is created |
None; you enter a temporary document number so you can find it again |
Balances and figures |
Not updated: no transaction figures, asset values or control totals change |
Not updated; the data is not available for evaluation |
Checks and automatic postings |
None; no balance check and no automatic postings; you can display the balance in the document overview |
The entry need not be complete, but you need the header and at least one line item |
Typical use |
An incomplete entry that someone else will complete or release |
A personal draft after an interruption |
Parking is entered through the document parking transactions (the General Ledger parking function, plus the parking functions of accounts receivable and accounts payable) and ends with posting the parked document. Holding is a choice in the menu of the document overview screen (Document, Hold). In the Post General Journal Entries app the equivalent of a hold is saving the entry, and SAP states that held journal entries in that app expire 180 days after creation for data protection, so you must check the creation time and renew them if needed.
Transactions and Fiori apps
Journal entries are entered in two generations of tool. The SAP GUI transactions, shown on the left, are available in on-premise and Private Edition systems. The Fiori apps, on the right, are available in both editions. Both write the same documents.
| Tool | What SAP’s help says | Notes |
|---|---|---|
|
Lets you enter, park, hold and post G/L account documents (desktop only) |
SAP’s help calls the posting transaction behind it an Enjoy transaction |
|
SAP calls it the alternative standard transaction for posting G/L account documents |
The comparison table of the help lists F-02 and FB50 in one column |
|
Posts documents; the comparison table says it can post G/L entries and other journal entries, such as payables |
For a manual entry you give the document type and the posting key yourself |
|
Saves a document as a parked document, without posting it |
The parked document is posted later with |
|
Enter postings to G/L accounts manually or by uploading a local file; for example adjusting entries at period end, or transactions without a source document such as expenses paid with petty cash |
Postings can be made in all relevant ledgers of the accounts you are responsible for; the user selects the journal entry type |
|
Find, filter and group journal entries; create, copy, edit and reverse them; display parked documents; see related documents, change logs and reversal logs; display amounts in different ledgers and currencies |
Not an entry form for one posting but the entry point for managing postings |
The comparison table in SAP’s help (feature comparison for posting G/L journal entries) also lists what only some tools can do. The rows below restate, for the tools of this page, the rows of that table that matter for a newcomer.
| Feature | F0718 | FB01 | F-02 / FB50 | FBV1 / FV50 | Upload (F2548) |
|---|---|---|---|---|---|
Post G/L journal entries |
Yes |
Yes |
Yes |
Yes |
Yes |
Make manual postings |
Yes |
Yes |
Yes |
Yes |
Yes |
Upload a CSV or XLSX file |
Yes |
No |
No |
No |
Yes |
Add attachments and notes |
Yes |
No |
No |
No |
No |
Mass delete held journal entries |
Yes |
No |
No |
No |
No |
Select templates from Manage Journal Entry Templates |
Yes |
No |
No |
No |
No |
Among the tools of this table, only F0718 offers upload, attachments, mass deletion of held entries and templates together. The help itself is the better source for the other apps in the comparison, such as Upload General Journal Entries (F2548), Manage Journal Entry Templates (F3803) and the verify apps (F2547, F2728, F2729) that route a journal entry through an approval before it posts.
The F0718 app offers several helps that the table shows for no transaction. It can calculate taxes automatically, it can simulate the entry so that you see the accounts that will be posted to, including tax accounts, and after posting it opens Manage Journal Entries to show the final result. The app only finds G/L accounts that are not blocked for posting, not automatically posted and without a reconciliation type; an account that is missing in the search is usually one of these.
Reversal limits differ between the editions: SAP states that reversals of more than 200 items run as background jobs in the on-premise F0717A and more than 100 items in the Public Edition. In the Public Edition the GUI transaction codes of this page are not what the documentation uses; it describes the apps.
Sources: Feature Comparison for Posting G/L Journal Entries (SAP Help Portal, on premise), Enter G/L Account Document (SAP Help Portal, on premise), Post G/L Account Document (SAP Help Portal, on premise), Manage Journal Entries (New Version), F0717A (SAP Help Portal, on premise), Post General Journal Entries, F0718 (SAP Help Portal, Public Edition), Manage Journal Entries (New Version), F0717A (SAP Help Portal, Public Edition), Park Documents (SAP Help Portal, on premise), Holding Documents (SAP Help Portal, on premise)
Worked example: balanced entries for Example Trading Co.
Example Trading Co. keeps company code EX01 in euro (EUR), reports to a parent that consolidates in British pounds
(GBP), and writes ledgers 0L (leading) and 2L (local principle). All keys, numbers and rates are made up for the
example. The first entry is the supplier invoice of the currency page: USD 12,500 for IT services. The second is a manual
G/L entry for petty cash.
Entry 1: a vendor invoice, document type KR
The header, as the entry screen shows it, holds the data that applies to the whole entry.
| Header field | Value |
|---|---|
Company code |
|
Document type |
|
Document currency |
USD |
Fiscal year |
2026 |
Document number |
assigned by the system from the number range of |
The two lines are below. The exchange rates are the ones used on the currency page: USD to EUR 0.80 and USD to GBP 0.75,
both of exchange rate type M.
| Line | Key | Side | Account | USD (document) | EUR (company code) | GBP (group) |
|---|---|---|---|---|---|---|
1 |
|
Debit |
IT services expense (G/L account) |
12,500.00 |
10,000.00 |
9,375.00 |
2 |
|
Credit |
Supplier ABC (vendor line) |
12,500.00 |
10,000.00 |
9,375.00 |
Total debit |
12,500.00 |
10,000.00 |
9,375.00 |
|||
Total credit |
12,500.00 |
10,000.00 |
9,375.00 |
Check by hand: 12,500.00 × 0.80 = 10,000.00 and 12,500.00 × 0.75 = 9,375.00, so each currency column has one debit and one
credit of equal size. The document passes the rule that debits equal credits. The same two lines are written to 0L and
2L, because nothing in this invoice is valued differently by the two principles. The key 40 is the G/L debit key and
31 the vendor-invoice credit key; with KR the system will accept the vendor line.
Entry 2: a manual G/L posting, document type SA
A manual adjustment, such as an expense paid from the petty cash box, is the kind of entry that the Post General Journal Entries app is meant for. In a company code of euro, with a made-up EUR to GBP rate of 0.85:
| Line | Key | Side | Account | EUR | GBP |
|---|---|---|---|---|---|
1 |
|
Debit |
Office supplies expense |
240.00 |
204.00 |
2 |
|
Credit |
Petty cash |
240.00 |
204.00 |
Total debit |
240.00 |
204.00 |
|||
Total credit |
240.00 |
204.00 |
The debit equals the credit in both currencies, and 240.00 × 0.85 = 204.00. The account names are descriptive, since a real chart of accounts gives each account a number, and the field status groups of the two accounts decide which extra fields the lines ask for (for instance a cost center on the expense line).
The balance rule as a formula
Numbers first: in entry 1 the debit total of the euro column is 10,000.00 and the credit total is 10,000.00. In notation, a document is acceptable when the sum of its debit lines equals the sum of its credit lines in every currency:
where is the amount of line . The accounts shown here are chosen for the example. Entering and posting these two documents need an SAP system and were not run here; the arithmetic was checked by hand.
Which type and keys for which event
The table gives the document type and posting keys of some everyday events, for orientation. The side of each key is the accounting meaning explained above.
| Event | Type | Keys on the lines |
|---|---|---|
Manual G/L adjustment, such as petty cash |
|
|
Vendor invoice |
|
|
Vendor credit memo |
|
|
Vendor payment |
|
|
Customer invoice |
|
|
Customer credit memo |
|
|
The last two rows apply the descriptions of keys 01 and 11 in SAP’s table and the accounting rule that an invoice debits
the customer. The key of a customer payment is not in the table of the help, so it is not listed here.
Configuration paths
Document types and posting keys are Customizing, so they need an SAP system to open. The paths below are from the on-premise help. Requires an SAP system; not run here.
IMG: Financial Accounting > Financial Accounting Global Settings > Document > Document Types
IMG: Financial Accounting > Financial Accounting Global Settings > Document > Line Item > Controls > Define Posting Keys
IMG: Financial Accounting > Financial Accounting Global Settings > Document > Document Number Ranges
In the Public Edition the document types are maintained in the configuration activity Define Document Types (ID: 01522), which SAP’s help names in a task about accounting document types, and you open it with the search function of your configuration environment. This page found no Public Edition configuration for posting keys, so none is described here. Requires an SAP system; not run here.
Common errors and pitfalls
-
A document type and a posting key that do not fit. The type limits the account types and the key requires one, so a key whose account type the type does not allow cannot post. SAP’s help cautions to make sure the two match.
-
Deleting a document type or posting key that is in use. SAP warns to check first whether it is used in the system.
-
Reversing a document of an external number range. The reverse document needs a type with internal number assignment, so every externally numbered type needs a reverse type.
-
Expecting a parked document to change the balance. Parking changes no figure and runs no balance check, so a parked document that is out of balance is possible. Posting it is the step that checks.
-
Looking for a held document by its number. A held document has none, only the temporary number you gave it, and the held entries in the F0718 app expire after 180 days.
-
An account that cannot be found in F0718. The app leaves out accounts blocked for posting, accounts that are posted automatically and accounts with a reconciliation type.
-
Assuming the entry view and the ledger view show the same lines. The ledger view contains generated lines (for example from document splitting) that the entry view does not.
What older books show, and what has changed
The Okungbowa book on Financial Accounting configuration (2nd edition, 2023) has a chapter on document control with
document types, posting keys and number ranges. It matches SAP’s help in substance: a document type is a two-character
key defined at client level and controls account types and number ranges, and a posting key works on the line. It
describes the work as configuration in the SAP GUI, speaks of document types in "SAP R/3", and does not mention the
journal entry type of the Public Edition. It also lists AA and AF document types, which the on-premise list in the
help does not show. The Jotev book on configuring SAP S/4HANA Finance (3rd edition, 2025) is current: it names the Post General
Journal Entries app and the Manage Journal Entries (New Version) app, and mentions FB50 beside the app. For the Public Edition,
the help describes the apps and not the GUI transaction codes, which this page read only in the on-premise help.
Summary
-
Every posting creates an accounting document with a header and at least two lines. The company code, the document number and the fiscal year together identify it, and you correct it by reversal, not by editing.
-
The document type is a two-character key in the header. It classifies the document, limits the account types and selects the number range. The Public Edition calls it the journal entry type.
-
The posting key is a two-digit key on each line. It fixes the account type, the debit or credit side and the screen layout. The main keys are
40and50for G/L accounts,01and11for customers,31,21and25for vendors, and70and75for assets. -
The field status group of a G/L account makes each field hidden, required or optional.
-
Parking gives a number and changes no balance. Holding gives no number and changes no balance. Posting does both.
-
F0718 Post General Journal Entries replaces the entry transactions FB50, F-02 and FB01 in the Fiori launchpad, and F0717A Manage Journal Entries is where you find, copy and reverse the result.
-
A journal entry balances in every currency: in the example USD 12,500.00 becomes EUR 10,000.00 and GBP 9,375.00, on both sides.
Try it
To do this by hand, follow the guide Post Balanced Journal Entries in a Teaching Ledger: it posts balanced journal entries in a teaching ledger.
References
-
Defining the Field Status Group (SAP Help Portal, on premise)
-
Feature Comparison for Posting G/L Journal Entries (SAP Help Portal, on premise)
-
Post General Journal Entries, F0718 (SAP Help Portal, Public Edition)
-
Manage Journal Entries (New Version), F0717A (SAP Help Portal, on premise)
-
SAP S/4HANA Financial Accounting Configuration, 2nd edition (Apress, Springer Nature Link)