Skip to content
Fusion Reference

CST_COST_DISTRIBUTIONS

Product: CSTtransaction

Cost distribution headers — one per costed transaction event, carrying the cost org/book, item, event class, GL date, and accounting state ahead of subledger accounting

Module: Cost ManagementNot org-partitioned
Grain note

Distributions explode once per cost org-book — filter to the primary book (via the org-book association) or amounts double-count

Notes

Column-name trap: the cost org is spelled COST_ORGANIZATION_ID here, while every sibling table spells it COST_ORG_ID — same key, different name. No cost element at this level; the element grain is on the lines. ACCOUNTED_FLAG runs N → draft → final.

What the badges mean
master
Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or a documented view.
In field listings, K marks a primary-key field.

Header & line

CST_COST_DISTRIBUTIONS is the header for its lines in CST_COST_DISTRIBUTION_LINES.

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.ScmExtractAM.CstBiccExtractAM.CostDistributionsExtractPVO
    OTBI: Costing - Cost Accounting Real Time

    Cost Distributions (header) data store — keyed on DistributionId.

    Oracle data-store documentation →

Fields

14 fields · 1 key

Table fields: position, field name, description, data type, and flags. 14 fields.
#FieldDescriptionTypeFlags
1DISTRIBUTION_IDSurrogate key of the distribution headerNUMBER
Key
2COST_ORGANIZATION_IDThe cost org — spelled COST_ORGANIZATION_ID here, COST_ORG_ID everywhere elseNUMBER
3COST_BOOK_IDCost book — filter to the primary book or amounts double-countNUMBER
4INVENTORY_ITEM_IDItem on the transactionNUMBER
5TRANSACTION_IDThe costing transaction distributedNUMBER
6EVENT_CLASS_CODESubledger accounting event classVARCHAR2
7EVENT_TYPE_CODESubledger accounting event typeVARCHAR2
8COST_TRANSACTION_TYPEIssue, receipt, or adjustmentVARCHAR2
9GL_DATEAccounting dateDATE
Filter date
10BASE_CURRENCY_CODELegal entity base currencyVARCHAR2
11LEGAL_ENTITY_IDLegal entity of the cost orgNUMBER
12LEDGER_IDLedger of the org-bookNUMBER
13PERIOD_NAMECosted period (periodic average books)VARCHAR2
14ACCOUNTED_FLAGN, draft, or final accounting stateVARCHAR2

Field provenance: hand-curated. 1 key field.

Boilerplate SQL

Starting point for reading the BICC-landed copy of CST_COST_DISTRIBUTIONSon 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.

Query parameters
-- ============================================================
-- Table  : CST_COST_DISTRIBUTIONS — Cost distribution headers — one per costed transaction event, carrying the cost org/book, item, event class, GL date, and accounting state ahead of subledger accounting
-- Purpose: Column-selected read of CST_COST_DISTRIBUTIONS — auto-generated from field metadata
-- Grain  : One row per DISTRIBUTION_ID
-- Caution: Distributions explode once per cost org-book — filter to the primary book (via the org-book association) or amounts double-count
-- 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.DISTRIBUTION_ID AS "Surrogate key of the distribution header",
  t.COST_ORGANIZATION_ID AS "The cost org — spelled COST_ORGANIZATION_ID here, COST_ORG_ID everywhere else",
  t.COST_BOOK_ID AS "Cost book — filter to the primary book or amounts double-count",
  t.INVENTORY_ITEM_ID AS "Item on the transaction",
  t.TRANSACTION_ID AS "The costing transaction distributed",
  t.EVENT_CLASS_CODE AS "Subledger accounting event class",
  t.EVENT_TYPE_CODE AS "Subledger accounting event type",
  t.COST_TRANSACTION_TYPE AS "Issue, receipt, or adjustment",
  t.GL_DATE AS "Accounting date",
  t.BASE_CURRENCY_CODE AS "Legal entity base currency",
  t.LEGAL_ENTITY_ID AS "Legal entity of the cost org",
  t.LEDGER_ID AS "Ledger of the org-book",
  t.PERIOD_NAME AS "Costed period (periodic average books)",
  t.ACCOUNTED_FLAG AS "N, draft, or final accounting state"
FROM <catalog>.<schema>.CST_COST_DISTRIBUTIONS t
WHERE
  1 = 1  -- no partition column on this table; the filters below are optional
  -- AND t.DISTRIBUTION_ID = <DISTRIBUTION_ID>
  -- AND t.GL_DATE >= DATE '<DATE_FROM>'
  -- AND t.GL_DATE <= DATE '<DATE_TO>'
  -- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>'  -- the column incremental BICC extracts key on
ORDER BY t.DISTRIBUTION_ID;

6 parameters not filled: <catalog>, <schema>, <DISTRIBUTION_ID>, <DATE_FROM>, <DATE_TO>, <watermark>

Relationships

1-hop neighbors — click a table to navigate there. FND lookup decode and translation edges are highlighted; they’re the joins newcomers most often get wrong.

Join details

  • CST_COST_DISTRIBUTIONSCST_TRANSACTIONSforeign key · N:1
    ON CST_COST_DISTRIBUTIONS.TRANSACTION_ID = CST_TRANSACTIONS.TRANSACTION_ID
  • CST_COST_DISTRIBUTIONSCST_COST_ORG_BOOKSforeign key · N:1
    ON CST_COST_DISTRIBUTIONS.COST_ORGANIZATION_ID = CST_COST_ORG_BOOKS.COST_ORG_ID AND CST_COST_DISTRIBUTIONS.COST_BOOK_ID = CST_COST_ORG_BOOKS.COST_BOOK_ID
  • CST_COST_DISTRIBUTIONSGL_LEDGERSforeign key · N:1
    ON CST_COST_DISTRIBUTIONS.LEDGER_ID = GL_LEDGERS.LEDGER_ID
  • CST_COST_DISTRIBUTIONSCST_COST_DISTRIBUTION_LINESheader line · 1:N
    ON CST_COST_DISTRIBUTIONS.DISTRIBUTION_ID = CST_COST_DISTRIBUTION_LINES.DISTRIBUTION_ID

Browse more Cost Managementtables →

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 Fusion Cloud Applications are registered trademarks of Oracle and/or its affiliates.