Search Results cst_margin_summary
Overview
The CST_MARGIN_SUMMARY table resides in the BOM (Bills of Material) schema and serves as a margin analysis summary table for reporting purposes within Oracle E-Business Suite releases 12.1.1 and 12.2.2. Its primary function is to consolidate order, invoice, cost of goods sold (COGS), and margin data into a denormalized reporting structure that supports profitability analysis across sales orders, invoices, and returns. The table is classified as VALID in the ETRM metadata and contains 76 documented columns on the 12.2.2 schema.
From a Data Vault modeling perspective, the metadata heuristic classifies this table as standalone. This suggests the table is best modeled as an independent reporting construct rather than as a traditional hub, link, or satellite. Its structure combines descriptive attributes (customer names, period information, geography) with transactional measures (quantities, amounts, margin), placing it closer in nature to a derived reporting table or a wide satellite spanning multiple business processes. Because it stores no natural business key that is unique across contexts in the documented metadata, it should not be treated as a canonical hub.
Key Information Stored
The table captures a rich set of margin-relevant attributes. Among the most significant columns are:
- LEGAL_ENTITY_ID – Identifies the legal entity under which the transaction was recorded; a foreign key to FV_LEGAL_ENTITIES.
- HEADER_ID, LINE_ID, LINE_NUMBER – Reference the originating sales order header and line.
- CUSTOMER_TRX_ID, CUSTOMER_TRX_LINE_ID, INVOICED_AMOUNT – Link to the invoice and hold the invoiced value.
- COGS_AMOUNT – The cost of goods sold associated with the transaction.
- MARGIN, MARGIN_PCT – Pre-calculated margin amount and percentage, the core reporting metrics.
- INVENTORY_ITEM_ID, ORGANIZATION_ID – Identify the item and inventory organization.
- ORDER_TYPE_ID – Foreign key to SO_ORDER_TYPES_115_ALL, indicating the order classification.
- RMA_LINE_ID, RMA_NUMBER, RMA_HEADER_ID – Support return-related margin analysis; RMA_LINE_ID references JAI_OM_OE_RMA_LINES.
- PERIOD_NAME_MONTH, PERIOD_NAME_QTR, PERIOD_NAME_YEAR – Enable time-period aggregation without joins to GL periods.
- AREA_CODE, COUNTRY_CODE, REGION_CODE – Provide geographic roll-up dimensions.
- BUILD_ID and SOURCE – Identify the build run and data source that populated the row.
No dedicated surrogate primary key is documented; HEADER_ID or LINE_ID combinations act as functional identifiers for joining purposes. The Data Vault classification as standalone reflects the absence of a single enforced unique business key.
Common Use Cases and Queries
The table supports margin and profitability reporting without runtime recalculation of COGS and revenue. Typical queries aggregate margin by customer, item, geography, or period:
- Margin by item and period:
SELECT inventory_item_id, period_name_month, SUM(margin), AVG(margin_pct) FROM cst_margin_summary GROUP BY inventory_item_id, period_name_month; - Customer profitability: filter by
sold_to_customer_nameorcustomer_idand suminvoiced_amountagainstcogs_amount. - Return impact analysis: restrict to rows where
rma_line_id IS NOT NULLto measure return-driven margin dilution. - Geographic roll-up: group by
region_name,country_name, orarea_namefor regional profitability dashboards.
Because the table retains ORDER_LINE_QUANTITY, SHIP_QUANTITY, and INVOICE_QUANTITY, it also supports volume-versus-value variance reporting.
Related Objects
The documented foreign key relationships identify several dependent and referenced objects:
- FV_LEGAL_ENTITIES – joined via
CST_MARGIN_SUMMARY.LEGAL_ENTITY_ID = FV_LEGAL_ENTITIES.LEGAL_ENTITY_IDfor legal entity context. - SO_ORDER_TYPES_115_ALL – joined via
ORDER_TYPE_IDto classify order types. - JAI_OM_OE_RMA_LINES – referenced by
RMA_LINE_IDfor return authorization details. - OE_ORDER_HEADERS_ALL / OE_ORDER_LINES_ALL – logically related through
HEADER_IDandLINE_IDfor source order detail. - RA_CUSTOMER_TRX_ALL / RA_CUSTOMER_TRX_LINES_ALL – related through
CUSTOMER_TRX_IDandCUSTOMER_TRX_LINE_IDfor invoice verification. - MTL_SYSTEM_ITEMS_B – joined via
INVENTORY_ITEM_IDandORGANIZATION_IDfor item attributes.
These relationships make CST_MARGIN_SUMMARY a central reporting hub for cost and margin analytics spanning order management, receivables, and inventory.
-
Table: CST_MARGIN_SUMMARY
12.1.1
owner:BOM, object_type:TABLE, fnd_design_data:BOM.CST_MARGIN_SUMMARY, object_name:CST_MARGIN_SUMMARY, status:VALID, product: BOM - Bills of Material , description: Margin analysis summary table for reporting purposes , implementation_dba_data: BOM.CST_MARGIN_SUMMARY ,
-
Table: CST_MARGIN_SUMMARY
12.2.2
owner:BOM, object_type:TABLE, fnd_design_data:BOM.CST_MARGIN_SUMMARY, object_name:CST_MARGIN_SUMMARY, status:VALID, product: BOM - Bills of Material , description: Margin analysis summary table for reporting purposes , implementation_dba_data: BOM.CST_MARGIN_SUMMARY ,
-
VIEW: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V
12.1.1
-
APPS.ONT_PRT_MARGIN_ANA_PKG SQL Statements
12.2.2
-
VIEW: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V
12.2.2
-
APPS.ONT_PRT_MARGIN_ANA_PKG SQL Statements
12.1.1
-
SYNONYM: APPS.CST_MARGIN_SUMMARY
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CST_MARGIN_SUMMARY, status:VALID,
-
SYNONYM: APPS.CST_MARGIN_SUMMARY
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CST_MARGIN_SUMMARY, status:VALID,
-
APPS.CSTPMRGL SQL Statements
12.2.2
-
APPS.CSTPMRGL SQL Statements
12.1.1
-
View: ONT_PRT_CST_MARGIN_SUMMARY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.ONT_PRT_CST_MARGIN_SUMMARY_V, object_name:ONT_PRT_CST_MARGIN_SUMMARY_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V ,
-
PACKAGE BODY: APPS.ONT_PRT_MARGIN_ANA_PKG
12.2.2
-
PACKAGE BODY: APPS.ONT_PRT_MARGIN_ANA_PKG
12.1.1
-
VIEW: BOM.CST_MARGIN_SUMMARY#
12.2.2
owner:BOM, object_type:VIEW, object_name:CST_MARGIN_SUMMARY#, status:VALID,
-
View: ONT_PRT_CST_MARGIN_SUMMARY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.ONT_PRT_CST_MARGIN_SUMMARY_V, object_name:ONT_PRT_CST_MARGIN_SUMMARY_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V ,
-
PACKAGE BODY: APPS.CSTPMRGL
12.2.2
-
PACKAGE BODY: APPS.ONT_PRT_MARGIN_ANA_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_PRT_MARGIN_ANA_PKG, status:VALID,
-
PACKAGE BODY: APPS.CSTPMRGL
12.1.1
-
PACKAGE BODY: APPS.CSTPMRGL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CSTPMRGL, status:VALID,
-
PACKAGE BODY: APPS.ONT_PRT_MARGIN_ANA_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_PRT_MARGIN_ANA_PKG, status:VALID,
-
VIEW: BOM.CST_MARGIN_SUMMARY#
12.2.2
-
PACKAGE BODY: APPS.CSTPMRGL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CSTPMRGL, status:VALID,
-
TABLE: BOM.CST_MARGIN_SUMMARY
12.2.2
owner:BOM, object_type:TABLE, fnd_design_data:BOM.CST_MARGIN_SUMMARY, object_name:CST_MARGIN_SUMMARY, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
VIEW: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.ONT_PRT_CST_MARGIN_SUMMARY_V, object_name:ONT_PRT_CST_MARGIN_SUMMARY_V, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPS.ONT_PRT_CST_MARGIN_SUMMARY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.ONT_PRT_CST_MARGIN_SUMMARY_V, object_name:ONT_PRT_CST_MARGIN_SUMMARY_V, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
TABLE: BOM.CST_MARGIN_SUMMARY
12.1.1
owner:BOM, object_type:TABLE, fnd_design_data:BOM.CST_MARGIN_SUMMARY, object_name:CST_MARGIN_SUMMARY, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
APPS.CSTPMRGL dependencies on CST_MARGIN_SUMMARY
12.1.1
-
APPS.CSTPMRGL dependencies on CST_MARGIN_SUMMARY
12.2.2
-
APPS.ONT_PRT_MARGIN_ANA_PKG dependencies on CST_MARGIN_SUMMARY
12.1.1
-
APPS.ONT_PRT_MARGIN_ANA_PKG dependencies on CST_MARGIN_SUMMARY
12.2.2
-
APPS.ONT_PRT_MARGIN_ANA_PKG dependencies on CST_MARGIN_BUILD
12.1.1
-
APPS.ONT_PRT_MARGIN_ANA_PKG dependencies on CST_MARGIN_BUILD
12.2.2
-
APPS.CSTPMRGL dependencies on HZ_CUST_SITE_USES_ALL
12.2.2
-
APPS.CSTPMRGL dependencies on HZ_CUST_SITE_USES_ALL
12.1.1
-
APPS.CSTPMRGL dependencies on HZ_CUST_ACCOUNTS
12.1.1
-
APPS.CSTPMRGL dependencies on HZ_CUST_ACCOUNTS
12.2.2
-
APPS.CSTPMRGL dependencies on HZ_PARTIES
12.1.1
-
APPS.CSTPMRGL dependencies on HZ_PARTIES
12.2.2
-
APPS.CSTPMRGL dependencies on OE_ORDER_LINES_ALL
12.1.1
-
APPS.CSTPMRGL dependencies on OE_ORDER_LINES_ALL
12.2.2