Search Results pn_var_constr_defaults_pkg




Overview

PN_VAR_CONSTR_DEFAULTS_PKG is an PL/SQL package in the APPS schema that supports the Oracle E-Business Suite Project Manufacturing (PN) module, specifically the variance and construction defaults configuration area. In Oracle EBS 12.1.1 and 12.2.2, the PN schema underpins Project Manufacturing functionality, including the tracking of variances, rental, and construction-related cost defaults used during project-driven manufacturing transactions. This package provides the low-level data access and validation layer for the PN_VAR_CONSTR_DEFAULTS entity, which stores default construction variance attributes that drive how project manufacturing transactions are processed and costed.

The package is classified as an API of type OTHER within the ETRM 12.2.2 metadata. Rather than a formal public API with business-event semantics, it functions as an internal CRUD and validation utility used by higher-level Project Manufacturing packages. Its status is VALID in the documented environment, confirming the package is compiled and available for use in the EBS 12.1.1 and 12.2.2 application tier.

Key Procedures and Functions

The package exposes five documented procedures and functions, corresponding to the standard insert/update/delete/lock pattern used throughout Oracle EBS internal table handlers, plus a validation routine:

  • INSERT_ROW — Inserts a new row into the variance construction defaults entity, populating the defaults used to drive construction variance processing.
  • LOCK_ROW — Acquires a row-level lock on an existing defaults record, typically invoked before an update to preserve concurrency integrity across sessions.
  • UPDATE_ROW — Modifies an existing variance construction defaults record.
  • DELETE_ROW — Removes a variance construction defaults record.
  • CHECK_MAX_CONSTR — Validates the maximum construction configuration or constraint threshold associated with the defaults, enforcing business rules that prevent invalid construction variance setups.

The presence of these routines indicates a DML wrapper design: callers do not manipulate the underlying tables directly but route through these procedures so that locking, auditing, and validation logic remain centralized.

Tables Accessed

Via APPS synonyms, the package references four tables:

  • PN_VAR_CONSTR_DEFAULTS — The base table holding variance construction default definitions.
  • PN_VAR_CONSTR_DEFAULTS_ALL — The multi-org variant that stores defaults across operating units, essential for the multi-org architecture in EBS 12.1.1 and 12.2.2.
  • PN_VAR_CONSTR_DEFAULTS_S — The sequence-backed surrogate table used for primary key generation.
  • DUAL — Used for single-row SQL expressions and sequence lookups.

Together these tables represent the persistence layer for construction variance defaults, with the _ALL and _S conventions following Oracle's standard multi-org and sequence naming patterns.

Usage Notes

PN_VAR_CONSTR_DEFAULTS_PKG is referenced by three higher-level Project Manufacturing packages: PN_VAREN_PVT, PN_VAR_CHG_CAL_PKG, and PN_VAR_RENT_PKG. This dependency chain indicates the package is invoked from the variance engine (PN_VAREN_PVT), the variance change calculation logic, and the variance rental processing logic. It is therefore an internal service layer rather than a directly exposed API.

Typical invocation occurs through Project Manufacturing forms, concurrent programs, or custom extensions that manage construction variance defaults. Developers should not call this package directly from custom code without accounting for the locking and validation behavior; the recommended surface for external integration is the surrounding _PVT or higher-level business packages. Any customization should preserve the locking sequence (LOCK_ROW before UPDATE_ROW) and respect the CHECK_MAX_CONSTR validation to avoid corrupting multi-org defaults.