Search Results okl_contract_pvt
Overview
OKL_CONTRACT_PVT is a private (PVT) PL/SQL package in the Oracle E-Business Suite Applications (APPS) schema, belonging to the Oracle Lease and Finance Management (OKL) product within the ETRM (Enterprise Contract and Transaction Management) family. It is declared with AUTHID CURRENT_USER and carries the internal identifier OKL_CONTRACT_PVT, with the header comment placing its origin in the 11.x/12.x development stream. The package encapsulates the core business logic for creating, maintaining, validating, deleting, and locking the primary contract structures used by lease and finance agreements: the contract header, contract lines, and governance records. These entities map onto the shared Oracle Contracts (OKC) data model, which OKL reuses to store contract headers, lines, rule groups, rules, statuses, and party roles. As a PVT package, it is not intended as a public API; it provides the internal implementation consumed by other OKL packages and public wrappers, shielding calling code from the underlying OKC table structure and the sequencing, validation, and lock management that must occur consistently on every contract operation.
Key Procedures and Functions
The package exposes a symmetrical set of procedures for each of the three major entity families. Parameter lists are not reproduced here; the documented procedures are as follows.
- Contract Header operations: CREATE_CONTRACT_HEADER, UPDATE_CONTRACT_HEADER, DELETE_CONTRACT_HEADER, LOCK_CONTRACT_HEADER, and VALIDATE_CONTRACT_HEADER manage the lifecycle of the contract header, including the migration-based creation and update overloads visible in the source excerpt, which accept header record and table types (chrv_rec_type, chrv_tbl_type, khrv_rec_type, khrv_tbl_type) and support single-record and bulk-array processing with restricted-update control.
- Contract Line operations: CREATE_CONTRACT_LINE, UPDATE_CONTRACT_LINE, DELETE_CONTRACT_LINE, LOCK_CONTRACT_LINE, and VALIDATE_CONTRACT_LINE provide the same lifecycle coverage for contract lines and their translated attributes.
- Governance operations: CREATE_GOVERNANCE, UPDATE_GOVERNANCE, DELETE_GOVERNANCE, LOCK_GOVERNANCE, and VALIDATE_GOVERNANCE maintain governance records attached to contracts.
- Whole-contract and utility routines: DELETE_CONTRACT removes an entire contract; GET_CONTRACT_HEADER_INFO retrieves header details; INCREMENT_MINOR_VERSION advances the contract's minor version, supporting versioning of contract changes.
Tables Accessed
The package operates against shared OKC objects through APPS synonyms. It reads and writes OKC_K_HEADERS_B and its history table OKC_K_HEADERS_BH for header data; OKC_K_LINES_B and OKC_K_LINES_TL for line definitions and translations; OKC_K_ITEMS, OKC_LINE_STYLES_B, OKC_RULES_B, and OKC_RULE_GROUPS_B for line-level configuration and rule assignment; OKC_STATUSES_B and OKC_STATUSES_TL for contract and line status values; OKC_K_PARTY_ROLES_B for party roles attached to contracts; and OKC_GOVERNANCES for governance records. GL_CURRENCIES supplies currency validation, FND_PROFILE_OPTION_VALUES provides profile option settings, and OKL_FAN_SEQ is the OKL sequence used to generate identifiers. These tables are accessed to persist contract structure, enforce referential and status consistency, and supply lookup data during validation.
Usage Notes
OKL_CONTRACT_PVT is an internal implementation package and is referenced by 14 other packages; direct invocation from custom code is therefore discouraged in favor of the corresponding public OKL APIs. It is typically called from the OKL Lease Management forms and concurrent programs during contract entry, amendment, migration, and termination processing, and its LOCK_CONTRACT_HEADER, LOCK_CONTRACT_LINE, and LOCK_GOVERNANCE routines are used to obtain and record concurrency locks prior to updates. Custom extensions that must preserve validation, status, and versioning behavior should route through the public API layer, which in turn delegates to this package. In EBS 12.1.1 and 12.2.2, the package remains schema-qualified under APPS and follows standard API conventions, including the p_api_version, p_init_msg_list, x_return_status, x_msg_count, and x_msg_data parameter pattern.
-
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_CONTRACT_PVT_W
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PVT_W, status:VALID,
-
PACKAGE: APPS.OKL_CONTRACT_PVT_W
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PVT_W, 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_KHR_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_KHR_PVT, status:VALID,
-
SYNONYM: APPS.OKL_FAN_SEQ
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_FAN_SEQ, status:VALID,
-
SYNONYM: APPS.OKC_K_HEADERS_BH
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_HEADERS_BH, status:VALID,
-
SYNONYM: APPS.OKC_K_HEADERS_BH
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_HEADERS_BH, status:VALID,
-
SYNONYM: APPS.OKL_FAN_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_FAN_SEQ, status:VALID,
-
PACKAGE: APPS.OKC_K_HISTORY_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_K_HISTORY_PUB, status:VALID,
-
SYNONYM: APPS.GL_CURRENCIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GL_CURRENCIES, status:VALID,
-
SYNONYM: APPS.OKL_K_PARTY_ROLES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_K_PARTY_ROLES, status:VALID,
-
PACKAGE: APPS.OKL_JTOT_EXTRACT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_JTOT_EXTRACT, status:VALID,
-
PACKAGE: APPS.OKL_TRX_ASSETS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TRX_ASSETS_PVT, status:VALID,
-
SYNONYM: APPS.OKL_SUPP_INVOICE_DTLS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SUPP_INVOICE_DTLS, status:VALID,
-
PACKAGE: APPS.OKL_TRX_ASSETS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_TRX_ASSETS_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_LDB_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_LDB_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PVT, 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_TRANSFER_ASSUMPTION_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_TRANSFER_ASSUMPTION_PVT, status:VALID,
-
PACKAGE: APPS.OKL_LDB_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_LDB_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SUPP_INVOICE_DTLS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_SUPP_INVOICE_DTLS_PUB, status:VALID,
-
SYNONYM: APPS.OKL_SUPP_INVOICE_DTLS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SUPP_INVOICE_DTLS, status:VALID,
-
PACKAGE: APPS.OKC_RMP_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_RMP_PVT, status:VALID,
-
PACKAGE: APPS.OKL_SUPP_INVOICE_DTLS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_SUPP_INVOICE_DTLS_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,
-
SYNONYM: APPS.OKL_K_PARTY_ROLES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_K_PARTY_ROLES, status:VALID,
-
PACKAGE: APPS.OKC_K_HISTORY_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_K_HISTORY_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PUB, status:VALID,
-
SYNONYM: APPS.OKL_TXL_AP_INV_LNS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_AP_INV_LNS_B, status:VALID,
-
PACKAGE: APPS.OKL_JTOT_EXTRACT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_JTOT_EXTRACT, status:VALID,
-
PACKAGE: APPS.OKL_PARTY_PAYMENTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_PARTY_PAYMENTS_PVT, status:VALID,
-
SYNONYM: APPS.OKL_TXL_AP_INV_LNS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_AP_INV_LNS_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PVT_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PVT_W, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_PARTY_PAYMENTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_PARTY_PAYMENTS_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASSET_DETAILS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASSET_DETAILS_PVT, status:VALID,
-
PACKAGE: APPS.OKL_LA_PAYMENTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_LA_PAYMENTS_PVT, status:VALID,
-
SYNONYM: APPS.OKL_TXL_AP_INV_LNS_ALL_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_AP_INV_LNS_ALL_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_TRANSFER_ASSUMPTION_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_TRANSFER_ASSUMPTION_PVT, status:VALID,
-
PACKAGE: APPS.OKC_RMP_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_RMP_PVT, status:VALID,
-
SYNONYM: APPS.GL_CURRENCIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GL_CURRENCIES, status:VALID,
-
PACKAGE: APPS.OKL_MASTER_LEASE_AGREEMENT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_MASTER_LEASE_AGREEMENT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASSET_DETAILS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASSET_DETAILS_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,
-
SYNONYM: APPS.OKL_K_RATE_PARAMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_K_RATE_PARAMS, status:VALID,