Search Results okc_cnh_pvt
Overview
The APPS.OKC_CNH_PVT package body is a private (PVT) PL/SQL API within the Oracle E-Business Suite Contracts module (OKC). It encapsulates the low-level data manipulation, validation, concurrency control, and multi-language support logic for condition headers — the parent records that group contract terms, conditions, and entitlement rules defined in Oracle Contracts (formerly Oracle Contracts Core / OKC). As a private package, OKC_CNH_PVT is not intended for direct customer invocation; it sits beneath the public OKC_CNH API and the condition management forms, providing the reusable insert, update, delete, lock, version, and translation routines that the public layer and its internal callers depend upon.
The package is classified as VALID in the APPS schema under ETRM 12.2.2, and its structure is consistent with the standard Oracle EBS "table handler" pattern: a single private package centralising DML for the condition headers base table, its translation table, its audit and history tables, and its primary key sequence. Because OKC_CNH_PVT is referenced by 17 other packages while itself referencing no external custom objects, it functions as an internal implementation detail of the Contracts condition framework.
Key Procedures and Functions
The documented interface exposes the following procedures and functions (parameter lists are not reproduced here):
- QC — an internal quality-check/validation helper, used to assert row-level consistency before committing condition header data.
- CHANGE_VERSION / CREATE_VERSION / RESTORE_VERSION — versioning routines that create new revisions of a condition header and restore prior versions. These support the version-controlled editing model used throughout Oracle Contracts.
- API_COPY — copies an existing condition header (and its associated attributes) as the basis for a new record or version.
- ADD_LANGUAGE — inserts translated rows into the condition headers translation table for a specified language.
- INSERT_ROW / UPDATE_ROW / DELETE_ROW — the core DML primitives for the condition headers base record.
- INSERT_ROW_UPG — a variant of INSERT_ROW used during upgrade paths, preserving legacy key and attribute semantics.
- LOCK_ROW — obtains a row lock (typically SELECT ... FOR UPDATE) to enforce optimistic concurrency control.
- VALIDATE_ROW — performs business and referential validation against condition header attributes prior to persistence.
Tables Accessed
Dependencies confirm that the package reads and writes the following objects through APPS synonyms:
- OKC_CONDITION_HEADERS_B — the base condition header table, the primary target of INSERT_ROW, UPDATE_ROW, and DELETE_ROW.
- OKC_CONDITION_HEADERS_TL — the translation table, maintained by ADD_LANGUAGE.
- OKC_CONDITION_HEADERS_BH and OKC_CONDITION_HEADERS_TLH — the history/audit shadow tables that capture prior versions for versioning and audit purposes.
- OKC_CONDITION_HEADERS_S1 — the primary key sequence supplying new header identifiers.
- OKC_CONDITION_HEADERS_V and OKC_ACTIONS_V / OKC_ACTIONS_B — used for context lookups and action association during validation and versioning.
- FND_APPLICATION, FND_LANGUAGES, FND_GLOBAL, FND_PROFILE — Foundation utilities supplying application identifiers, language context, session/user identity, and profile option values.
- DUAL, PLITBLM, STANDARD — standard PL/SQL and EBS utility dependencies used for control logic.
Usage Notes
OKC_CNH_PVT is invoked indirectly. The Oracle Contracts condition setup forms, the public OKC_CNH API, and internal EBS processes that manipulate condition headers call into these routines to create, version, translate, and validate header records. It is also referenced by 17 other packages, meaning any custom extension that manipulates condition headers should call the public OKC_CNH API rather than OKC_CNH_PVT directly, as the private interface carries no backward-compatibility guarantee and may change between point releases of EBS 12.1.1 and 12.2.2. During multi-language installations, ADD_LANGUAGE is exercised by the standard translation and language-installation concurrent programs. Version-related routines execute whenever a user creates or restores a contract condition version.
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_TL, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_TL, status:VALID,
-
PACKAGE BODY: APPS.OKC_CNH_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CNH_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_CNH_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CNH_PVT, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_B, status:VALID,
-
PACKAGE: APPS.OKC_CNH_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CNH_PVT, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_B, status:VALID,
-
PACKAGE: APPS.OKC_CNH_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CNH_PVT, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_S1
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_S1, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_BH
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_BH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_S1
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_S1, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_TLH
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_TLH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_TLH
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_TLH, status:VALID,
-
SYNONYM: APPS.OKC_CONDITION_HEADERS_BH
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONDITION_HEADERS_BH, status:VALID,
-
PACKAGE BODY: APPS.OKC_DATE_ASSEMBLER_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_DATE_ASSEMBLER_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_INST_CND_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_INST_CND_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CONDITION_EVAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITION_EVAL_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CONDITIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_DATE_ASSEMBLER_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_DATE_ASSEMBLER_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_CONDITIONS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CONDITIONS_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CONDITIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_CONDITIONS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CONDITIONS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_INST_CND_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_INST_CND_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_CONDITIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CONDITIONS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CONDITION_EVAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITION_EVAL_PVT, status:VALID,
-
PACKAGE: APPS.OKC_INST_CND_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_INST_CND_PUB, status:VALID,
-
PACKAGE: APPS.OKC_INST_CND_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_INST_CND_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CONDITION_EVAL_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITION_EVAL_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CONDITION_EVAL_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITION_EVAL_PUB, status:VALID,
-
SYNONYM: APPS.OKC_ACTIONS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_ACTIONS_B, status:VALID,
-
PACKAGE: APPS.OKC_COPY_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_COPY_CONTRACT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_CONDITIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_CONDITIONS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_COPY_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_COPY_CONTRACT_PUB, status:VALID,
-
PACKAGE: APPS.OKC_INST_CND_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_INST_CND_PVT, status:VALID,
-
PACKAGE: APPS.OKS_RENCPY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_RENCPY_PVT, status:VALID,
-
PACKAGE: APPS.OKS_RENCPY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_RENCPY_PVT, status:VALID,
-
PACKAGE: APPS.OKC_INST_CND_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_INST_CND_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_EXTEND_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_EXTEND_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CONDITIONS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITIONS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMINATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMINATE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_EXTEND_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_EXTEND_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CONDITIONS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CONDITIONS_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMINATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMINATE_PVT, status:VALID,
-
SYNONYM: APPS.OKC_ACTIONS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_ACTIONS_B, status:VALID,
-
PACKAGE: APPS.OKS_COPY_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKS_COPY_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKC_COPY_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKC_COPY_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_RENEW_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_RENEW_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_RENEW_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_RENEW_PVT, status:VALID,