Search Results get_chr_currency




Overview

OKL_AM_UTIL_PVT is a private (PVT) PL/SQL utility package in the Oracle E-Business Suite Lease Management (OKL) module. Its source header identifies it as OKLRAMUS.pls, version 120.14, last updated in 2007. The package provides a broad set of reusable helper routines that support the asset management and transaction processing components of Oracle Lease Management. Rather than exposing a public business API, OKL_AM_UTIL_PVT functions as an internal service layer that other OKL packages and forms call to resolve organizational context, currency information, transaction and stream identifiers, asset quantities, formulae, rule data, and JTF object metadata.

The package declares several global data structures and subtypes that are shared across its routines, including bind variable tables, a quote record type sourced from OKL_TRX_QUOTES_PUB, and record/table types for WHERE clauses, JTF objects, and recipients. These structures enable dynamic query construction and message processing. Global constants handle error and debug message levels via FND_MSG_PUB, and application name constants reference OKL_API and OKC_API, confirming the package's integration with the leasing and contract core APIs.

Key Procedures and Functions

The package documents 61 procedures and functions. Prominent routines include:

Tables Accessed

The package references a range of tables through APPS synonyms. Lease and contract tables include OKC_K_HEADERS_B, OKC_K_PARTY_ROLES_B, OKL_K_HEADERS, OKL_K_LINES, OKL_FORMULAE_B, and OKL_TRX_MSGS. Asset information is sourced from FA_ADDITIONS, while depreciation data is drawn from FA_BOOKS, FA_BOOK_CONTROLS, FA_CALENDAR_PERIODS, FA_DEPRN_PERIODS, and FA_DEPRN_SUMMARY. Currency conversion and lookup rely on FND_CURRENCIES, user context on FND_USER, and organizational context on HR_ALL_ORGANIZATION_UNITS.

Usage Notes

OKL_AM_UTIL_PVT is a private package and is not intended for direct customer invocation. It is referenced by 71 other packages, indicating its role as a shared utility layer across Oracle Lease Management. Custom code should avoid calling it directly; extensions should instead use public OKL APIs. The presence of GET_ASSET_QUANTITY, formulae routines, and depreciation table access suggests it is invoked during asset-based lease calculations, depreciation roll-ups, and transaction message generation, typically triggered from Lease Management forms and concurrent programs.