Search Results create_assets_with_adjustments




Overview

OKL_LEASE_QUOTE_ASSET_PVT is a private (PVT) PL/SQL API package in the Oracle E-Business Suite Lease and Finance Management module (OKL), part of the Enterprise Trade and Risk Management (ETRM) family. The package encapsulates the business logic that manages the assets and cost adjustments associated with lease quotations. During lease origination, a lessor or lessee must define the equipment or property being leased, capture its cost components, apply adjustments, and evaluate subsidy and tax applicability before the quote can be priced. OKL_LEASE_QUOTE_ASSET_PVT provides the programmatic entry points that create, duplicate, update, and delete these asset and adjustment records while enforcing the validation and calculation rules required by the leasing engine.

The package is declared with AUTHID CURRENT_USER, executes under the invoking user's schema privileges, and follows the standard EBS API conventions: a package version constant (G_API_VERSION), FND_API return status constants (G_RET_STS_SUCCESS, G_RET_STS_ERROR, G_RET_STS_UNEXP_ERROR), and error tokens such as G_SQLCODE_TOKEN and G_SQLERRM_TOKEN. It is classified as a Private API, meaning it is intended for internal use by the leasing application rather than as a public integration surface.

Key Procedures and Functions

The package exposes fifteen documented procedures and functions organized around three concerns: asset lifecycle maintenance, cost adjustment maintenance, and subsidy processing.

The package also defines composite record and table types based on OKL_ASS_PVT, OKL_ASO_PVT, and the lease quote cash flow structures (OKL_LEASE_QUOTE_CASHFLOW_PVT), reflecting its role in feeding asset data into the cash flow engine.

Tables Accessed

The package reads and writes several core OKL tables through APPS synonyms:

Usage Notes

Because OKL_LEASE_QUOTE_ASSET_PVT is a Private API, it is normally invoked indirectly through the Lease Quotes form or the pricing and cash flow generation concurrent programs rather than by external integrations. Customizations that need to drive subsidy calculations programmatically — for example, when bulk-loading quote assets or reproducing subsidy logic in an extension — call CALCULATE_SUBSIDY_AMOUNT after establishing the asset and adjustment context. Standard API discipline applies: check the returned status against G_RET_STS_SUCCESS, and on failure read the SQLCODE and SQLERRM tokens from the error message stack. The package is referenced by three other OKL packages, so modifications to its behavior can cascade into the quote pricing and cash flow processes.