Sub topic 7
Posting Journal Entries Manually and Automatically
This chapter assumes you know debits and credits, the Universal Journal (ACDOCA), and how company codes, ledgers, and posting periods fit together from earlier chapters. It covers how a journal entry gets created, whether a person keys it in or another process generates it.
What a journal entry contains
A journal entry has a header and at least two line items. The header holds the company code, document date, posting date, document type, and currency. Each line holds a G/L account, a debit or credit indicator, an amount, and any account assignments the account requires, such as a cost center or profit center.
Every entry must balance to zero per ledger and currency before the system accepts it. On posting, the system assigns a document number and writes one row per line to ACDOCA.
Manual posting
Use the Fiori app Post General Journal Entries for manual entries. A typical flow:
- Enter the company code, document date, posting date, and a reference.
- Add line items with account, amount, and debit or credit sign.
- Add required assignments, such as a cost center on an expense line.
- Check the entry, then post it.
The system rejects a posting if the posting period is closed, the account is blocked, or a required field is missing.
Automatic posting
Most entries are never keyed in. A business transaction in a subledger or logistics module triggers the posting. Examples are a goods receipt, a vendor invoice, a billing document, and a depreciation run. The system derives the G/L accounts from configuration, so the user does not choose them.
| Aspect | Manual posting | Automatic posting |
|---|---|---|
| Trigger | A user enters lines | A business transaction or batch run |
| Account choice | User selects each account | Derived from account determination |
| Typical use | Corrections, accruals, reclassifications | Invoices, goods movements, payments, depreciation |
| Main risk | Keying errors | Wrong configuration affects many postings |
Correcting a posted entry
A posted entry cannot be edited or deleted. To correct it, reverse it with a reversal entry. A reversal posts the opposite signs, links to the original, and leaves both in the audit trail. Then post the corrected entry.
Checking the result
After posting, confirm that the entry balanced in each ledger. This query lists any entries whose signed amounts do not net to zero. It should return no rows for a consistent single-currency company code.
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).The company code and year are sample values. Production code would normally read released CDS views instead of the table.
Common errors
- Period closed. The posting date falls in a period that is not open for that account type.
- Missing account assignment. An expense account requires a cost center and none was entered.
- Editing instead of reversing. Users look for a change function. Use reversal and repost.
- Wrong posting date on a reversal. Reversing into a closed period fails. Choose an open posting date.
Exercise
A user posted an accrual to the wrong G/L account last month, and that period is now closed. How should it be corrected, and what check can confirm the books still balance afterward?
Show answer
Reverse the entry with a posting date in an open period, then post a new entry to the correct account. A posted entry cannot be edited, and a closed period rejects postings. Afterward, run the unbalanced-document query on ACDOCA grouped by ledger, company code, year, and document number with HAVING SUM( hsl ) <> 0. It should return no rows.