Search Results currency_fk




Overview

PMI_EDW_MARGIN_F_FCV is a flat, denormalized view in the Oracle E-Business Suite Process Manufacturing Intelligence (PMI) module. PMI is documented in ETRM as Obsolete, meaning it is a legacy Business Intelligence (BI) component that was traditionally deployed alongside Oracle Process Manufacturing (OPM) to feed the Oracle Enterprise Data Warehouse (EDW). The view's name follows EDW naming conventions: the PMI_EDW_ prefix denotes the Process Manufacturing Intelligence EDW layer, MARGIN indicates a margin/fact-oriented subject area, F denotes a fact-style structure, and FCV typically signals a "fact currency view" or a conformed currency-bearing fact view.

The view exposes sales order line data — order headers, shipping lines, customers, items, warehouses and grades — combined with pricing, cost and currency information, so that a downstream warehouse can compute margin (price minus cost) at order-line grain. Its role is as a staging/interface source: EDW extraction programs query the view, transform the results, and load the fact tables of the analytical model. It is not a transactional view; it is intended for read-only, set-based extraction.

The ETRM record states that this object is "Not implemented in this database" for the sampled instance, and lists no documented base objects. The column list below is derived from the view text captured in the ETRM content excerpt.

Underlying Base Objects

ETRM 12.2.2 documentation records no explicitly referenced base objects for this view. The view SQL, however, clearly joins and references several OPM and common EBS entities by alias, plus PL/SQL package functions:

  • SH — sales order header (order number, customer, order date, requested/promised ship dates, status, set of books).
  • SD — sales order detail/line (line number, item, from warehouse, ship method, quantities, pricing, currency, exchange rate, dates).
  • IM — item master (item number, stocking UOM).
  • INST — OPM instance/organization code.
  • BC, SC — bill-to and ship-to customer records (customer name).
  • PM — pricing/margin reference supplying GL cost method.
  • SOB — set of books, providing the functional currency and EDW calendar join key.
  • Package functions: PMI_EDW_COMM_PKG (geography keys), EDW_TIME_PKG.CAL_DAY_FK (time dimension keys), PMI_SALES_PKG.PMISA_GET_CHARGE (freight/charges), GMICUOM.I2UOM_CV (UOM conversion), PMI_COMMON_PKG.PMICO_GET_COST (item cost).

Because the underlying tables are undocumented in ETRM, database lineage should be confirmed against the live view definition with USER_DEPENDENCIES or DBMS_METADATA.

Key Columns

The view produces surrogate/conformed keys and descriptive attributes. The most relevant columns include:

Common Use Cases and Queries

Typical use is margin analysis and EDW extraction. A representative query selecting currency-bearing margin data is:

SELECT currency_code,
       order_no, line_no, order_qty1,
       net_price, extended_price,
       actual_shipdate
FROM   apps.pmi_edw_margin_f_fcv
WHERE  currency_code = 'USD'
AND    order_date >= TO_DATE('01-JAN-2023','DD-MON-YYYY');

Other scenarios include loading a currency-conformed fact table, reconciling OPM sales margin against GL revenue, and validating cost calculation logic by comparing PMICO_GET_COST results to inventory valuations. Note that PMI is obsolete; in 12.1.1/12.2.2 environments where the object is absent, equivalent data should be sourced from current OPM sales, pricing and costing views, or replaced by OBIEE/OTBI subject areas. Always verify object existence and column names in the target instance before deploying extract scripts.