Search Results okl_maintain_contract_pvt
Overview
The APPS.OKL_MAINTAIN_CONTRACT_PVT package is a private API within the Oracle E-Business Suite Lease and Finance Management (formerly Oracle Lease Management / OKL) module. It is owned by the APPS schema and classified as a PVT (private) API, meaning it is intended for internal consumption by the OKL application layer rather than as a supported public interface for customer extensions. The package encapsulates core contract maintenance operations that act upon lease contract headers, lines, and related transactional records. The header comment identifies the package with AUTHID CURRENT_USER and the standard OKL error-handling constants (G_UNEXPECTED_ERROR, G_SQLCODE_TOKEN, G_SQLERRM_TOKEN), reflecting adherence to Oracle's PL/SQL API coding standards involving message stack handling and return-status conventions.
The business function served is the controlled maintenance and status transition of lease contracts — most notably the confirmation or cancellation of a contract — while preserving referential integrity across the underlying OKC contract tables and OKL transaction tables.
Key Procedures and Functions
The ETRM metadata documents a single procedure within this package:
- CONFIRM_CANCEL_CONTRACT — As described in the source comment, this API "takes the contract id as input and returns the status of operation." It accepts a contract identifier and a new contract number, and returns the outcome of the operation through Oracle's standard API return-status parameters (
x_return_status,x_msg_count, andx_msg_data). The procedure signatures follow the standard OKL API convention withp_api_versionandp_init_msg_listinput parameters. It is this procedure that the search term "confirm_cancel_contract" resolves to.
No other procedures or functions are documented for this package. Developers should not assume the existence of undocumented entry points.
Tables Accessed
The package interacts, via APPS synonyms, with the following documented tables:
- OKC_K_HEADERS_B — the base table for contract headers, where the contract's core identifying and status data resides.
- OKC_K_LINES_B and OKC_K_LINES_TL — the base and translation tables for contract lines.
- OKC_K_PARTY_ROLES_B — contract party role assignments.
- OKC_LINE_STYLES_B — defines line style attributes affecting contract structure.
- OKL_FAN_SEQ and OKL_RBK_SEQ — sequence generators for financing and booking numbering.
- OKL_TRX_AP_INVOICES_B and OKL_TRX_AR_INVOICES_B — payable and receivable invoice transaction tables associated with the contract.
- IEX_BANKRUPTCIES — collections/bankruptcy data referenced during contract status processing.
- DUAL — used for singleton queries and sequence invocation.
These tables indicate that confirmation or cancellation of a contract affects not only the header and line records but also associated invoices and party roles, ensuring downstream financial consistency.
Usage Notes
Because this is a private (PVT) package, it is not exposed as a supported public API. It is typically invoked by other OKL packages — the metadata notes it is referenced by two other packages — which collectively form the internal contract lifecycle logic. It may also be called from OKL forms (such as the Lease Management contract forms) during user-initiated confirm or cancel actions, and potentially from concurrent programs that process contract batches. Custom code should invoke the supported public OKL API layer rather than calling OKL_MAINTAIN_CONTRACT_PVT.CONFIRM_CANCEL_CONTRACT directly, since private APIs are subject to change between releases and provide no backward-compatibility guarantee. Callers must supply a valid contract ID and new contract number, and must correctly interpret the returned x_return_status value (typically OKL_API.G_RET_STS_SUCCESS or G_RET_STS_ERROR) along with the associated message stack.
-
PACKAGE: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.1.1
-
PACKAGE: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.2.2
-
PACKAGE: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_MAINTAIN_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_MAINTAIN_CONTRACT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_MAINTAIN_CONTRACT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_MAINTAIN_CONTRACT_PVT, status:VALID,
-
SYNONYM: APPS.OKL_RBK_SEQ
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_RBK_SEQ, status:VALID,
-
SYNONYM: APPS.OKL_RBK_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_RBK_SEQ, status:VALID,
-
SYNONYM: APPS.OKL_FAN_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_FAN_SEQ, status:VALID,
-
SYNONYM: APPS.IEX_BANKRUPTCIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:IEX_BANKRUPTCIES, status:VALID,
-
SYNONYM: APPS.IEX_BANKRUPTCIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:IEX_BANKRUPTCIES, status:VALID,
-
PACKAGE: APPS.OKL_TRX_AP_INVOICES_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_TRX_AP_INVOICES_PUB, status:VALID,
-
PACKAGE: APPS.OKL_TRX_AP_INVOICES_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TRX_AP_INVOICES_PUB, status:VALID,
-
PACKAGE: APPS.OKL_LEASE_APP_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_LEASE_APP_PVT, status:VALID,
-
PACKAGE: APPS.OKL_LEASE_APP_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_LEASE_APP_PVT, status:VALID,
-
PACKAGE: APPS.OKL_TAP_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_TAP_PVT, status:VALID,
-
PACKAGE: APPS.OKL_TXD_ASSETS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TXD_ASSETS_PUB, status:VALID,
-
PACKAGE: APPS.OKL_TAP_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TAP_PVT, status:VALID,
-
SYNONYM: APPS.OKL_TRX_AP_INVOICES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TRX_AP_INVOICES_B, status:VALID,
-
SYNONYM: APPS.OKL_TRX_AP_INVOICES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TRX_AP_INVOICES_B, status:VALID,
-
PACKAGE: APPS.OKL_TXL_ASSETS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TXL_ASSETS_PUB, status:VALID,
-
SYNONYM: APPS.OKL_TRX_AR_INVOICES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TRX_AR_INVOICES_B, status:VALID,
-
SYNONYM: APPS.OKL_TRX_AR_INVOICES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TRX_AR_INVOICES_B, status:VALID,
-
PACKAGE: APPS.OKL_ASD_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_ASD_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEAL_CREATE_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEAL_CREATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEAL_CREATE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEAL_CREATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEAL_CREAT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEAL_CREAT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_DEAL_CREAT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_DEAL_CREAT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_TAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_TAL_PVT, status:VALID,
-
SYNONYM: APPS.OKC_K_LINES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_LINES_TL, status:VALID,
-
VIEW: APPS.OKL_TXL_RCPT_APPS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TXL_RCPT_APPS_V, object_name:OKL_TXL_RCPT_APPS_V, status:VALID,
-
VIEW: APPS.OKL_TXL_RCPT_APPS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TXL_RCPT_APPS_V, object_name:OKL_TXL_RCPT_APPS_V, status:VALID,
-
VIEW: APPS.OKL_TRX_CSH_RECEIPT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TRX_CSH_RECEIPT_V, object_name:OKL_TRX_CSH_RECEIPT_V, status:VALID,
-
VIEW: APPS.OKL_TXD_ASSETS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TXD_ASSETS_V, object_name:OKL_TXD_ASSETS_V, status:VALID,
-
VIEW: APPS.OKL_TRX_CSH_RECEIPT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TRX_CSH_RECEIPT_V, object_name:OKL_TRX_CSH_RECEIPT_V, status:VALID,
-
VIEW: APPS.OKX_ASSETS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ASSETS_V, object_name:OKX_ASSETS_V, status:VALID,
-
PACKAGE: APPS.OKL_OKC_MIGRATION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_OKC_MIGRATION_PVT, status:VALID,
-
SYNONYM: APPS.OKC_LINE_STYLES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_LINE_STYLES_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.1.1
-
SYNONYM: APPS.OKC_K_PARTY_ROLES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_PARTY_ROLES_B, status:VALID,
-
SYNONYM: APPS.OKC_K_PARTY_ROLES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_PARTY_ROLES_B, status:VALID,
-
VIEW: APPS.OKL_TXL_ASSETS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_TXL_ASSETS_V, object_name:OKL_TXL_ASSETS_V, status:VALID,
-
APPS.OKL_DEAL_CREAT_PVT dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.2.2
-
APPS.OKL_DEAL_CREAT_PVT dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.1.1
-
APPS.OKL_DEAL_CREATE_PUB dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.2.2
-
APPS.OKL_DEAL_CREATE_PUB dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.1.1
-
APPS.OKL_MAINTAIN_CONTRACT_PVT dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.2.2
-
APPS.OKL_MAINTAIN_CONTRACT_PVT dependencies on OKL_MAINTAIN_CONTRACT_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_MAINTAIN_CONTRACT_PVT
12.2.2
-
SYNONYM: APPS.OKC_K_LINES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_LINES_B, status:VALID,