Search Results get_default_country




Overview

HZ_MO_GLOBAL_CACHE is an Oracle EBS Release 12 (12.1.1 and 12.2.2) PL/SQL package owned by the APPS schema and defined with AUTHID CURRENT_USER. It belongs to the Oracle Receivables and Trading Community (HZ) modules, providing a centralized, in-memory caching layer for organization-level and system-level setup attributes. The package exposes a collection of strongly typed PL/SQL tables and record types—including OrgIDTable, AutoSiteNumberingTable, DefaultCountryTable, SetOfBooksIDTable, ChartOfAccountsIDTable, LocationStructureIDTable, TaxMethodTable, AddressValTable, and ReciprocalFlagTable—plus composite record types such as GlobalsRecord and GlobalsTable, whose fields mirror the columns of AR_SYSTEM_PARAMETERS_ALL and GL_SETS_OF_BOOKS.

Its core purpose is to reduce repetitive, high-cost queries against AR_SYSTEM_PARAMETERS_ALL, HR_ORGANIZATION_INFORMATION, and GL_SETS_OF_BOOKS by materializing frequently accessed configuration values into memory for the duration of a session. Business functions served include customer and site number generation, tax configuration, address validation, location structure determination, chart of accounts and set of books resolution, and reciprocal customer handling.

The API classification is OTHER, and the package is referenced by eight other packages in the E-Business Suite, confirming its role as shared infrastructure for forms, concurrent programs, and other PL/SQL APIs within the Order-to-Cash and Trading Community processes.

Key Procedures and Functions

The package exposes fourteen documented procedures and functions. RETRIEVE_GLOBALS is the master loader that populates the internal global cache collections from AR_SYSTEM_PARAMETERS_ALL and GL_SETS_OF_BOOKS in a single read.

Tables Accessed

The package reads AR_SYSTEM_PARAMETERS_ALL and AR_SYSTEM_PARAMETERS for Receivables system parameters including auto site numbering, default country, location structure, tax method, address validation, and reciprocal flag. HR_ORGANIZATION_INFORMATION supplies organization identifiers used to build the OrgIDTable collection. GL_SETS_OF_BOOKS provides set of books and chart of accounts identifiers. PLITBLM is referenced for PL/SQL table processing utilities. All access is performed through APPS synonyms. The package is primarily read-only, serving as a caching reader rather than a data-maintenance interface.

Usage Notes

HZ_MO_GLOBAL_CACHE is typically invoked implicitly by Receivables and Trading Community forms, concurrent programs, and dependent PL/SQL APIs that require repeated access to organization and system parameters. Callers generally invoke RETRIEVE_GLOBALS once at the start of a session to prime the global cache, then call the individual GET_* functions to retrieve specific values without repeated table access. In custom development, the package should be treated as a performance-oriented buffer; direct calls are appropriate when the same setup attributes are needed many times within a single logical transaction or processing loop.