Search Results edw_time_m
Overview
OPI_EDW_PRODUCT_SALES_REV_V is a reporting source view that belongs to the Operations Intelligence (OPI) product family, now classified as obsolete within the Oracle E-Business Suite 12.1.1 and 12.2.2 code lines. The view was designed to serve as the data source for the Product Sales Revenue report, exposing a denormalized, business-intelligence-ready projection of product sales revenue across multiple analytical dimensions. It draws its data from a star-schema style warehouse layer — the EDW_* master dimension tables and the OPI_EDW_PERD_MARGIN_F fact table — rather than from the transactional EBS tables directly.
The view's principal purpose is to present current-period sales revenue alongside the corresponding prior-year (twelve months earlier) figure for the same dimensional combination, enabling period-over-period and year-over-year comparison without requiring the report to perform self-joins. In the ETRM 12.2.2 metadata this object is documented as "Not implemented in this database," meaning no instance of the view exists in the target environment; the definition is retained only as reference documentation.
Underlying Base Objects
The documented ETRM metadata lists no referenced base objects for this view, so the dependency graph must be inferred from the embedded view text. The SELECT is constructed from two identical inline subqueries aliased MARGIN1 and MARGIN2, each formed by joining OPI_EDW_PERD_MARGIN_F to EDW_TIME_M on the predicate MARGIN_PERIOD_FK_KEY = CDAY_CAL_DAY_PK_KEY. These two derived sets are outer-joined on the prior-year offset, with the (+) operator applied to every MARGIN2 join key. Four master dimension tables complete the statement: EDW_ORGANIZATION_M (ORG), EDW_OE_SLCHNL_M (SCH), EDW_ITEMS_M (IT), and EDW_GEOGRAPHY_M (GEO). Each dimension contributes its surrogate ALL_* key plus its most granular foreign key column, producing the fully cross-dimensional result set characteristic of an EDW semantic layer.
Key Columns
- Organization keys: ALL_ORGS_ID, BGRP_ID, LE_ID, OU_ID, ORG_ID — the all-orgs rollup, business group, legal entity, operating unit, and inventory organization identifiers.
- Time keys and dates: ALL_TIME_ID, CAL_PERIOD_ID, CAL_QTR_ID, CAL_YEAR_ID, and the measure dates PERD_END_DATE and LAST_YEAR_PERD_END_DATE. The latter is computed as
ADD_MONTHS(CPER_END_DATE, -12), the pivot on which the prior-year self-join is built. - Product/Item keys: ALL_ITEMS_ID, ITEM_CAT_ID, ITEM_ID — supporting category and item-revision level analysis.
- Channel, geography, and other dimensions: ALL_SCH_ID and SCH_ID from the sales channel dimension; ALL_LOCS_ID, LOC_ID, CITY_ID, STATE_ID, COUNTRY_ID, REGION_ID, and AREA_ID from the geography dimension; plus project, customer, sales-rep, bill-to, and ship-to foreign keys carried in the margin fact.
- Measures: SALES_REV (PROD_AMT_G) and PREV_YR_SALES (NVL(PROD_AMT_G, 0)), the current and prior-year revenue amounts.
Common Use Cases and Queries
Because the view is obsolete and unimplemented, its principal value is as a migration or reconstruction template for teams rebuilding equivalent EDW semantic-layer reporting. Typical queries aggregate the current and prior-year measures by any dimension key:
- Year-over-year revenue by operating unit, calendar year, and item category.
- Prior-year comparison by sales channel and region for trend reporting.
- Period-end revenue snapshots filtered on PERD_END_DATE.
A representative query:
SELECT CAL_YEAR_ID, OU_ID, ITEM_CAT_ID,
SUM(SALES_REV) CURRENT_REV,
SUM(PREV_YR_SALES) PRIOR_REV,
SUM(SALES_REV) - SUM(PREV_YR_SALES) VARIANCE
FROM OPI_EDW_PRODUCT_SALES_REV_V
WHERE PERD_END_DATE = :p_period_end
GROUP BY CAL_YEAR_ID, OU_ID, ITEM_CAT_ID;
Use of the (+) outer-join syntax in the view definition also serves as a reminder that this SQL predates the ANSI join standard and should be reviewed before reuse in a 12.2.2 environment.
-
View: OPI_EDW_PRODUCT_SALES_REV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_PRODUCT_SALES_REV_V, object_name:OPI_EDW_PRODUCT_SALES_REV_V, status:VALID, product: OPI - Operations Intelligence , description: Product Sales Revenue report source view , implementation_dba_data: APPS.OPI_EDW_PRODUCT_SALES_REV_V ,
-
View: OPI_EDW_RSRC_EFFICIENCY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_RSRC_EFFICIENCY_V, object_name:OPI_EDW_RSRC_EFFICIENCY_V, status:VALID, product: OPI - Operations Intelligence , description: Resource Efficiency report source view , implementation_dba_data: APPS.OPI_EDW_RSRC_EFFICIENCY_V ,
-
View: OPI_EDW_RSRC_UTIL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_RSRC_UTIL_V, object_name:OPI_EDW_RSRC_UTIL_V, status:VALID, product: OPI - Operations Intelligence , description: Resource Utilization report source view , implementation_dba_data: APPS.OPI_EDW_RSRC_UTIL_V ,
-
View: OPI_EDW_INV_QTY_PERD_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_INV_QTY_PERD_V, object_name:OPI_EDW_INV_QTY_PERD_V, status:VALID, product: OPI - Operations Intelligence , description: On Hand Inventory Quantity report source view , implementation_dba_data: APPS.OPI_EDW_INV_QTY_PERD_V ,
-
View: OPI_EDW_INV_TURNS_PERD_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_INV_TURNS_PERD_V, object_name:OPI_EDW_INV_TURNS_PERD_V, status:VALID, product: OPI - Operations Intelligence , description: Inventory Turns (Period Level) report source view , implementation_dba_data: APPS.OPI_EDW_INV_TURNS_PERD_V ,
-
View: OPI_EDW_INV_TURNS_QTR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_INV_TURNS_QTR_V, object_name:OPI_EDW_INV_TURNS_QTR_V, status:VALID, product: OPI - Operations Intelligence , description: Inventory Turns (Quarter Level) report source view , implementation_dba_data: APPS.OPI_EDW_INV_TURNS_QTR_V ,
-
View: OPI_EDW_INV_VALUE_PERD_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_INV_VALUE_PERD_V, object_name:OPI_EDW_INV_VALUE_PERD_V, status:VALID, product: OPI - Operations Intelligence , description: On Hand Inventory Value, Total Inventory Value, Percentage Total Inventory Value and Work-In-Process Inventory Value reports source view , implementation_dba_data: APPS.OPI_EDW_INV_VALUE_PERD_V ,
-
View: OPI_EDW_INV_TURNS_YR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_INV_TURNS_YR_V, object_name:OPI_EDW_INV_TURNS_YR_V, status:VALID, product: OPI - Operations Intelligence , description: Inventory Turns (Year Level) report source view , implementation_dba_data: APPS.OPI_EDW_INV_TURNS_YR_V ,
-
View: OPI_EDW_EXP_INV_VAL_PERD_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_EXP_INV_VAL_PERD_V, object_name:OPI_EDW_EXP_INV_VAL_PERD_V, status:VALID, product: OPI - Operations Intelligence , description: Expired Inventory Value report source view , implementation_dba_data: APPS.OPI_EDW_EXP_INV_VAL_PERD_V ,
-
View: OPI_EDW_PRODUCT_GROSS_MARGIN_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_PRODUCT_GROSS_MARGIN_V, object_name:OPI_EDW_PRODUCT_GROSS_MARGIN_V, status:VALID, product: OPI - Operations Intelligence , description: Product Gross Margin report source view , implementation_dba_data: APPS.OPI_EDW_PRODUCT_GROSS_MARGIN_V ,
-
View: OPI_EDW_JOB_DETAIL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_JOB_DETAIL_V, object_name:OPI_EDW_JOB_DETAIL_V, status:VALID, product: OPI - Operations Intelligence , description: Material Efficiency, Late Jobs, Percentage Scrap, Linearity Index and Production Efficiency reports source view , implementation_dba_data: APPS.OPI_EDW_JOB_DETAIL_V ,