Search Results get_gl_period_status




Overview

OKL_ACCOUNTING_UTIL is a utility package in the Oracle Lease and Finance Management (OKL) module of Oracle E-Business Suite, owned by the APPS schema. It provides shared accounting helper routines used across the lease management subledger for currency conversion, account validation, period status checks, flexfield segment resolution, and lookup translation. The package is a foundational utility: it is referenced by 393 other packages, indicating that it underpins much of the accounting, contract, and asset processing logic in the OKL application.

The package specification declares several PL/SQL collection and record types that standardize how segment numbers, segment names, and segment descriptions are passed between OKL programs. Notably, seg_num_array_type, seg_array_type, and seg_desc_array_type support key flexfield segment handling, while error_message_type and seg_num_name_type support error propagation and segment metadata. The package also defines a large set of global constants governing error messaging and versioning, including G_UNEXPECTED_ERROR, G_VERSION_OVERLAPS, G_SQLERRM_TOKEN, G_SQLCODE_TOKEN, and the version increment constants G_INIT_VERSION, G_VERSION_MAJOR_INCREMENT, and G_VERSION_MINOR_INCREMENT. A fixed high-date constant, g_final_date, is computed from a Julian base to represent an effective end-of-time date without relying on locale-sensitive date formats.

Key Procedures and Functions

The 58 documented routines (of which the ETRM excerpt lists 20) cluster into functional groups:

Tables Accessed

The package reads from several foundation and application tables via APPS synonyms:

Usage Notes

OKL_ACCOUNTING_UTIL is invoked primarily from other PL/SQL packages within the OKL accounting and contract generation flow, as evidenced by its 393 dependent packages. It is not typically called directly from end-user forms; instead, forms, concurrent programs such as accounting generation and period-close processes, and custom extensions call it indirectly through those dependent packages. Consequently, any modification to this package carries broad impact, and it should be treated as a shared infrastructure object. Its error-message and versioning constants ensure consistent error reporting and version tracking across the OKL accounting stack in both EBS 12.1.1 and 12.2.2.