Search Results get_ledger_id




Overview

The APPS.GCS_DRILLDOWN_UTIL_PKG package is a utility package within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 architecture, operating under the Oracle General Ledger Consolidation and financial reporting framework. Its primary business function is to support the drilldown and navigation capabilities provided by the Oracle Financial Consolidation Hub (FCH) and General Ledger (GL) integration components. Specifically, this package encapsulates a set of helper functions designed to resolve contextual metadata—such as ledger identifiers, currency codes, source system codes, and calendar period mappings—from an entity_id and related hierarchy parameters.

The package acts as a bridge between the consolidation engine and the underlying reporting or drilldown infrastructure. It enables users to navigate from an aggregated or summarized financial figure back to its originating source data by programmatically resolving the associated ledger and calendar attributes. This is essential for audit compliance, reconciliation, and management reporting within multi-org and multi-ledger configurations. The header indicates a relatively stable source version (120.2, last updated in 2007), suggesting the package has been part of the EBS codebase for many release cycles and remains compatible with the 12.1.1 and 12.2.2 releases.

Key Procedures and Functions

The package exposes eight documented functions, all of which are read-only utilities that return scalar values based on input parameters. They are grouped by functional area:

  • GET_CURRENCY_CODE — Returns the currency code associated with a given hierarchy and entity. This supports display and validation of currency-specific amounts in drilldown views.
  • GET_LEDGER_ID — Overloaded to accept either an entity alone or an entity plus a calendar period string. Returns the ledger identifier that corresponds to the entity or entity-period combination. This is the primary function of interest when searching for "get_ledger_id."
  • GET_SRC_SYS_CODE — Overloaded similarly to return the source system code for an entity, optionally filtered by a calendar period.
  • GET_DATASET_CODE — Returns the dataset code for an entity and a pristine calendar period identifier string.
  • GET_PRISTINE_CAL_PERIOD_ID — Returns the pristine calendar period identifier string for an entity and an FCH calendar period identifier.
  • URL_ENCODE — Encodes a string for safe inclusion in a URL, leveraging the UTL_URL utility. This supports hyperlink generation for drilldown navigation.

No initialization, exception handling, or write procedures are documented within this package; it is strictly a read-only resolution utility.

Tables Accessed

The package references a defined set of base and attribute tables via APPS synonyms, which are queried to resolve the returned identifiers:

  • FEM_CAL_PERIODS_ATTR and FEM_CAL_PERIODS_B — Used to map calendar period identifiers and their attributes for enterprise entities.
  • FEM_ENTITIES_ATTR — Provides entity-level attributes for resolving ledger and source system context.
  • GCS_CAL_PERIOD_MAPS and GCS_CAL_PERIOD_MAP_DTLS — Consolidation calendar period mapping tables, essential for translating between period representations (e.g., FCH to pristine).
  • GCS_DATA_SUB_DTLS — Contains submission detail data used to determine dataset codes and related source information.
  • GCS_ENTITIES_ATTR and GCS_ENTITY_CONS_ATTRS — Store entity-level and consolidation-specific attributes for resolving ledger IDs and currency codes.
  • UTL_URL — An Oracle-supplied PL/SQL utility package (not a table) used by URL_ENCODE for URL escaping.

All accesses are read-only lookups, consistent with the package's role as a metadata resolution helper.

Usage Notes

GCS_DRILLDOWN_UTIL_PKG is typically invoked from PL/SQL-based drilldown logic, custom concurrent programs, or Oracle Forms personalizations that implement navigation from consolidation outputs back to source ledger data. Because it is referenced by zero other packages according to the ETRM metadata, it is not a base dependency for other EBS modules; instead, it is called directly by custom code or UI components when a user clicks a drilldown link or requests context resolution. The overloaded GET_LEDGER_ID function is especially relevant when a caller has an entity and optionally a period string and needs the correct ledger for querying balances or journal lines. Developers should note that the package returns NUMBER or VARCHAR2 values and does not raise business exceptions; callers must handle null or invalid returns appropriately. Given its long-standing version, it is safe to use in both 12.1.1 and 12.2.2 environments without modification.