Search Results okl_kpl_pvt




Overview

The APPS.OKL_KPL_PVT package body is a private Application Programming Interface (API) within the Oracle Lease and Finance Management (OKL) module of Oracle E-Business Suite. The _PVT suffix denotes that this package is classified as a private API, meaning it is intended for internal consumption by other ETRM packages rather than for direct invocation by external or customer-written code. Its primary business function is to encapsulate the persistence and versioning logic for contract party roles associated with lease and finance contracts managed in the OKL schema.

The package operates in conjunction with its public-facing counterpart OKL_KPL_PVT and supports the broader contract management infrastructure provided by the Oracle Contracts (OKC) module. It centralizes row-level DML operations, validation, locking, and version management for party role records, insulating callers from the physical layout of the underlying tables and enforcing consistent business rules. The package carries a status of VALID in the APPS schema.

Key Procedures and Functions

The documented interface exposes twenty procedures and functions. The principal entry points include:

  • QC — Serves as the quality-control or concurrency-control routine, typically invoked to verify that data state is consistent before a transaction proceeds.
  • CHANGE_VERSION and CREATE_VERSION — Manage contract version transitions, allowing party role data to be carried forward or branched when a contract is versioned.
  • RESTORE_VERSION — Reinstates a previously recorded version of party role data, supporting audit and rollback scenarios.
  • API_COPY — Duplicates party role records, commonly used when copying a contract or template.
  • INSERT_ROW, UPDATE_ROW, and DELETE_ROW — Provide the standard row-level DML primitives, ensuring that the base table and its history table remain synchronized.
  • LOCK_ROW — Acquires a pessimistic lock on a party role record to prevent concurrent modification.
  • VALIDATE_ROW — Applies business-rule validation to a party role record prior to persistence.

The use of FND_API, FND_MSG_PUB, and FND_GLOBAL indicates adherence to the standard EBS API error-handling and message-stack conventions, while OKC_API and OKC_VERSION_PVT confirm integration with the Oracle Contracts core APIs.

Tables Accessed

The package reads and writes several documented tables through APPS synonyms:

  • OKL_K_PARTY_ROLES — The principal base table storing current party role assignments for OKL contracts. This is the primary target of INSERT_ROW, UPDATE_ROW, and DELETE_ROW.
  • OKC_K_PARTY_ROLES_B — The contract party role base table from the Oracle Contracts schema, used to keep the underlying OKC contract structure consistent with OKL-specific extensions.
  • OKL_K_PARTY_ROLES_H — The history (audit) table that records prior versions of party role rows, supporting the versioning and restore procedures.
  • PLITBLM — The standard PL/SQL table type used for name-value processing and internal collections.

Associated views such as OKL_K_PARTY_ROLES_V are also referenced indirectly via the public API layer.

Usage Notes

Because OKL_KPL_PVT is a private API, it should not be called directly from customer extensions; the Oracle Lease and Finance Management forms and concurrent programs invoke it through the corresponding public wrapper package OKL_KPL_PVT. It is referenced by twenty-five other database objects, confirming that it sits at a low layer of the OKL contract party role stack.

Typical invocation occurs during lease contract creation, amendment, and versioning, and during data migration or interface loads performed through the standard OKL APIs. Developers performing customization should invoke the public API layer rather than this package, and must ensure that any DML on party roles respects the lock, validate, and version procedures so that the history table remains consistent. As with any _PVT package, Oracle may change its signature between releases, so direct dependency is discouraged in upgrade-sensitive code paths.