Analytics Catalog/SAP S/4HANA/General Ledger/GL Document Journal
Explore the catalogReportsModulesEnterprise modelCDS viewsExtraction
SAP S/4HANA · General Ledger (FI-GL)

GL Document Journal

Every document posted in a period — header and lines together, each one balanced — the document-centric audit listing (the old S_ALR_87012287). Built on the BKPF header and its ACDOCA lines.

Sample build of the GL Document Journal report — every document with its lines, each balanced, reconciled to the trial-balance control total, and rendered tool-neutral so it runs in Power BI, SAC, or Tableau.

GL Document Journal sample
period 04 / 2026 · balanced
Filters
Company code
1010
Posting period
04 · 2026
Document type
All
Posted by
All
1,284
Documents
48.60M
Total debits
48.60M
Total credits
6%
Manual
DocumentTypeDateAccountDebitCredit
4900012088SA28 Apr800000 · Revenue250,000
4900012088SA28 Apr113100 · Bank250,000
1900045123KR12 Apr211000 · Payables420,000
1900045123KR12 Apr500000 · COGS420,000
AI Analyst · active
reading

Every document posted in the period, header and lines together — each one balanced, debits equal credits. The document-centric view that auditors and statutory journals need.

flag

Document 4900012088 is a manual SA journal crediting Revenue 250K, posted by a user with no source document, on 28 Apr — three days before close. Manual postings straight to P&L at period-end are the first place auditors look.

root cause & next step

Isolate manual journals: document type SA with no AWTYP source link. Route the large or late ones to a controller before the period locks.

Illustrative data · reconciled to the trial-balance control total · runs on your warehouse. See it live →
BKPF · header+ACDOCA · lines────▶GL Document Journal

The report's query logic — generic SQL joining each document header to its lines, so every document prints with both sides. The same SQL becomes a dbt model in your warehouse.

How it interconnects: the header comes from I_JournalEntry (over BKPF) and the lines from I_GLAccountLineItem (over ACDOCA) — both released CDS views, never a compatibility view. The S/4HANA app equivalent is Manage Journal Entries (F0717).
SQL data set · genericized · parameterized · header joined to lines, every document balanced
Show / hide SQL
SELECT h.rbukrs                                  AS company_code,
       h.belnr                                   AS document_no,
       h.blart                                   AS document_type,
       h.budat                                   AS posting_date,
       h.usnam                                   AS posted_by,
       h.awtyp                                   AS source_type,    -- blank = manual
       l.docln                                   AS line_no,
       l.racct                                   AS gl_account,
       CASE WHEN l.drcrk = 'S' THEN l.hsl END    AS debit_lc,
       CASE WHEN l.drcrk = 'H' THEN l.hsl END    AS credit_lc
FROM   bkpf   h
JOIN   acdoca l ON l.rbukrs = h.rbukrs
               AND l.belnr  = h.belnr
               AND l.gjahr  = h.gjahr
WHERE  h.rbukrs = :P_COMPANY_CODE
  AND  h.gjahr  = :P_FISCAL_YEAR
  AND  h.budat  BETWEEN :P_FROM_DATE AND :P_TO_DATE
ORDER  BY h.belnr, l.docln;
:P_COMPANY_CODE :P_FISCAL_YEAR :P_FROM_DATE :P_TO_DATE
Never any customer schema. Dates are runtime parameters in production. Debit/credit split derives from DRCRK; every document balances — sum of debits equals sum of credits. For statutory journals, order by consecutive document number.

The data-warehouse model — one fact surrounded by conformed dimensions (what you slice by) and measures (what you aggregate), expressed as dbt so it migrates with you. Grain: one row per document line (document · line).

dim_gl_accountaccount · FS hierarchy dim_documenttype · user · source dim_company_codeledger · segment dim_dateposting · document fct_journal_linesfact · one row per document linedebit · credit · balanced
●— fact → dimension join
ElementTypeDefinition
dim_gl_accountdimensionAccount & financial-statement hierarchy (SKA1 / SKAT)
dim_documentdimensionDocument type, posting user, and source link (AWTYP)
dim_company_codedimensionCompany code & ledger context (RLDNR)
dim_datedimensionConformed calendar (posting & document date)
debitmeasureHSL where DRCRK = S — the debit side
creditmeasureHSL where DRCRK = H — the credit side
is_manualmeasureFlag — document has no AWTYP source link
Runs on your cloud warehouse — Snowflake, BigQuery, Redshift, or Synapse on AWS, Google Cloud, or Azure. Reconciled to the trial-balance control total — 0% variance by design. You own the code, the model, and the data.
How the data gets here: a SAP-compliant extract of ACDOCA — released CDS view via SLT, or Table/Table-CDC — never ODP-RFC (prohibited under SAP Note 3255746, blocked June 2026). See the extraction pattern & data flow →
See the complete model
How this report's fact and dimensions fit the full ACDOCA-centered picture, via conformed keys.
General Ledger data model → Enterprise model →

Every source object behind this report. Each linked object has its own page — with its fields and its real S/4HANA status, so you build on the right thing.

ObjectRoleKey fieldsS/4HANA status
I_JournalEntryReleased header view over BKPF — document type, dates, userreleasedReleased CDS view
I_GLAccountLineItemReleased line view over ACDOCA — the debit / credit linesreleasedReleased CDS view
BKPFAccounting document header — one header per document4 PKTransparent table
ACDOCAUniversal Journal line items — the document's lines6 PK · 360+Transparent table
Manage Journal EntriesThe S/4HANA app (F0717) — the document journal's successor — referenceappReconcile target
Key fields = the primary key plus the columns this report selects; S/4HANA status = whether the object is a live transparent table, a released CDS view, or a compatibility view over ACDOCA. The compat views are referenced by legacy joins but are never the extraction source — that's the point, not a gap.
Want this built & owned?
A reconciled, customer-owned document journal on ACDOCA, on your cloud — your team owns the code. Ten-day proof of concept.
Download the GL pack → Talk to us →