Skip to content
EBS Reference

GL_CODE_COMBINATIONS

Schema: GLmaster

Every chart-of-accounts segment combination (CCID) stored once — the account string behind each SEGMENTn set; inventory accounting distributions and every journal line reference accounts through CODE_COMBINATION_ID

Identity
Module: FoundationNot org-partitioned
Notes

SEGMENT1–SEGMENT30 exist physically; which segments a chart uses — and what each means — is configuration, defined per chart of accounts (see quirks #flexfields). The catalog lists the first six.

What the badges mean
Schema: INV
Schema: the Oracle product schema that owns the table (INV, ONT, WSH, PO, BOM, WIP, MRP, MSC, AR, AP, GL, HR, APPLSYS) — tells you which product family the object belongs to, not who can query it.
master
Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or an APPS-schema view.

Structural facts — how the table is partitioned, not a trap by itself

OU-striped (ORG_ID)
Rows are scoped to an operating unit. A landed extract carries every operating unit’s rows — filter or join on ORG_ID, and don’t confuse it with ORGANIZATION_ID (see the quirks guide).
Per inventory org
Rows are scoped to an inventory organization (plant or warehouse) via ORGANIZATION_ID — a different partition from OU-striped tables (see the quirks guide).
Language-striped
The table carries a LANGUAGE column (a _TL translation table or FND_LOOKUP_VALUES) — one row per language. Filter to one LANGUAGE or a join multiplies rows (see the quirks guide).

Join & extract hazards — verify before you rely on this

View
This is an APPS-schema convenience view, not a physical table. Extract the base tables it joins instead — views can be slow at scale and aren't guaranteed stable across patches.
In field listings, the Key chip marks a primary-key field.

Fields

14 fields · 1 key

14 fields.

Table fields: position, field name, description, data type, and flags. 14 fields.
#FieldDescriptionTypeFlags
1CODE_COMBINATION_IDThe CCID — the surrogate key every accounting distribution and journal line carriesNUMBER
Primary-key field
2CHART_OF_ACCOUNTS_IDThe chart of accounts this combination belongs toNUMBER
3ACCOUNT_TYPEAsset, liability, equity, revenue, or expense — from the natural-account segmentVARCHAR2
4ENABLED_FLAGWhether the combination is activeVARCHAR2
5SUMMARY_FLAGWhether this is a summary (rollup) account rather than a detail accountVARCHAR2
6DETAIL_POSTING_ALLOWED_FLAGWhether journals may post to the combination directlyVARCHAR2
7START_DATE_ACTIVEEffectivity start dateDATE
8END_DATE_ACTIVEEffectivity end dateDATE
9SEGMENT1Accounting flexfield segment 1 — meaning depends on the chart's configurationVARCHAR2
10SEGMENT2Accounting flexfield segment 2VARCHAR2
11SEGMENT3Accounting flexfield segment 3VARCHAR2
12SEGMENT4Accounting flexfield segment 4VARCHAR2
13SEGMENT5Accounting flexfield segment 5VARCHAR2
14SEGMENT6Accounting flexfield segment 6 (SEGMENT7–30 exist physically; catalog shows the first six)VARCHAR2

Field provenance: hand-curated. 1 key field.

Boilerplate SQL

Starting point for reading GL_CODE_COMBINATIONS on Databricks — real DATE columns need no conversion, and the org anchor is already in place. The optional LAST_UPDATE_DATE watermark is included. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.

Query parameters

4 parameters not filled: <catalog>, <schema>, <CODE_COMBINATION_ID>, <watermark>

-- ============================================================
-- Table  : GL_CODE_COMBINATIONS — Every chart-of-accounts segment combination (CCID) stored once — the account string behind each SEGMENTn set; inventory accounting distributions and every journal line reference accounts through CODE_COMBINATION_ID
-- Purpose: Column-selected read of GL_CODE_COMBINATIONS — auto-generated from field metadata
-- Grain  : One row per CODE_COMBINATION_ID
-- Notes  : Auto-generated skeleton for Oracle EBS R12 data landed in your lakehouse. 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.CODE_COMBINATION_ID AS "The CCID — the surrogate key every accounting distribution and journal line carries",
  t.CHART_OF_ACCOUNTS_ID AS "The chart of accounts this combination belongs to",
  t.ACCOUNT_TYPE AS "Asset, liability, equity, revenue, or expense — from the natural-account segment",
  t.ENABLED_FLAG AS "Whether the combination is active",
  t.SUMMARY_FLAG AS "Whether this is a summary (rollup) account rather than a detail account",
  t.DETAIL_POSTING_ALLOWED_FLAG AS "Whether journals may post to the combination directly",
  t.START_DATE_ACTIVE AS "Effectivity start date",
  t.END_DATE_ACTIVE AS "Effectivity end date",
  t.SEGMENT1 AS "Accounting flexfield segment 1 — meaning depends on the chart's configuration",  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
  t.SEGMENT2 AS "Accounting flexfield segment 2",  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
  t.SEGMENT3 AS "Accounting flexfield segment 3",  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
  t.SEGMENT4 AS "Accounting flexfield segment 4",  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
  t.SEGMENT5 AS "Accounting flexfield segment 5",  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
  t.SEGMENT6 AS "Accounting flexfield segment 6 (SEGMENT7–30 exist physically; catalog shows the first six)"  -- flexfield segment: concatenation is configuration-defined — see quirks guide #flexfields
FROM <catalog>.<schema>.GL_CODE_COMBINATIONS t
WHERE
  1 = 1  -- no partition column on this table; the filters below are optional
  -- AND t.CODE_COMBINATION_ID = <CODE_COMBINATION_ID>
  -- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>'  -- WHO watermark, bulk-stamped by batch jobs; see quirks guide #who-columns
ORDER BY t.CODE_COMBINATION_ID;

Verified September 2026

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

  • GL_CODE_COMBINATIONSGL_LEDGERSforeign key · N:M
    ON GL_CODE_COMBINATIONS.CHART_OF_ACCOUNTS_ID = GL_LEDGERS.CHART_OF_ACCOUNTS_ID
  • MTL_TRANSACTION_ACCOUNTSGL_CODE_COMBINATIONSforeign key · N:1
    ON MTL_TRANSACTION_ACCOUNTS.REFERENCE_ACCOUNT = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • PO_DISTRIBUTIONS_ALLGL_CODE_COMBINATIONSforeign key · N:1
    ON PO_DISTRIBUTIONS_ALL.CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • BOM_RESOURCESGL_CODE_COMBINATIONSforeign key · N:1
    ON BOM_RESOURCES.ABSORPTION_ACCOUNT = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • AP_INVOICES_ALLGL_CODE_COMBINATIONSforeign key · N:1
    ON AP_INVOICES_ALL.ACCTS_PAY_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • AP_INVOICE_DISTRIBUTIONS_ALLGL_CODE_COMBINATIONSforeign key · N:1
    ON AP_INVOICE_DISTRIBUTIONS_ALL.DIST_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • GL_JE_LINESGL_CODE_COMBINATIONSforeign key · N:1
    ON GL_JE_LINES.CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID

Browse more Foundation tables

More Foundation tables

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Oracle. Oracle and Oracle E-Business Suite are registered trademarks of Oracle and/or its affiliates.