Search Results check_release_contract
Overview
OKL_LLA_UTIL_PVT is a private (PVT) utility package within the Oracle E-Business Suite Lease Management (OKL) module, part of the Enterprise Contracts and Lease application stack. The package name and contents confirm it is a general-purpose utility layer for lease and contract line processing. It centralizes common low-level operations that other lease management APIs and workflows depend upon, notably currency formatting and rounding, date handling, contract process classification, and line-level validation.
The package is heavily reused: ETRM metadata records that it is referenced by 50 other packages. As a PVT API, it is not designed for direct external invocation; Oracle reserves the right to change its signature without notice. Its public-facing behavior surfaces indirectly through the higher-level OKL and OKC APIs that call it. In 12.1.1 and 12.2.2 the package remains a structural component of the lease accounting and contract rebooking logic, and it participates in Business Events enabling through process-type constants such as NEW, REBOOK, MASS_REBOOK, RELEASE_CONTRACT, RELEASE_ASSETS, and SPLIT_CONTRACT.
Key Procedures and Functions
The package exposes 30 documented procedures and functions, organized around several functional clusters.
- Amount and number utilities: FORMAT_ROUND_AMOUNT, ROUND_AMOUNT, and GET_NUMBER handle currency-aware rounding and numeric parsing. FORMAT_ROUND_AMOUNT has overloads, including an org-aware variant (p_org_id), reflecting multi-organization support and the ICX_DATE_FORMAT_MASK profile dependency.
- Date utilities: GET_CANONICAL_DATE, VALIDATE_GET_CANONICAL_DATE, GET_DISPLAY_DATE, and CONVERT_DATE manage the distinction between the FND_DATE canonical mask (internal storage) and the profile-driven display mask (user presentation), a classic EBS dual-date pattern.
- Contract process classification: CHECK_MASS_REBOOK_CONTRACT, CHECK_REBOOK_CONTRACT, CHECK_RELEASE_CONTRACT, CHECK_RELEASE_ASSETS, CHECK_NEW_CONTRACT, CHECK_SPLIT_CONTRACT, and GET_CONTRACT_PROCESS evaluate and categorize contracts according to the business-event constants defined in the package specification.
- Lease classification and calculation: IS_LEASE_CONTRACT determines whether a contract qualifies as a lease, and CALCULATE_END_DATE derives the contract termination date, supporting lease term logic.
- Lookup and location helpers: GET_LOOKUP_MEANING resolves coded values from Oracle lookups, while GET_ASSET_LOCATION and GET_AST_INSTALL_LOC_ID retrieve asset and installation location information.
- Line validation: CHECK_LINE_UPDATE_ALLOWED is the routine surfaced by the user's search. It validates whether a given lease contract line may be modified in its current state, providing the gating logic that forms and callers rely on before committing changes.
Tables Accessed
The package references a broad set of APPS-synonymed tables. Contract structure is read from OKC_K_HEADERS_B, OKC_K_HEADERS_ALL_B, OKC_K_ITEMS, OKC_K_LINES_B, OKC_LINE_STYLES_B, and OKC_RULES_B; lease-specific data comes from OKL_K_LINES and OKL_PARTY_PAYMENT_DTLS. Supplier and party data is sourced from AP_SUPPLIERS, HZ_PARTIES, HZ_PARTY_SITES, and HZ_PARTY_SITE_USES.
Asset and location resolution draws on CSI_ITEM_INSTANCES, FA_ADDITIONS_B, and HZ_LOCATIONS, which supports GET_ASSET_LOCATION and GET_AST_INSTALL_LOC_ID. The presence of HZ_LOCATIONS and CSI_ITEM_INSTANCES confirms integration with the Oracle Assets and Install Base schemas, typical for lease asset tracking.
Usage Notes
Because OKL_LLA_UTIL_PVT is a PVT package, it should not be called directly from custom code. Developers needing its functionality should invoke the supported parent APIs (for example, OKL contract management APIs or OKC contract APIs) that internally delegate to this package. When troubleshooting line-edit restrictions, CHECK_LINE_UPDATE_ALLOWED can be traced in the call stack to identify why a line is locked, but Oracle EBS diagnostics should be limited to tracing rather than direct invocation.
Profile dependencies are important operationally: G_DISPLAY_MASK and GET_DISPLAY_DATE rely on the ICX_DATE_FORMAT_MASK profile option, so date-related behavior varies by user session and can cause apparent inconsistencies if the profile is misconfigured. Similarly, the org-aware overload of FORMAT_ROUND_AMOUNT depends on the correct org_id being passed by the caller. When applying patches in 12.1.1 or 12.2.2 environments, changes to this package can affect the 50 dependent packages, so regression testing across lease rebooking, contract splitting, and asset release flows is advisable after any upgrade.