Search Results pv_ge_temp_approvers_s




Overview

PV_GE_TEMP_APPROVERS_PVT is a private PL/SQL package body in the APPS schema that encapsulates the business logic for managing temporary approver records within the Oracle E-Business Suite Procurement and Payables approver framework. The object name and its relationship to the PV_GE_TEMP_APPROVERS table indicate that it belongs to the iProcurement / Procurement approver infrastructure — the "GE" segment denoting a "General" or "Generic" approver module, and "TEMP" indicating temporary approver assignments. In Oracle EBS 12.1.1 and 12.2.2, this package acts as the internal engine supporting the temporary approver table, ensuring that insert, update, delete, and validation operations conform to the approved API conventions of the ETRM (E-Business Suite Technical Reference) model. It is classified as a PVT (Private) API, meaning it is not intended for direct invocation by external consumers; instead, it is called by its underlying public database package, PV_GE_TEMP_APPROVERS_PKG. The package depends heavily on standard EBS infrastructure such as FND_API, FND_GLOBAL, FND_MESSAGE, FND_MSG_PUB, JTF_PLSQL_API, and PVX_UTILITY_PVT, ensuring consistent error handling, message stacking, and API return-status semantics across the application.

Key Procedures and Functions

The documented package exposes seven procedures and functions, each providing a discrete layer of the temporary approver lifecycle:

  • CREATE_PTR_ENR_TEMP_APPR — Inserts a new temporary approver record, populating the underlying table with the approver identity, effective dates, and any associated personnel or enrollment context.
  • UPDATE_PTR_ENR_TEMP_APPR — Modifies an existing temporary approver record, allowing changes to approver attributes while preserving referential integrity and audit columns.
  • DELETE_PTR_ENR_TEMP_APPR — Removes a temporary approver record, typically invoked when the temporary approval window expires or the assignment is revoked.
  • LOCK_PTR_ENR_TEMP_APPR — Acquires a row-level lock on the target temporary approver record to prevent concurrent modification before an update or delete is performed.
  • VALIDATE_PTR_ENR_TEMP_APPR — Performs validation checks against the proposed approver data, confirming required fields, valid references, and business-rule constraints before persistence.
  • CHECK_APPROVER_ITEMS — Evaluates whether the temporary approver is authorized to approve specific items or requisition lines, supporting the routing and approval-limit logic.
  • VALIDATE_APPROVER_REC — Validates a complete approver record structure, often used as a final gate before commit or as a reusable validation utility.

Tables Accessed

The package reads and writes three documented objects via APPS synonyms:

  • PV_GE_TEMP_APPROVERS — The primary transactional table holding temporary approver assignments. All create, update, delete, and lock operations target this table.
  • PV_GE_TEMP_APPROVERS_S — The corresponding sequence used to generate primary key values for new temporary approver records. The user's search string "pv_ge_temp_approvers_s" corresponds to this sequence dependency.
  • DUAL — Utilized for lightweight single-row queries, typically inside validation or utility logic (for example, sysdate retrieval or conditional flag checks).

Usage Notes

PV_GE_TEMP_APPROVERS_PVT is not referenced by any other database object within the documented metadata, which is consistent with its private classification. It is invoked indirectly through the public companion package PV_GE_TEMP_APPROVERS_PKG, which serves as the exposed API entry point. Typical invocation occurs from Oracle Forms (such as iProcurement or Purchasing approver maintenance screens), from concurrent programs that refresh or expire temporary approver assignments, and from custom extensions that require governed creation or modification of temporary approvers. The referenced-by count of one confirms a single consuming package in the ETRM model. Because the procedures follow FND_API conventions, callers must inspect the returned API status and message stack rather than relying on unhandled exceptions. Direct invocation should be avoided; customization should always route through the public package to preserve upgrade safety across EBS 12.1.1 and 12.2.2 releases.