GL_LEDGERS
Product: GLmasterOne row per ledger — currency, calendar, chart of accounts, and accounting convention; the ledger context business units and subledgers resolve to
Ledger SETS share this table: OBJECT_TYPE_CODE discriminates ledger vs ledger-set rows — filter it or ledger counts inflate. LEDGER_CATEGORY_CODE separates primary from secondary and reporting-currency ledgers.
What the badges mean
- Product: EGP
- Product: the Oracle product family that owns the object — the short code Oracle's Tables and Views documentation lists as the object owner. Fusion is SaaS, so this isn't a database schema; there's no SQL path to the tables at all (see the quirks guide).
- master
- Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or a documented view.
- BU-striped (ORG_ID)
- Rows are scoped to a business unit. The column is still named
ORG_ID, but in Fusion it means business unit, not the EBS operating unit — treat any migrated “operating unit” filter as suspect (see the quirks guide). - Per inventory org
- Rows are scoped to an inventory organization via
ORGANIZATION_ID— always pair it withINVENTORY_ITEM_IDon item-level joins (see the quirks guide). - Set / ledger / named-BU striped
- Some tables stripe by a named column instead of
ORG_ID: reference data set (SET_ID— see the quirks guide), ledger (LEDGER_IDon the GL journal tables), or a named business-unit column (PRC_BU_ID/REQ_BU_IDin procurement). The table page’s partition line names the column, and the generated SQL anchors on it — never treat these tables as unpartitioned. - Language-striped
- The table carries a
LANGUAGEcolumn (a _TL translation table or FND_LOOKUP_VALUES) — one row per language. Filter to oneLANGUAGEor a join multiplies rows. - Date-effective
- This is an
_Ftable — one row per entity per effectivity window, withEFFECTIVE_START_DATEandEFFECTIVE_END_DATEpart of the key. Join without a window filter and every fact multiplies by history (see the quirks guide). - View
- This is a documented convenience view, not a physical table. Extract through the BICC data store that fronts its base objects instead of assuming the view lands as-is.
Structural facts — how the table is partitioned, not a trap by itself
Join & extract hazards — verify before you rely on this
Extract access
The delivered surfaces that reach this table — the BICC extract data store (PVO) for bulk extraction and the OTBI subject areas for real-time queries. There is no SQL path to the SaaS database.
- FscmTopModelAM.FinExtractAM.GlBiccExtractAM.LedgerExtractPVO
Ledgers data store (ledger currency, calendar, period type, chart of accounts). In OTBI, ledgers surface as the Ledger dimension inside the General Ledger subject areas.
Oracle data-store documentation (opens in new tab)
Fields
14 fields · 1 key
14 fields.
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | LEDGER_ID | Surrogate key of the ledger — what business units and subledgers point at | NUMBER | Key |
| 2 | NAME | Ledger name (unique) | VARCHAR2 | |
| 3 | SHORT_NAME | Ledger short name (unique) | VARCHAR2 | |
| 4 | DESCRIPTION | Ledger description | VARCHAR2 | |
| 5 | OBJECT_TYPE_CODE | Ledger vs ledger-set discriminator — filter it or ledger counts inflate | VARCHAR2 | |
| 6 | LEDGER_CATEGORY_CODE | Primary, secondary, or reporting-currency ledger — filter to primary for most analytics | VARCHAR2 | |
| 7 | LE_LEDGER_TYPE_CODE | Legal vs management ledger | VARCHAR2 | |
| 8 | CURRENCY_CODE | The ledger currency | VARCHAR2 | |
| 9 | CHART_OF_ACCOUNTS_ID | The chart of accounts (accounting flexfield structure) the ledger posts against | NUMBER | |
| 10 | PERIOD_SET_NAME | The accounting calendar the ledger runs on | VARCHAR2 | |
| 11 | ACCOUNTED_PERIOD_TYPE | Which period type within the calendar the ledger accounts in | VARCHAR2 | |
| 12 | SLA_ACCOUNTING_METHOD_CODE | Subledger accounting method the ledger uses | VARCHAR2 | |
| 13 | COMPLETION_STATUS_CODE | Setup completion status of the ledger | VARCHAR2 | |
| 14 | RET_EARN_CODE_COMBINATION_ID | Retained earnings account — joins the code combinations table | NUMBER |
Field provenance: hand-curated. 1 key field.
Boilerplate SQL
Starting point for reading the BICC-landed copy of GL_LEDGERS on Databricks — real DATE columns need no conversion, and the org anchor and the LAST_UPDATE_DATE watermark (the column incremental BICC extracts key on) are already in place. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.
4 parameters not filled: <catalog>, <schema>, <LEDGER_ID>, <watermark>
-- ============================================================
-- Table : GL_LEDGERS — One row per ledger — currency, calendar, chart of accounts, and accounting convention; the ledger context business units and subledgers resolve to
-- Purpose: Column-selected read of GL_LEDGERS — auto-generated from field metadata
-- Grain : One row per LEDGER_ID
-- Notes : Auto-generated skeleton for Oracle Fusion Cloud data landed in your lakehouse by a BICC extract — there is no SQL path to the SaaS database. Column names follow Oracle's table documentation — if your landed data still carries PVO attribute headers, map names first; see quirks #pvo-drift. Dates are real DATE/TIMESTAMP columns — no conversion needed. WHO audit columns omitted (see the quirks guide); the optional LAST_UPDATE_DATE watermark filter supports incremental extracts.
-- ============================================================
SELECT
t.LEDGER_ID AS "Surrogate key of the ledger — what business units and subledgers point at",
t.NAME AS "Ledger name (unique)",
t.SHORT_NAME AS "Ledger short name (unique)",
t.DESCRIPTION AS "Ledger description",
t.OBJECT_TYPE_CODE AS "Ledger vs ledger-set discriminator — filter it or ledger counts inflate",
t.LEDGER_CATEGORY_CODE AS "Primary, secondary, or reporting-currency ledger — filter to primary for most analytics",
t.LE_LEDGER_TYPE_CODE AS "Legal vs management ledger",
t.CURRENCY_CODE AS "The ledger currency",
t.CHART_OF_ACCOUNTS_ID AS "The chart of accounts (accounting flexfield structure) the ledger posts against",
t.PERIOD_SET_NAME AS "The accounting calendar the ledger runs on",
t.ACCOUNTED_PERIOD_TYPE AS "Which period type within the calendar the ledger accounts in",
t.SLA_ACCOUNTING_METHOD_CODE AS "Subledger accounting method the ledger uses",
t.COMPLETION_STATUS_CODE AS "Setup completion status of the ledger",
t.RET_EARN_CODE_COMBINATION_ID AS "Retained earnings account — joins the code combinations table"
FROM <catalog>.<schema>.GL_LEDGERS t
WHERE
1 = 1 -- no automatic partition anchor on this table; the filters below are optional
-- AND t.LEDGER_ID = <LEDGER_ID>
-- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>' -- the column incremental BICC extracts key on
ORDER BY t.LEDGER_ID;Verified September 2026 · docs release 26C
Column names differ in BICC extracts — see PVO header drift.
Relationships
Diagram of 1-hop neighbors — join details below. FND lookup decode and translation edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON GL_CODE_COMBINATIONS.CHART_OF_ACCOUNTS_ID = GL_LEDGERS.CHART_OF_ACCOUNTS_IDON GL_LEDGERS.RET_EARN_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_IDON CST_COST_ORG_BOOKS.LEDGER_ID = GL_LEDGERS.LEDGER_IDON CST_COST_DISTRIBUTIONS.LEDGER_ID = GL_LEDGERS.LEDGER_IDON AP_INVOICES_ALL.SET_OF_BOOKS_ID = GL_LEDGERS.LEDGER_IDON GL_JE_HEADERS.LEDGER_ID = GL_LEDGERS.LEDGER_IDON GL_JE_LINES.LEDGER_ID = GL_LEDGERS.LEDGER_ID
More Foundation tables
- HR_ALL_ORGANIZATION_UNITS_FThe date-effective master list of every organization unit — business units, inventory orgs, departments, and legal-entity org rows all resolve their ids here, one row per org per effectivity window
- INV_ORG_PARAMETERSInventory organization parameters — one row per inventory org, holding the short org code, the item-master org it points to, its business unit and legal entity, and the org's locator/lot/serial control defaults; the org list every ORGANIZATION_ID resolves against
- FND_LOOKUP_VALUESThe generic lookup view — every seeded and user-defined code list (lookup type + code) with its meaning and description, one row per code per installed language; the decode target for coded columns across every module
- FUN_ALL_BUSINESS_UNITS_VThe delivered view that enumerates business units — the BU domain later waves' documents stripe on — with the legal entity, primary ledger, and default set each BU resolves to
- GL_CODE_COMBINATIONSEvery chart-of-accounts segment combination (CCID) stored once — the account string behind each SEGMENTn set; accounting distributions and journal lines reference accounts through CODE_COMBINATION_ID