Search Results okl_copy_contract_pvt
Overview
OKL_COPY_CONTRACT_PVT is a private PL/SQL package in the Oracle E-Business Suite (EBS) Lease Management / Contracts (OKL) module. Its primary business function is to support the duplication of existing lease and service contracts, or selected portions of them, into new contracts. This "copy contract" capability allows users to rapidly create new agreements by reusing the structure, rules, components, party roles, articles, and product options of a source contract, rather than re-entering all configuration data manually. The package is classified as a private (PVT) API, meaning it is intended for internal use by other OKL packages and forms rather than as a public, externally supported interface. It relies on type definitions (subtypes such as clev_rec_type, chrv_rec_type, klev_rec_type, and khrv_rec_type) inherited from OKL_OKC_MIGRATION_PVT and OKL_CONTRACT_PUB, which define the record and table structures used to pass contract, line, and version data between procedures.
Key Procedures and Functions
The package exposes 14 documented procedures and functions that collectively implement the copy workflow:
- IS_COPY_ALLOWED — Evaluates whether the source contract is eligible to be copied, applying business rules that gate the copy operation.
- IS_SUBCONTRACT_ALLOWED — Determines whether a sub-contract may be copied under the governing conditions.
- UPDATE_TARGET_CONTRACT — Applies any required updates to the newly created target contract after the copy completes.
- DERIVE_LINE_STYLE — Derives the appropriate line style for copied contract lines.
- COPY_COMPONENTS — Copies the components associated with the source contract.
- COPY_CONTRACT — The primary entry point that orchestrates copying of a full contract.
- COPY_LEASE_CONTRACT and COPY_LEASE_CONTRACT_NEW — Specialized routines for copying lease contracts, with the "NEW" variant reflecting a revised implementation path.
- COPY_CONTRACT_LINES — Copies the individual lines belonging to the source contract, which is the operation most directly associated with the search term "copy_contract_lines."
- COPY_RULES — Copies the pricing, accounting, or governance rules attached to the contract.
- COPY_PARTY_ROLES — Copies the party role assignments (customer, lessee, and related roles) to the target contract.
- COPY_ARTICLES and COPY_LATEST_ARTICLES — Copy contractual articles or clauses; the latter targets only the most recent versions.
- COPY_PRODUCT_OPTIONS — Copies configured product options for the contract.
Tables Accessed
The package reads and writes against several Oracle Asset (FA), Trading Community (HZ), and Contracts (OKC) tables accessed through APPS synonyms. FA_ADDITIONS_B and FA_ADDITIONS_TL supply asset identification and translated asset descriptions; FA_BOOKS, FA_BOOK_CONTROLS, FA_METHODS, and FA_FLAT_RATES provide depreciation book, control, and rate information relevant to leased assets. FA_DISTRIBUTION_HISTORY contributes asset distribution records. GL_DAILY_CONVERSION_TYPES supports currency conversion lookups. HZ_LOCATIONS, HZ_PARTY_SITES, and HZ_PARTY_SITE_USES resolve party addresses and site usages for the parties involved. MTL_SYSTEM_ITEMS identifies inventory items linked to contract lines, while OKC_CONTACTS and OKC_GOVERNANCES supply contract contacts and governance rules.
Usage Notes
OKL_COPY_CONTRACT_PVT is a private package and should not be called directly by external customizations unless no public alternative exists. It is typically invoked from the Lease Management contract entry forms and from other OKL packages that implement copy, versioning, or migration flows; the metadata indicates it is referenced by four other packages. The COPY_CONTRACT procedure acts as the orchestration entry point, internally invoking the specialized copy routines. Because it inherits migration subtypes and constants from OKL_API, OKL_CONTRACT_PUB, and OKL_OKC_MIGRATION_PVT, callers must pass the corresponding record and table types. Standard OKL message constants are defined for error handling. As with all private APIs, behavior is subject to change between releases, and the "$Header" revision (120.3) reflects an older, largely noship-stable implementation still present in 12.1.1 and 12.2.2.
-
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_COPY_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PUB, 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: APPS.OKL_COPY_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PUB, status:VALID,
-
SYNONYM: APPS.OKL_TRN_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TRN_SEQ, status:VALID,
-
SYNONYM: APPS.OKL_SLCTD_OPTNS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SLCTD_OPTNS, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PVT, status:VALID,
-
SYNONYM: APPS.OKC_RULE_GROUPS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_RULE_GROUPS_TL, status:VALID,
-
SYNONYM: APPS.OKL_TRN_SEQ
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TRN_SEQ, status:VALID,
-
SYNONYM: APPS.OKC_RULES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_RULES_TL, status:VALID,
-
SYNONYM: APPS.OKL_TXD_ASSETS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TXD_ASSETS_TL, status:VALID,
-
PACKAGE: APPS.OKL_COPY_CONTRACT_PVT_W
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PVT_W, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKL_UBB_WF_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_UBB_WF_PVT, status:VALID,
-
SYNONYM: APPS.OKC_RULES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_RULES_TL, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PVT_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PVT_W, status:VALID,
-
PACKAGE: APPS.OKL_COPY_CONTRACT_PVT_W
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_CONTRACT_PVT_W, status:VALID,
-
SYNONYM: APPS.OKL_TXD_ASSETS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXD_ASSETS_TL, status:VALID,
-
SYNONYM: APPS.OKC_K_HEADERS_B_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_HEADERS_B_S, status:VALID,
-
SYNONYM: APPS.OKC_K_HEADERS_B_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_HEADERS_B_S, 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_TXL_ASSETS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_ASSETS_TL, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PUB_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PUB_W, status:VALID,
-
PACKAGE: APPS.OKL_UBB_WF_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_UBB_WF_PVT, status:VALID,
-
SYNONYM: APPS.OKC_RULE_GROUPS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_RULE_GROUPS_TL, status:VALID,
-
SYNONYM: APPS.OKL_TXL_ASSETS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_ASSETS_TL, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PVT_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PVT_W, status:VALID,
-
SYNONYM: APPS.OKL_SLCTD_OPTNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SLCTD_OPTNS, status:VALID,
-
SYNONYM: APPS.OKL_IBN_SEQ
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_IBN_SEQ, status:VALID,
-
SYNONYM: APPS.OKL_IBN_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_IBN_SEQ, status:VALID,
-
SYNONYM: APPS.OKL_K_PARTY_ROLES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_K_PARTY_ROLES, status:VALID,
-
SYNONYM: APPS.FA_FLAT_RATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FA_FLAT_RATES, status:VALID,
-
PACKAGE: APPS.OKC_K_HISTORY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_K_HISTORY_PVT, status:VALID,
-
SYNONYM: APPS.FA_ADDITIONS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FA_ADDITIONS_TL, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PUB, status:VALID,
-
SYNONYM: APPS.OKL_FAN_SEQ
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_FAN_SEQ, 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_CONTRACT_PROD_OPTNS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CONTRACT_PROD_OPTNS_PUB, status:VALID,
-
SYNONYM: APPS.OKL_FAN_SEQ
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_FAN_SEQ, status:VALID,
-
PACKAGE: APPS.OKC_HST_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_HST_PVT, status:VALID,
-
PACKAGE: APPS.OKL_CSP_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_CSP_PVT, status:VALID,
-
PACKAGE: APPS.OKL_COPY_ASSET_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_COPY_ASSET_PUB, status:VALID,
-
PACKAGE: APPS.OKL_LDB_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_LDB_PVT, status:VALID,
-
SYNONYM: APPS.OKC_K_PARTY_ROLES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_PARTY_ROLES_TL, status:VALID,
-
PACKAGE: APPS.OKC_K_HISTORY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_K_HISTORY_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.OKC_K_HISTORY_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_K_HISTORY_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_COPY_CONTRACT_PUB_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_COPY_CONTRACT_PUB_W, status:VALID,
-
SYNONYM: APPS.OKC_K_PARTY_ROLES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_PARTY_ROLES_TL, status:VALID,