Search Results opi_pmi_ids_temp_pk




Overview

OPI_PMI_IDS_TEMP is a transient staging table owned by the OPI (Operations Intelligence) schema in Oracle E-Business Suite. It supports the Operations Intelligence product's inventory and material movement analytics by holding pre-aggregated, period-scoped transaction quantities keyed by organization, warehouse, and item dimensions. Because the name carries the "_TEMP" suffix, the object is designed for short-lived retention: rows are populated during an ETL or concurrent-program run, consumed by downstream reporting or cost-calculation logic, and typically truncated after the load completes. In release 12.1.1 the documented physical definition exposes 23 columns, and it remains valid in 12.2.2.

Applying a Data Vault classification heuristic to the mined key and foreign-key structure, this object resolves as a standalone entity. It carries neither inbound nor outbound foreign-key constraints in the documented relationship data. This suggests it is best modeled as an isolated staging construct rather than as a hub, link, or satellite in a normalized Data Vault design; if it were integrated into such a model, its composite natural key would serve as the basis for a link to inventory and item hubs rather than as a persistent satellite.

Key Information Stored

The table's grain is defined by the primary key constraint OPI_PMI_IDS_TEMP_PK, a composite unique index spanning seven columns: CO_CODE, ORGN_CODE, WHSE_CODE, LOCATION, ITEM_ID, LOT_ID, and TRX_DATE. This composite effectively serves as the business-key candidate; there is no separate single-column surrogate key documented. Each combination therefore identifies one period/transaction-date record for a specific item and lot at a specific storage location.

Common Use Cases and Queries

Typical use is inventory movement and reconciliation reporting across a period. A representative query retrieves on-hand and flow quantities for a given organization and item range:

  • SELECT orgn_code, item_id, lot_id, SUM(beg_onh_qty), SUM(end_onh_qty) FROM opi.opi_pmi_ids_temp WHERE trx_date BETWEEN :from_date AND :to_date GROUP BY orgn_code, item_id, lot_id;
  • Reconciliation of receipts versus issues: compare TOTAL_REC_QTY against TOT_ISSUES_QTY and INV_ADJ_QTY by warehouse to identify unexplained variances.
  • Inter-organization transfer audit using FROM_ORG_QTY and TO_ORG_QTY to confirm balanced movements.
  • Period-close validation filtering on PERIOD_FLAG to confirm the staging set is complete before cost or analytics programs consume it.

Because rows are temporary, queries should be scoped tightly by date and organization to avoid scanning data mid-load.

Related Objects

The documented metadata records no foreign keys, so relationships are inferred from the shared business columns. The most significant associated objects are: