Results for “oks_khr_pvt”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKS_KHR_PVT is a private (PVT-classified) PL/SQL package body residing in the APPS schema and documented as VALID in Oracle E-Business Suite 12.1.1 and 12.2.2. It belongs to the Oracle Knowledge Management / Service Contracts family of modules (the OKS and OKC prefixes) and provides the internal implementation layer for service contract header processing. The package exposes an Application Programming Interface for creating, copying, locking, updating, deleting, and validating contract header records, while also enforcing version control and multi-org security. Because it is a private package, its procedures are not intended for direct customer invocation; rather, they are consumed by related public APIs, private helpers such as OKS_WF_K_PROCESS_PVT, and higher-level contract authoring logic. The body depends on standard EBS foundation packages including FND_API, FND_GLOBAL, FND_MSG_PUB, and APP_EXCEPTIONS, confirming that it participates in the standard EBS API error-handling and message-stack conventions.
Key Procedures and Functions
The documented interface contains eighteen procedures and functions. The principal entry points are:
- API_COPY — duplicates an existing contract header, including its associated role and party relationships, to create a new contract record.
- INSERT_ROW — inserts a new contract header row into the base table, applying defaults and validation.
- UPDATE_ROW — modifies an existing contract header, typically preceded by a lock to prevent concurrent updates.
- DELETE_ROW — removes a contract header record, subject to business-rule validation.
- LOCK_ROW — acquires a row-level lock on a contract header to serialize updates.
- VALIDATE_ROW — evaluates the contract header against business rules and raises API errors on violation.
- CHANGE_VERSION — increments or otherwise manages the version indicator on a contract header.
- QC — a quality-control helper used to assert preconditions and postconditions internally.
The remaining procedures are private helpers supporting these operations. Parameter lists are intentionally not published because the package is Private-classified.
Tables Accessed
OKS_KHR_PVT reads and writes the following tables via APPS synonyms:
- OKS_K_HEADERS_B, OKC_K_HEADERS_B, OKC_K_HEADERS_ALL_B, OKS_K_HEADERS_V — the service contract header entity and its multi-org and versioned views.
- OKC_STATUSES_B — provides valid contract status codes.
- HZ_CUST_ACCOUNT_ROLES, HZ_CUST_ACCT_SITES, HZ_PARTIES, HZ_RELATIONSHIPS — provide customer, party, and account-role data linked to the contract.
- PLITBLM — the standard PL/SQL table used for bulk message handling.
Usage Notes
OKS_KHR_PVT is not referenced by any database object and is not a public API. It is invoked indirectly through the Service Contracts forms, through the OKC public APIs that delegate to it, and through OKS_WF_K_PROCESS_PVT during workflow-driven contract processing. Customizations should call the corresponding OKC or OKS public API rather than OKS_KHR_PVT directly. It is referenced by fourteen other packages in the same module.
-
VIEW: APPS.OKS_K_HEADERS_V 12.2.2
-
VIEW: APPS.OKS_K_HEADERS_V 12.1.1
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2