Search Results currency_where




Overview

The APPS.GL_GLYRLBGE_XMLP_PKG package body supports the Oracle General Ledger Year-End Ledger Balance report in Oracle E-Business Suite 12.1.1 and 12.2.2. It is a report-support PL/SQL package generated in the standard Oracle Reports XML Publisher (_XMLP_PKG) pattern, where database-side PL/SQL encapsulates the data-fetching, security, and derived-column logic executed by the report before and during its processing phases.

The package's central responsibility is to resolve the correct ledger and accounting period context for the user's request, then build the dynamic SQL WHERE fragments that constrain the reported balances to the appropriate accounting flexfield ranges. The BeforeReport function is the primary entry point, validating the access set, resolving the first ledger from a ledger set, mapping the requested period to its first associated period, and constructing segment-level WHERE clauses. The package is owned by APPS and is classified under OTHER in the ETRM repository, reflecting its role as report infrastructure rather than a general-purpose API. It is referenced by no other packages, confirming that its scope is confined to the report definition that invokes it.

Key Procedures and Functions

The package exposes 42 documented procedures and functions. The most significant groups are:

Tables Accessed

The package reads from three documented tables through APPS synonyms:

  • GL_ACCESS_SETS — Queried in BeforeReport to obtain the access set name and chart of accounts identifier (CHART_OF_ACCOUNTS_ID), which populate the ACCESS_NAME and STRUCT_NUM report columns and drive accounting flexfield structure awareness.
  • GL_LEDGERS — Used to obtain ledger attributes such as ledger name and functional currency for the resolved target ledger.
  • GL_PERIOD_STATUSES — Used by the period-resolution logic to determine the first period and its associated status for balance reporting.

Usage Notes

GL_GLYRLBGE_XMLP_PKG is invoked exclusively by the XML Publisher report definition for the General Ledger year-end ledger balance report. It is not registered as a concurrent program directly and is not called by other PL/SQL packages. Administrators encounter it when the report raises error -20101, typically caused by an invalid ledger set, an unresolvable ledger currency, or a period name with no corresponding first period. In the context of the user's search for currency_where, the package's currency handling flows through P_LEDGER_CURRENCY and the ledger-resolution utilities, which ultimately influence the currency-driven WHERE constructs applied to the balance query. Customizations should avoid modifying this generated package body, as it is regenerated by the report definition and any direct changes will be overwritten.