Search Results okl_streams_util
Overview
OKL_STREAMS_UTIL is a utility package body in the APPS schema of Oracle Lease and Finance Management (OKL), part of the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 technology stacks. In the ETRM classification model, this package is an internal UTIL API, meaning it is not designed as a public-facing interface but instead supports the stream-processing and accounting logic invoked by other leasing packages. The package centralizes common operations that surround the Oracle Lease Management stream model, including profile lookups, currency rounding, resolution of primary and dependent stream types, accumulation of stream headers and elements, and retrieval of accounting options and transaction-state values.
The package sits within the larger contract hierarchy structure, which links contracts (OKC_K_HEADERS_B) to lease headers (OKL_K_HEADERS) and eventually to individual streams represented by stream types and streams lines. Its routines depend on several foundational services: FND_API and OKL_API for the standard API framework, FND_MSG_PUB and FND_NEW_MESSAGES for message handling, FND_PROFILE for profile option retrieval, FND_CURRENCIES_VL and FND_LOOKUPS for currency and lookup validation, and OKL_STM_PVT and OKL_STREAMS_PUB for stream processing.
Key Procedures and Functions
The 27 documented procedures and functions fall into several functional groupings.
- Logging and configuration: LOG_MESSAGE writes diagnostic information, while GET_FND_PROFILE_VALUE retrieves a system profile option value. GET_ACC_OPTIONS resolves accounting options from OKL_SYS_ACCT_OPTS.
- Stream type resolution: GET_PRIMARY_STREAM_TYPE, GET_PRIMARY_STREAM_TYPE_REP, GET_DEPENDENT_STREAM_TYPE, and GET_DEPENDENT_STREAM_TYPE_REP identify the primary or dependent stream types for a contract or product, including reporting variants.
- Rounding and amounts: ROUND_STREAMS_AMOUNT and ROUND_STREAMS_AMOUNT_ESG round stream amounts according to currency precision and software-specific rounding rules.
- Accumulation: ACCUMULATE_STRM_HEADERS and ACCUMULATE_STRM_ELEMENTS aggregate stream header and element data, typically for generated temporary sets.
- State and status retrieval: GET_TRANSACTION_STATUS, GET_K_TRX_STATE, UPDATE_TRX_STATE, GET_ORP_CODE, and STRM_TMPT_CONTAINS_STRM_TYPE query or update transaction state and stream template contents.
- Pricing and detail retrieval: GET_PRICING_ENGINE identifies the pricing engine, while GET_VAR_AMORT_DETAILS, GET_BALANCE_DETAILS, and GET_LINE_ID return amortization, balance, and line identifier details used by downstream accounting routines.
Tables Accessed
The package reads and writes contract and stream data through APPS synonyms. Contract and lease headers are read from OKC_K_HEADERS_B, OKC_K_HEADERS_ALL_B, and OKL_K_HEADERS, with OKL_K_LINES providing line-level detail. Stream interface data resides in OKL_STREAM_INTERFACES, OKL_SIF_LINES, OKL_SIF_RETS, and OKL_SIF_RET_LEVELS. Stream type metadata is held in OKL_STRM_TYPE_B, temporary set data in OKL_AE_TMPT_SETS_ALL, and system accounting options in OKL_SYS_ACCT_OPTS. Product and contract-selection records come from OKL_PRODUCTS and OKL_RBK_SELECTED_CONTRACT. UTL_FILE is used for file-based logging, and FND_NEW_MESSAGES supports message construction. The package is not referenced by any database object, confirming its role as a leaf utility consumed by PL/SQL callers rather than by database constraints or triggers.
Usage Notes
OKL_STREAMS_UTIL is invoked indirectly through the lease management application. Because the ETRM metadata shows the package is referenced by 67 other packages, including OKL_STREAMS_PUB and OKL_STM_PVT, it is typically reached during contract booking, stream generation, accounting, and reporting flows rather than called from a form or concurrent program directly. Customizations should treat it as an internal utility and prefer public APIs such as OKL_STREAMS_PUB where available. Any extension must respect its dependency on FND_API error handling and the standard OKL message stack, and callers should supply validated contract and stream identifiers.
-
SYNONYM: APPS.OKL_SIF_RET_LEVELS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_RET_LEVELS, status:VALID,
-
SYNONYM: APPS.OKL_SIF_RET_LEVELS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_RET_LEVELS, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_UTIL, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_UTIL, status:VALID,
-
SYNONYM: APPS.OKL_SYS_ACCT_OPTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SYS_ACCT_OPTS, status:VALID,
-
SYNONYM: APPS.OKL_STREAM_INTERFACES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_STREAM_INTERFACES, status:VALID,
-
SYNONYM: APPS.OKL_SYS_ACCT_OPTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SYS_ACCT_OPTS, status:VALID,
-
SYNONYM: APPS.OKL_STREAM_INTERFACES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_STREAM_INTERFACES, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_PUB, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_PUB, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_WF
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_WF, status:VALID,
-
SYNONYM: APPS.OKL_SIF_YIELDS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_YIELDS, status:VALID,
-
SYNONYM: APPS.OKL_SIF_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_LINES, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_UTIL, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_UTIL_W
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_UTIL_W, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_WF
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_WF, status:VALID,
-
SYNONYM: APPS.OKL_SIF_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_LINES, status:VALID,
-
SYNONYM: APPS.OKL_SYS_ACCT_OPTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SYS_ACCT_OPTS_ALL, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_UTIL_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_UTIL_W, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_UTIL_W
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_UTIL_W, status:VALID,
-
SYNONYM: APPS.OKL_AE_TMPT_SETS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_AE_TMPT_SETS_ALL, status:VALID,
-
PACKAGE BODY: APPS.OKL_SRS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SRS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_UTIL_W
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_UTIL_W, status:VALID,
-
SYNONYM: APPS.OKL_STREAM_TRX_DATA
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_STREAM_TRX_DATA, status:VALID,
-
PACKAGE: APPS.OKL_STREAMS_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAMS_UTIL, status:VALID,
-
PACKAGE: APPS.OKL_POPULATE_PRCENG_RESULT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_POPULATE_PRCENG_RESULT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_POPULATE_PRCENG_RST_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_POPULATE_PRCENG_RST_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_CONTRACT_INFO
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CONTRACT_INFO, status:VALID,
-
SYNONYM: APPS.OKL_ST_GEN_TMPT_SETS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_ST_GEN_TMPT_SETS_ALL, status:VALID,
-
PACKAGE BODY: APPS.OKL_KRP_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_KRP_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_SEL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SEL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_POPULATE_PRCENG_RESULT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_POPULATE_PRCENG_RESULT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_GENERATE_PV_RENT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_GENERATE_PV_RENT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_EXPENSE_STREAMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_EXPENSE_STREAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_ASE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ASE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_STM_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STM_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_WF, status:VALID,
-
PACKAGE BODY: APPS.OKL_GENERATE_PV_RENT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_GENERATE_PV_RENT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_SRS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_SRS_PVT, status:VALID,
-
SYNONYM: APPS.OKL_SIF_RETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_RETS, status:VALID,
-
SYNONYM: APPS.OKL_SIF_RETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_SIF_RETS, status:VALID,
-
PACKAGE BODY: APPS.OKL_ACCRUAL_SEC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_ACCRUAL_SEC_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_POPULATE_PRCENG_RESULT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_POPULATE_PRCENG_RESULT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_STREAMS_WF
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STREAMS_WF, status:VALID,
-
PACKAGE BODY: APPS.OKL_EVERGREEN_BILLING_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_EVERGREEN_BILLING_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_POPULATE_PRCENG_RESULT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_POPULATE_PRCENG_RESULT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_POPULATE_PRCENG_RST_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_POPULATE_PRCENG_RST_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKL_STM_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_STM_PVT, status:VALID,