SAP Reference
FBL3N
Report S/4HANA status: ActiveG/L Account Line Item Display
What the badges mean
- S/4HANA status: Active
- Active and unchanged in S/4HANA.
- S/4HANA status: Deprecated
- Still readable today, but no longer SAP's strategic path — plan around it.
- S/4HANA status: Replaced
- Replaced by a new persistence in S/4HANA; the classic name may still answer reads (see read mechanism).
- S/4HANA status: Migrating to IBP
- Planning scope is moving from APO toward IBP.
- S/4HANA status: Active (StRM) · Replaced (EWM)
- Path-dependent: active with SAP Stock Room Management, replaced where EWM is the warehouse path.
- S/4HANA status: Replaced · Compat View
- Compatibility view: the classic table name is redirected to a view over the new persistence — see how the physical model moved.
- S/4HANA status: Active · Proxy View
- Proxy view: reads route through NSDM proxy/CDS views — see how the physical model moved.
- master
- Data class: what the table holds — master data, transaction documents, org structure, config, or texts (one row per language — see the quirks guide).
In field listings, K marks a primary-key field, and linked type codes in the Type column jump to the matching quirks-guide section.
Boilerplate SQL
Databricks SQLStarting point for querying the tables behind this transaction. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.
Query parameters
7 parameters not filled: <catalog>, <schema>, <MANDT>, <BUKRS>, <HKONT>, <DATE_FROM>, <DATE_TO>
-- ============================================================
-- T-Code : FBL3N G/L Account Line Item Display
-- Purpose: Display G/L account open + cleared line items with account-name enrichment
-- Grain : One row per G/L line item (BSIS open / BSAS cleared — unioned)
-- Tables : BSIS, BSAS, SKAT, T001, T003T
-- Notes : BSIS (open items) + BSAS (cleared items) are alternative indices on BSEG. Use UNION ALL to reproduce 'All items'. On S/4HANA, ACDOCA consolidates both — query it instead for new G/L.
-- ============================================================
SELECT
'OPEN' AS "Status",
-- Keys
i.MANDT AS "Client",
i.BUKRS AS "Company Code",
i.HKONT AS "G/L Account",
i.GJAHR AS "Fiscal Year",
i.BELNR AS "Document Number",
i.BUZEI AS "Line Item",
-- Descriptive text
gl.TXT50 AS "G/L Account Name",
cc.BUTXT AS "Company Code Name",
dt.LTEXT AS "Document Type Description",
-- Amounts + Currency (paired)
i.DMBTR AS "Amount in Local Currency",
i.WRBTR AS "Amount in Document Currency",
i.WAERS AS "Currency",
-- Dates
i.BUDAT AS "Posting Date",
i.BLDAT AS "Document Date",
i.AUGDT AS "Clearing Date",
-- Status / indicators
i.BLART AS "Document Type",
i.SHKZG AS "Debit/Credit Indicator",
i.AUGBL AS "Clearing Document",
-- Org fields
i.KOSTL AS "Cost Center",
i.AUFNR AS "Order Number",
i.PRCTR AS "Profit Center",
-- Assignment
i.ZUONR AS "Assignment",
i.XBLNR AS "Reference Number",
i.SGTXT AS "Item Text"
FROM bsis i
LEFT JOIN skat gl
ON gl.MANDT = i.MANDT
AND gl.SAKNR = i.HKONT
AND gl.SPRAS = 'E'
LEFT JOIN <catalog>.<schema>.t001 cc
ON cc.MANDT = i.MANDT
AND cc.BUKRS = i.BUKRS
LEFT JOIN t003t dt
ON dt.MANDT = i.MANDT
AND dt.BLART = i.BLART
AND dt.SPRAS = 'E'
WHERE i.MANDT = '<MANDT>'
AND i.BUKRS = '<BUKRS>'
AND i.HKONT = '<HKONT>'
UNION ALL
SELECT
'CLEARED' AS "Status",
c.MANDT, c.BUKRS, c.HKONT, c.GJAHR, c.BELNR, c.BUZEI,
gl.TXT50, cc.BUTXT, dt.LTEXT,
c.DMBTR, c.WRBTR, c.WAERS,
c.BUDAT, c.BLDAT, c.AUGDT,
c.BLART, c.SHKZG, c.AUGBL,
c.KOSTL, c.AUFNR, c.PRCTR,
c.ZUONR, c.XBLNR, c.SGTXT
FROM bsas c
LEFT JOIN skat gl
ON gl.MANDT = c.MANDT
AND gl.SAKNR = c.HKONT
AND gl.SPRAS = 'E'
LEFT JOIN <catalog>.<schema>.t001 cc
ON cc.MANDT = c.MANDT
AND cc.BUKRS = c.BUKRS
LEFT JOIN t003t dt
ON dt.MANDT = c.MANDT
AND dt.BLART = c.BLART
AND dt.SPRAS = 'E'
WHERE c.MANDT = '<MANDT>'
AND c.BUKRS = '<BUKRS>'
AND c.HKONT = '<HKONT>'
AND c.AUGDT BETWEEN '<DATE_FROM>' AND '<DATE_TO>'
ORDER BY "G/L Account", "Posting Date" DESC, "Document Number";Tables Used by This Transaction
No table mappings populated for this t-code yet.