Search Results pmi_sales_pkg
Overview
APPS.PMI_SALES_PKG is a PL/SQL package body in the Oracle E-Business Suite Process Manufacturing Intelligence (PMI) schema family. It provides the sales analytics layer used by Process Manufacturing Intelligence reporting and dashboards, exposing the data retrieval logic that drives sales order, pricing, and charge analysis for process manufacturing organizations. The package is classified as a non-API utility (API classification: OTHER), meaning it is intended primarily for internal consumption by ETRM/PMI reporting components rather than as a public integration interface. It is dependent on both Oracle Order Management base tables and Process Manufacturing (OPM) order tables, which reflects its role in reconciling discrete order management data with OPM-specific order and charge structures.
Key Procedures and Functions
The package body exposes seven documented procedures and functions. Their purposes are as follows:
- PMISA_GET_TOP_N — Retrieves a ranked "top N" set of sales results (for example top customers, items, or sales amounts) across the organization, using the parameters and thresholds supplied by the caller. It serves as the core ranking query used by PMI sales dashboards.
- PMISA_GET_TOP_N_BY_OU — A variant of PMISA_GET_TOP_N that restricts the ranked result set to a single operating unit, allowing operating-unit-specific sales performance reporting.
- PMISA_VALIDATE_DATE — Validates a supplied date (typically against the PMI GL calendar view) to confirm that it falls within an open or valid reporting period before the sales queries are executed.
- PMISA_GET_CHARGE — Returns charge information associated with sales order lines, drawing on the OPM charges master and order charge tables so that freight, handling, or other applied charges are available to the reporting logic.
- PMIOM_GET_CHARGE — The Order Management–oriented counterpart to PMISA_GET_CHARGE, resolving charge data through the OE pricing adjustment structures for order lines originating from the discrete order management flow.
Additional internal helper procedures are present in the body but are not part of the documented public surface. No parameter lists should be inferred; callers should reference the package specification before invoking any member.
Tables Accessed
The package reads and references a broad set of APPS synonyms spanning order management, process manufacturing, pricing, and reference data:
- Order data: OE_ORDER_HEADERS_ALL, OE_ORDER_LINES_ALL, OP_ORDR_HDR, OP_ORDR_DTL — provide the sales order headers and lines from both the discrete (OM) and process (OPM) sides.
- Pricing and charges: OE_PRICE_ADJUSTMENTS, OE_PRICE_ADJUSTMENTS_V, OE_SYSTEM_PARAMETERS_ALL, OP_CHRG_MST, OP_ORDR_CHG — supply price adjustment and charge details applied to orders.
- Master and reference data: CM_CMPT_DTL, IC_ITEM_MST, MTL_SYSTEM_ITEMS, IC_WHSE_MST, HZ_PARTIES, GL_SETS_OF_BOOKS, GL_PLCY_MST, SY_ORGN_MST, HR_OPERATING_UNITS — used to resolve items, warehouses, customers, organizations, operating units, and accounting policy.
- Views and packaged dependencies: PMI_GL_CALENDAR_V, PMI_HZ_PARTY_V, PMI_COMMON_PKG, plus GMICUOM and SY_ORGN_MST for unit of measure and organization logic.
Usage Notes
PMI_SALES_PKG is invoked by ETRM/PMI reporting components and is referenced by three other database packages, indicating that it acts as a shared sales data provider within the PMI schema. It is not referenced by any external database object and is not intended as a public integration API. In practice it is called from PMI dashboard forms, concurrent programs, and custom analytic code that need ranked sales results, charge details, or date validation within the process manufacturing intelligence reporting model. Because it depends on OE_SYSTEM_PARAMETERS_ALL and GL calendar views, the effective operating unit and accounting context of the calling session must be correctly initialized. Customizations should wrap, not modify, the package, since it is shipped under the APPS schema and is subject to patching.
-
PACKAGE BODY: APPS.PMI_SALES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PMI_SALES_PKG, status:VALID,
-
PACKAGE: APPS.PMI_SALES_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PMI_SALES_PKG, status:VALID,
-
PACKAGE: APPS.PMI_SALES_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PMI_SALES_PKG, status:VALID,
-
SYNONYM: APPS.OP_ORDR_HDR
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_HDR, status:VALID,
-
PACKAGE BODY: APPS.PMI_SALES_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PMI_SALES_PKG, status:VALID,
-
SYNONYM: APPS.OP_ORDR_HDR
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_HDR, status:VALID,
-
SYNONYM: APPS.OP_ORDR_DTL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_DTL, status:VALID,
-
SYNONYM: APPS.OP_ORDR_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_DTL, status:VALID,
-
VIEW: APPS.PMI_GL_CALENDAR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_GL_CALENDAR_V, object_name:PMI_GL_CALENDAR_V, status:VALID,
-
VIEW: APPS.PMI_GL_CALENDAR_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_GL_CALENDAR_V, object_name:PMI_GL_CALENDAR_V, status:VALID,
-
SYNONYM: APPS.CM_CMPT_DTL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CM_CMPT_DTL, status:VALID,
-
SYNONYM: APPS.CM_CMPT_DTL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CM_CMPT_DTL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.OP_ORDR_CHG
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_CHG, status:VALID,
-
SYNONYM: APPS.OP_ORDR_CHG
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OP_ORDR_CHG, status:VALID,
-
SYNONYM: APPS.OP_CHRG_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OP_CHRG_MST, status:VALID,
-
SYNONYM: APPS.OP_CHRG_MST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OP_CHRG_MST, status:VALID,
-
PACKAGE: APPS.PMI_COMMON_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PMI_COMMON_PKG, status:VALID,
-
SYNONYM: APPS.SY_ORGN_MST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:SY_ORGN_MST, status:VALID,
-
PACKAGE: APPS.PMI_COMMON_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PMI_COMMON_PKG, status:VALID,
-
SYNONYM: APPS.OE_SYSTEM_PARAMETERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_SYSTEM_PARAMETERS_ALL, status:VALID,
-
SYNONYM: APPS.SY_ORGN_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:SY_ORGN_MST, status:VALID,
-
SYNONYM: APPS.OE_SYSTEM_PARAMETERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_SYSTEM_PARAMETERS_ALL, status:VALID,
-
SYNONYM: APPS.GL_PLCY_MST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GL_PLCY_MST, status:VALID,
-
PACKAGE: APPS.GMICUOM
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GMICUOM, status:VALID,
-
PACKAGE: APPS.GMICUOM
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GMICUOM, status:VALID,
-
VIEW: APPS.PMI_HZ_PARTY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_HZ_PARTY_V, object_name:PMI_HZ_PARTY_V, status:VALID,
-
VIEW: APPS.PMI_REP_GROSS_MARGIN_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_REP_GROSS_MARGIN_V, object_name:PMI_REP_GROSS_MARGIN_V, status:VALID,
-
VIEW: APPS.PMI_REP_SALES_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_REP_SALES_DETAILS_V, object_name:PMI_REP_SALES_DETAILS_V, status:VALID,
-
VIEW: APPS.PMI_HZ_PARTY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_HZ_PARTY_V, object_name:PMI_HZ_PARTY_V, status:VALID,
-
SYNONYM: APPS.GL_PLCY_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GL_PLCY_MST, status:VALID,
-
VIEW: APPS.PMI_REP_GROSS_MARGIN_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_REP_GROSS_MARGIN_V, object_name:PMI_REP_GROSS_MARGIN_V, status:VALID,
-
VIEW: APPS.PMI_REP_SALES_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMI_REP_SALES_DETAILS_V, object_name:PMI_REP_SALES_DETAILS_V, status:VALID,
-
SYNONYM: APPS.IC_ITEM_MST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:IC_ITEM_MST, status:VALID,
-
SYNONYM: APPS.IC_ITEM_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IC_ITEM_MST, status:VALID,
-
SYNONYM: APPS.OE_PRICE_ADJUSTMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_PRICE_ADJUSTMENTS, status:VALID,
-
SYNONYM: APPS.OE_PRICE_ADJUSTMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_PRICE_ADJUSTMENTS, status:VALID,
-
SYNONYM: APPS.IC_WHSE_MST
12.2.2
owner:APPS, object_type:SYNONYM, object_name:IC_WHSE_MST, status:VALID,
-
SYNONYM: APPS.IC_WHSE_MST
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IC_WHSE_MST, status:VALID,
-
VIEW: APPS.OE_PRICE_ADJUSTMENTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRICE_ADJUSTMENTS_V, object_name:OE_PRICE_ADJUSTMENTS_V, status:VALID,
-
VIEW: APPS.OE_PRICE_ADJUSTMENTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRICE_ADJUSTMENTS_V, object_name:OE_PRICE_ADJUSTMENTS_V, status:VALID,
-
VIEW: APPS.HR_OPERATING_UNITS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_OPERATING_UNITS, object_name:HR_OPERATING_UNITS, status:VALID,
-
VIEW: APPS.PMIFV_SALES_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMIFV_SALES_DETAILS_V, object_name:PMIFV_SALES_DETAILS_V, status:VALID,
-
VIEW: APPS.PMIFV_SALES_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PMI.PMIFV_SALES_DETAILS_V, object_name:PMIFV_SALES_DETAILS_V, status:VALID,
-
VIEW: APPS.HR_OPERATING_UNITS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_OPERATING_UNITS, object_name:HR_OPERATING_UNITS, status:VALID,
-
SYNONYM: APPS.OE_ORDER_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_HEADERS_ALL, status:VALID,
-
eTRM - PMI Tables and Views
12.1.1