Search Results oks_headers




Overview

OKC_CONTRACT_PVT is the core private API package for Oracle Contracts (OKC) in Oracle E-Business Suite. It encapsulates the internal business logic used to create, maintain, validate, lock, and delete contract structures, including contract headers, contract lines, governance records, and ancestry relationships that tie contracts together. The package is the private counterpart to the public OKC_CONTRACT API, which is the supported external entry point for programmatic contract manipulation.

Because it is classified as a private (PVT) package, it is not intended for direct invocation by customer extensions. It is called internally by the public API layer and by other OKC packages to perform the low-level DML and validation work against the contract schema. The package is declared AUTHID CURRENT_USER, meaning it executes with the privileges of the calling schema rather than the owner, which is typical for internal Apps packages layered beneath public APIs. It also declares a number of subtype aliases drawn from sibling private packages such as OKC_CHR_PVT, OKC_CLE_PVT, and OKC_CAC_PVT, reflecting its role as an orchestration layer across contract header, line, and component structures.

A user who searches for oks_headers is likely working with the contract header data model. OKC_CONTRACT_PVT is the package that ultimately populates and maintains the header information that surfaces through that view. The package also exposes a GENERATE_CONTRACT_NUMBER procedure, which produces contract numbers based on a source code and modifier, and an UPDATE_ALLOWED function, which determines whether a given contract header may be modified based on its current status.

Key Procedures and Functions

The package exposes 69 documented procedures and functions. The principal groups are:

The remaining documented procedures follow the same create/update/delete/lock/validate pattern applied to other contract sub-entities, providing a consistent internal API surface across the OKC data model.

Tables Accessed

The package reads and writes a broad set of OKC and FND tables through APPS synonyms, including:

Usage Notes

OKC_CONTRACT_PVT is invoked internally by the public OKC_CONTRACT API and by 12 other documented packages. Customer code should call the public OKC_CONTRACT API rather than this private package. Typical internal callers include the Contracts forms and concurrent programs that create, amend, or terminate contracts. Because the package is AUTHID CURRENT_USER and private, direct calls from custom code are unsupported and may break across patches or upgrades.