Search Results okl_contract_pub
Overview
OKL_CONTRACT_PUB is the public application programming interface for Oracle Lease and Finance Management (OKL), the EBS module that supports leasing, financing, and contract lifecycle processing. In Oracle EBS 12.1.1 and 12.2.2, the package body APPS.OKL_CONTRACT_PUB exposes a controlled, PL/SQL-callable entry point for creating, maintaining, and validating lease contract data without requiring direct DML against the underlying OKC and OKL base tables. Its object status is VALID and it is owned by the APPS schema, which is consistent with the seeded EBS API standard.
The package acts as a thin public wrapper over the private implementation package OKL_CONTRACT_PVT and coordinates calls into OKL_API, OKL_KHR_PVT, OKL_KLE_PVT, OKC_API, and OKL_OKC_MIGRATION_PVT. It also inherits standard EBS API error-handling and message infrastructure through FND_API and FND_MSG_PUB, allowing callers to use the conventional p_init_msg_list, x_return_status, and x_msg_count/x_msg_data conventions. The body contains 38 documented procedures and functions and is referenced by approximately 58 other database objects, confirming its role as a shared, foundational API within the leasing stack.
Key Procedures and Functions
The documented interface is organized into logical CRUD, locking, and validation groups:
- Contract header operations — CREATE_CONTRACT_HEADER, UPDATE_CONTRACT_HEADER, DELETE_CONTRACT, DELETE_CONTRACT_HEADER, LOCK_CONTRACT_HEADER, and VALIDATE_CONTRACT_HEADER manage the top-level contract record, including creation, modification, removal, concurrency locking, and business-rule validation.
- Contract line operations — CREATE_CONTRACT_LINE, UPDATE_CONTRACT_LINE, DELETE_CONTRACT_LINE, LOCK_CONTRACT_LINE, and VALIDATE_CONTRACT_LINE provide the same lifecycle handling for individual contract lines associated with a header.
- Governance operations — CREATE_GOVERNANCE, UPDATE_GOVERNANCE, DELETE_GOVERNANCE, LOCK_GOVERNANCE, and VALIDATE_GOVERNANCE manage governance rules attached to lease contracts, including creation, maintenance, deletion, locking, and validation.
- Inquiry — GET_CONTRACT_HEADER_INFO retrieves contract header attribute values for display or downstream processing without modifying data.
Each mutating procedure follows the EBS API pattern of validating input, applying the change through the private package, and returning status and message information to the caller.
Tables Accessed
The documented table dependencies accessed through APPS synonyms are:
- OKC_K_HEADERS_B — the core contract header base table in the Oracle Contracts (OKC) schema. OKL_CONTRACT_PUB reads and writes this table to persist contract header attributes, identifiers, and status.
- PLITBLM — the standard EBS PL/SQL table used by FND_MSG_PUB to store validation and error messages generated during API execution.
Additional base tables such as contract lines and governance records are touched indirectly through OKL_CONTRACT_PVT and the OKC/OKL private packages listed as dependencies. OKL_CONTRACT_PUB is not referenced by any database object, meaning it sits at the top of the dependency chain as a public entry point.
Usage Notes
OKL_CONTRACT_PUB is typically invoked from Oracle Forms-based leasing setups, concurrent programs, migration or conversion routines, and custom PL/SQL integrations that need to create or maintain lease contracts. Because it is a PUB-classified API, callers should invoke it rather than issuing direct DML against OKC_K_HEADERS_B or other underlying tables; this preserves validation logic, MOAC/security handling, and message propagation. Standard practice is to pass an initialized message list, call the desired procedure, then check x_return_status and retrieve messages from FND_MSG_PUB when the return status is not SUCCESS. Locking procedures should be called before updates in concurrent processing scenarios to enforce concurrency control, and validation procedures are useful as a pre-commit check.
-
PACKAGE BODY: APPS.OKL_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_KHR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_KHR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_COPY_ASSET_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_ASSET_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_SSC_CONTRACTS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SSC_CONTRACTS, status:VALID,
-
PACKAGE: APPS.OKL_SEC_INVESTOR_REVENUE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_SEC_INVESTOR_REVENUE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SEC_INVESTOR_REVENUE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_SEC_INVESTOR_REVENUE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SEC_INVESTOR_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_SEC_INVESTOR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CS_LEASE_RENEWAL_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CS_LEASE_RENEWAL_PUB, status:VALID,
-
PACKAGE: APPS.OKL_CS_LEASE_RENEWAL_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CS_LEASE_RENEWAL_PUB, status:VALID,
-
PACKAGE: APPS.OKL_RELEASE_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_RELEASE_PUB, status:VALID,
-
PACKAGE: APPS.OKL_KHR_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_KHR_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_SSC_CONTRACTS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SSC_CONTRACTS, status:VALID,
-
PACKAGE: APPS.OKL_CS_LEASE_RENEWAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CS_LEASE_RENEWAL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CS_LEASE_RENEWAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CS_LEASE_RENEWAL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SEC_INVESTOR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_SEC_INVESTOR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_COPY_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_REBOOK_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_REBOOK_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEC_INVESTOR_REVENUE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEC_INVESTOR_REVENUE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_COPY_ASSET_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_ASSET_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_DFLEX_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DFLEX_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_STATUS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_STATUS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_STATUS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_STATUS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_MASTER_LEASE_AGREEMENT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_MASTER_LEASE_AGREEMENT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_SERVICE_INTEGRATION_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_SERVICE_INTEGRATION_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEC_INVESTOR_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEC_INVESTOR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_MASTER_LEASE_AGREEMENT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_MASTER_LEASE_AGREEMENT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_REBOOK_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_REBOOK_PUB, status:VALID,
-
PACKAGE: APPS.OKL_RELEASE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_RELEASE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_KLE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_KLE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PUB_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PUB_W, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PUB_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PUB_W, status:VALID,
-
PACKAGE: APPS.OKL_RELEASE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_RELEASE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEC_INVESTOR_REVENUE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEC_INVESTOR_REVENUE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_COPY_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_VENDOR_PROGRAM_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_VENDOR_PROGRAM_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_MASTER_LEASE_AGREEMENT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_MASTER_LEASE_AGREEMENT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_SERVICE_INTEGRATION_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_SERVICE_INTEGRATION_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEC_INVESTOR_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEC_INVESTOR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_VENDOR_PROGRAM_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_VENDOR_PROGRAM_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_DFLEX_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DFLEX_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SERVICE_INTEGRATION_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_SERVICE_INTEGRATION_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_LA_TRADEIN_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_LA_TRADEIN_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_LA_ASSET_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_LA_ASSET_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEAL_TERMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEAL_TERMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_AM_TERMNT_VENDOR_PRG_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_AM_TERMNT_VENDOR_PRG_PVT, status:VALID,
-
PACKAGE: APPS.OKL_RELEASE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_RELEASE_PVT, status:VALID,