Sub topic 7
Posting Journal Entries Manually and Automatically
This chapter covers how a journal entry gets into the Universal Journal, whether a person keys it in or the system generates it. It assumes you know debits and credits, the company code and chart of accounts, the Universal Journal table ACDOCA, and ledgers and posting periods from earlier chapters. It also assumes you can navigate the SAP Fiori launchpad.
What a journal entry is in S/4HANA
A journal entry is one accounting document. It has a header and at least two line items. The header holds the company code, document type, posting date, document date, currency, and reference. Each line item holds a G/L account, an amount with a debit or credit sign, and account assignments such as cost center, profit center, or business partner.
The document is identified by company code, fiscal year, and document number (BUKRS, GJAHR, BELNR). In the Universal Journal, the lines are stored in ACDOCA. The older header table BKPF still exists, and the document number is shared across ledgers.
Two rules apply to every posting, manual or automatic:
- The document must balance. Debits equal credits in the transaction currency, and in each currency the system keeps in parallel (company code currency, and any additional currencies set up for the ledger).
- The posting date must fall in an open posting period for the company code and account type.
Manual posting
The Post General Journal Entries app
The standard Fiori app for manual postings is Post General Journal Entries (F0718). It replaces the older transaction FB50 for most uses, although classic transactions such as FB50 and FB01 remain available.
A typical manual posting follows these steps:
- Open the app and enter the company code, document date, posting date, and a header text.
- Choose the document type, for example
SAfor a G/L account document. - Add line items: G/L account, debit or credit indicator, amount, and account assignments.
- Check that the balance shown in the app is zero.
- Simulate if you want to see the resulting ledger lines, then post.
On success the system returns the document number. You can open it later in Display Line Items in General Ledger or Manage Journal Entries.
Manual posting scenarios
Manual journal entries are normally used for items that no business process generates:
- Corrections and reclassifications between accounts.
- Month-end adjustments that have no source document.
- Opening balances during migration.
- Accruals when you do not use an automated accrual engine.
Each of these carries audit risk because a person chose the accounts and amounts. Controls are covered below.
Parking, holding, and posting
Not every entry is posted right away. S/4HANA supports three states:
| State | Meaning | Effect on ledgers |
|---|---|---|
| Held | Saved by the user as a draft, with no checks | None |
| Parked | Saved as a document with a number, incomplete data allowed | None |
| Posted | Validated and written to the ledgers | Updates ACDOCA and balances |
A parked document can be completed by another user, which supports a preparer and approver split. Posting creates the final document and cannot be undone by deletion. A posted entry is corrected only by reversal.
Reversal
Posted documents are never changed or deleted. To correct a mistake, you reverse it. A reversal creates a new document with opposite signs and links it to the original. You supply a reversal reason and a posting date, which must fall in an open period. If the original period is closed, you can reverse into the current period.
Automatic posting
Most journal entries in a live system are not typed in. A business transaction in another component triggers them. Examples include a goods receipt, a vendor invoice, a customer billing document, a payment run, and a depreciation run.
The sending component calls the accounting interface with the data it has. The system then derives the accounts and checks the result before it writes lines to ACDOCA.
How accounts are determined
The sending process rarely names a G/L account directly. The system looks up the account from configuration. For materials management, it uses the following chain:
- The material's valuation class and the transaction type, such as goods receipt or invoice receipt, form a key.
- The key is looked up in account determination (transaction OBYC in configuration).
- The result is a G/L account in the chart of accounts of the company code.
Other areas have their own lookups. Customer and vendor postings use reconciliation accounts assigned in the business partner's accounting data. Sales billing uses the account determination procedure for revenue accounts. Asset postings use the asset class.
If a lookup finds no account, the posting stops with an error, and the originating document is not completed or is blocked in the accounting interface.
Validations, substitutions, and derivation
After account determination, other rules run on both manual and automatic postings:
- Validations check the entry and reject it if a rule fails. Example: a cost center is required on expense accounts.
- Substitutions change field values. Example: fill the profit center from the cost center.
- Derivation fills in values such as the segment or profit center from master data.
These rules apply regardless of the entry channel, which is why a failure may appear in a billing run or a goods receipt, not in the accounting app.
Flow of an automatic posting
Linking back to the source
An automatic journal entry keeps a reference to its origin. Fields such as the reference document type (AWTYP), reference document key (AWREF), and reference organizational unit identify the source, for example a billing document. This lets you drill from a ledger line to the business document and back. A manual entry has the reference type BKPFF, which marks it as an entry made directly in accounting.
Comparing the two channels
| Aspect | Manual | Automatic |
|---|---|---|
| Trigger | A user in a Fiori app | A logistics or finance process |
| Account choice | User selects | Determined by configuration |
| Volume | Low | High |
| Main risk | Wrong account, amount, or period | Missing or wrong configuration |
| Correction | Reversal and repost | Reverse the source document |
For an automatic posting, you generally reverse the source document, such as cancelling a billing document. That cancels the accounting entry too. Reversing only the journal entry can leave the subledger and the source document out of step.
Controls on manual entries
Because manual entries bypass business process checks, organizations add controls:
- Authorizations limit who may post to which company codes, accounts, and document types.
- Document types separate manual entries from system entries, so reviewers can filter on them.
- Four-eyes principle uses parking or journal entry verification so a second person approves before posting.
- Account blocks stop manual posting to reconciliation accounts. Direct postings to them would put the G/L out of step with the subledger.
The last point is a common error. Reconciliation accounts for customers, vendors, and assets are marked as such in the G/L account master. The system refuses a manual posting to them. Adjustments go through the subledger instead.
Checking what was posted
After a posting run, confirm it with a query. The following check lists documents in a company code whose signed amounts do not net to zero per ledger. It should return no rows for a single-currency company code. The values 1010 and 2025 are samples.
SELECT rldnr, rbukrs, gjahr, belnr,
SUM( hsl ) AS doc_balance
FROM acdoca
WHERE rbukrs = '1010'
AND gjahr = '2025'
GROUP BY rldnr, rbukrs, gjahr, belnr
HAVING SUM( hsl ) <> 0
INTO TABLE @DATA(lt_unbalanced).In production code, read released CDS views instead of the table.
Common errors
- Posting period closed. The posting date is outside the open interval. Fix the date or ask the period owner to open the period.
- No account determined. The automatic posting cannot find an account for the key. Check the valuation class and the account determination entry.
- Document does not balance. A line is missing or a currency amount is wrong. Check the balance in the app before posting.
- Manual posting to a reconciliation account. The system blocks it. Post through the subledger.
- Required field missing. A validation requires a cost center or profit center. Fill in the account assignment.
- Reversing only the journal entry. The source document still shows as open. Reverse the source document.
Exercises
Exercise
A billing document posted revenue to the wrong G/L account because of a configuration error. Why is it better to cancel the billing document than to reverse the journal entry alone, and what must you do before reposting?
Show answer
Cancelling the billing document reverses the accounting entry and also updates the source document and subledger status, so all three stay consistent. Reversing only the journal entry leaves the billing document showing as posted. Before reposting, correct the account determination configuration, then create the billing document again so it posts to the correct account.
Exercise
A user tries to post a manual entry to a customer reconciliation account and the system rejects it. What is the reason, and how should the adjustment be made?
Show answer
Reconciliation accounts are controlled by the subledger, and a direct posting would make the G/L balance differ from the sum of the customer items. The adjustment should be posted to the customer account (a subledger posting), which updates the reconciliation account automatically.