Search Results set_ledger




Overview

GL_MC_INFO is a multi-currency and multiple reporting currency (MRC) information package within the Oracle E-Business Suite General Ledger module. Its principal responsibility is to expose metadata about ledgers, sets of books, legal entities, and balancing segment values to other PL/SQL constructs in the EBS application stack without requiring each caller to re-query the underlying configuration tables. The package declares an extensive set of PL/SQL collection types and record structures — including r_sob_rec, r_sob_rec_col, r_sob_list, and r_ael_sob_info — that allow bulk retrieval of set of books and ledger attributes in a single database round trip.

The package carries the AUTHID CURRENT_USER directive, meaning its SQL statements execute with the privileges of the invoking user rather than the definer (APPS). This is significant because GL_MC_INFO is invoked from a wide variety of contexts, including concurrent programs and forms, where the invoking session's security profile and organization context must be respected. The inclusion of procedures such as SET_ORG_ID and SET_LEDGER demonstrates that the package maintains session-level context that drives the behavior of its subsequent retrieval functions.

Key Procedures and Functions

The 39 documented procedures and functions fall into several functional groupings:

Tables Accessed

GL_MC_INFO reads from GL_LEDGERS, GL_LEDGER_CONFIG_DETAILS, and GL_LEDGER_RELATIONSHIPS to resolve ledger identity, configuration, and inter-ledger relationships. GL_LEDGER_NORM_SEG_VALS and GL_LEDGER_BSV_GT support balancing segment value resolution, while GL_LEDGER_LE_BSV_GT and XLE_ENTITY_PROFILES supply legal entity information. FND_CURRENCIES, FND_PRODUCT_GROUPS, FND_FLEX_VALUE_SETS, and FND_FLEX_VALIDATION_TABLES provide currency and key flexfield metadata. FA_MC_BOOK_CONTROLS is referenced for multi-currency asset book configuration. DBMS_APPLICATION_INFO, DBMS_SQL, and DUAL are used for session context and dynamic SQL support.

Usage Notes

GL_MC_INFO is a foundational utility invoked by approximately 31 other packages across the EBS schema. It is not typically called directly by end users but rather by General Ledger forms, concurrent programs, and application APIs that require ledger or reporting currency metadata. Custom code should invoke the setter routines to establish context before calling any retrieval functions, and should always test ALC_ENABLED or MRC_ENABLED before assuming the presence of reporting ledger or MRC structures. Because the package uses AUTHID CURRENT_USER, callers must possess appropriate privileges on the underlying tables for the queries to succeed.