Search Results opi_edw_opm_prd_pkg
Overview
OPI_EDW_OPM_PRD_PKG is an Oracle Application Object Library (APPS) schema package that belongs to the Oracle Process Manufacturing (OPM) integration layer feeding the Enterprise Data Warehouse (EDW) for production data. It is classified under the ETRM as an OTHER API, meaning it is not a formally published public API but is invoked internally by EDW extraction and reporting objects. The package encapsulates the business logic required to derive production metrics — grade determinations, quality sampling counts, adjustment counts, ingredient and byproduct valuations, and scheduled working days — from OPM execution tables and OPM/Inventory master data. Its primary consumer is the materialized view or fact collection object OPI_EDW_OPM_JOB_DETAIL_FCV, which pulls the functions in this package to populate job-detail level fact records for downstream warehouse reporting in Oracle EBS 12.1.1 and 12.2.2 environments.
Key Procedures and Functions
- FIND_PROD_GRADE — Determines the production grade associated with a production batch or item lot, resolving grade attributes used in quality and yield reporting.
- NO_OF_SAMPLES_TAKEN — Returns the count of quality samples drawn against a batch, sourced from quality sample master data.
- NO_OF_SAMPLES_COMPLETE — Returns the count of quality samples that have reached a completed status.
- NO_OF_SAMPLES_PASSED — Returns the count of samples that passed their specification tests, supporting first-pass quality reporting.
- NO_OF_TIMES_ADJUSTED — Returns the number of times a batch, ingredient, or schedule entry has been adjusted, used as a process-stability indicator.
- INGREDIENT_VALUE — Computes the monetary or quantity value attributable to ingredients consumed in production, drawing on material detail and transaction data.
- BYPRODUCT_VALUE — Computes the value attributable to byproducts generated during production, enabling net yield and cost reporting.
- SCHD_WORK_DAYS — Calculates working days from the scheduling calendar, used for capacity and schedule performance metrics.
The ETRM records eight documented procedures/functions in total, all implemented within the single package body.
Tables Accessed
The package reads from the following tables via APPS synonyms:
- IC_ITEM_MST — item master attributes for grade and valuation context.
- IC_LOTS_MST — lot master for grade and lot-level association.
- IC_TRAN_CMP — inventory transaction completion records for consumption and byproduct movement values.
- PM_BTCH_HDR — batch header, the anchor for batch-level metrics.
- MR_SHCL_DTL / MR_SHDY_DTL — resource scheduling calendar lines and days, supporting SCHD_WORK_DAYS.
- PM_MATL_DTL — batch material detail for ingredient and byproduct derivation.
- PS_SCHD_DTL / PS_SCHD_HDR — production schedule detail and header for schedule-level metrics and adjustments.
- QC_SMPL_MST — quality sample master for sample counts and pass determinations.
Usage Notes
OPI_EDW_OPM_PRD_PKG is invoked indirectly rather than directly by end users. Its documented referencer is OPI_EDW_OPM_JOB_DETAIL_FCV, a fact collection view used by EDW load routines; the package also appears as self-referencing within the dependency list. Because it is classified as OTHER and is not a published public API, customizations should avoid calling its procedures directly. Typical invocation occurs during EDW refresh and OPM production reporting concurrent programs, and reporting queries should be directed to the fact collection object rather than the package itself. The ETRM records one dependent package and both [Package] and [Package Body] subobjects as VALID in 12.1.1.
-
SYNONYM: APPS.PM_BTCH_HDR
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PM_BTCH_HDR, status:VALID,
-
SYNONYM: APPS.IC_TRAN_CMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IC_TRAN_CMP, status:VALID,
-
PACKAGE: APPS.OPI_EDW_OPM_PRD_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OPI_EDW_OPM_PRD_PKG, status:VALID,
-
PACKAGE BODY: APPS.OPI_EDW_OPM_PRD_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OPI_EDW_OPM_PRD_PKG, status:VALID,
-
PACKAGE: APPS.OPI_EDW_OPM_PRD_PKG
12.1.1
-
SYNONYM: APPS.PM_MATL_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PM_MATL_DTL, status:VALID,
-
SYNONYM: APPS.MR_SHCL_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MR_SHCL_DTL, status:VALID,
-
SYNONYM: APPS.PS_SCHD_HDR
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PS_SCHD_HDR, status:VALID,
-
SYNONYM: APPS.MR_SHDY_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MR_SHDY_DTL, status:VALID,
-
SYNONYM: APPS.QC_SMPL_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:QC_SMPL_MST, status:VALID,
-
PACKAGE: APPS.OPI_OPM_COMMON_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OPI_OPM_COMMON_PKG, status:VALID,
-
SYNONYM: APPS.PS_SCHD_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PS_SCHD_DTL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.IC_LOTS_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IC_LOTS_MST, status:VALID,
-
VIEW: APPS.IC_TRAN_CMP_VW1
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GMI.IC_TRAN_CMP_VW1, object_name:IC_TRAN_CMP_VW1, status:VALID,
-
PACKAGE: APPS.GMICUOM
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GMICUOM, status:VALID,
-
SYNONYM: APPS.IC_ITEM_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IC_ITEM_MST, status:VALID,
-
PACKAGE BODY: APPS.OPI_EDW_OPM_PRD_PKG
12.1.1
-
APPS.OPI_EDW_OPM_PRD_PKG dependencies on OPI_EDW_OPM_PRD_PKG
12.1.1
-
VIEW: APPS.OPI_EDW_OPM_JOB_DETAIL_FCV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OPI.OPI_EDW_OPM_JOB_DETAIL_FCV, object_name:OPI_EDW_OPM_JOB_DETAIL_FCV, status:VALID,
-
APPS.OPI_EDW_OPM_JOB_DETAIL_FCV dependencies on OPI_EDW_OPM_PRD_PKG
12.1.1
-
APPS.OPI_EDW_OPM_PRD_PKG dependencies on IC_ITEM_MST
12.1.1
-
APPS.OPI_EDW_OPM_PRD_PKG dependencies on IC_LOTS_MST
12.1.1
-
eTRM - OPI Tables and Views
12.1.1
-
eTRM - GMI Tables and Views
12.1.1
description: Table used to relate Item ID with Roles. If the Item ID is NULL, then Roles will be associated with the warehouse Item ID. This table will be used by the Lot Expiry/Retest Workflow. ,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
eTRM - GMI Tables and Views
12.1.1
description: Table used to relate Item ID with Roles. If the Item ID is NULL, then Roles will be associated with the warehouse Item ID. This table will be used by the Lot Expiry/Retest Workflow. ,
-
eTRM - OPI Tables and Views
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,