Search Results okc_copy_contract_pvt




Overview

OKC_RMP_PVT is a private PL/SQL package in the APPS schema that supports the Oracle E-Business Suite Contracts module. It provides the internal implementation logic for the management of contract rule groups and party roles, and it underpins the versioning, copying, and deletion operations performed against contracts and their associated rule structures. As a PVT (private) package, it is not intended for direct external invocation; it is called by the public Contracts APIs and other private packages that require low-level manipulation of rule group records and party role assignments.

In the ETRM metadata for 12.2.2, the package is documented with fifteen procedures and functions and classified as a private (PVT) API. It is referenced by seven other packages, confirming its role as a shared internal service layer rather than a standalone entry point. The business purpose centres on maintaining the integrity of the rule groups that govern how contract terms, party roles, and subclass definitions behave throughout the contract lifecycle.

Key Procedures and Functions

The documented procedures and functions fall into three broad categories:

  • API_COPY — Copies rule group and party role data as part of the broader contract copy operation driven by OKC_COPY_CONTRACT_PVT.
  • INSERT_ROW, LOCK_ROW, UPDATE_ROW, DELETE_ROW, VALIDATE_ROW — Standard row-level data manipulation and validation routines used to create, lock, modify, remove, and validate records in the underlying rule group and party role tables.
  • CREATE_VERSION, RESTORE_VERSION, CHANGE_VERSION — Version management routines that create, restore, and transition versions of rule group data, supporting the contract versioning framework.
  • QC — A quality-check style helper, commonly used within Oracle's internal package conventions to assert correctness or pre/post conditions.

Parameter lists are intentionally not reproduced here; callers should consult the package specification for exact signatures. Each routine is designed to be invoked only from within the Contracts private API layer.

Tables Accessed

The package reads and writes the following documented tables via APPS synonyms:

Usage Notes

OKC_RMP_PVT is never called directly by end users. It is invoked from the Contracts forms and from concurrent programs through the public Contracts APIs, notably OKC_COPY_CONTRACT_PVT, OKC_DELETE_CONTRACT_PVT, OKC_RULE_PUB, OKC_RULE_PVT, OKC_VERSION_PVT, OKL_CONTRACT_PVT, and OKL_OKC_MIGRATION_PVT. This dependency chain means the package is active during contract copy, contract deletion, contract versioning, rule evaluation, and migration from Oracle Lease Management. Customisations should interface with the public APIs rather than this private package, because its behaviour supports internal consistency checks and versioning semantics that public callers assume. In the 12.1.1 and 12.2.2 architecture, the package resides in APPS and depends on FND_API, OKC_API, and STANDARD.