Search Results get_defaultlegalcontext_ou




Overview

XLE_UTILITIES_GRP is a utility package body in the APPS schema that supports the Oracle E-Business Tax (E-Business Tax / ETRM) infrastructure, specifically the Legal Entity and First Party registration data model introduced in Release 12. The "GRP" suffix identifies it as a grouping package, i.e. a procedural container that bundles related helper routines rather than exposing a single functional API. Its role is to centralize frequently required lookups and derivations against legal entities, establishments, registrations, operating units, ledgers and first-party (first party) tax profiles, so that other E-Business Tax and Financials products can retrieve consistent answers without duplicating SQL against the underlying XLE, ZX, HR and HZ tables. Because these are commonly reused derivations (for example, resolving the legal entity behind an operating unit, or determining whether a party identifier represents an establishment), the package is referenced by 34 other packages and is not itself dependent on exotic callers, making it a low-level shared utility. The package body is currently VALID, has no invalid subobjects and is not referenced by any database object (only by PL/SQL packages).

Key Procedures and Functions

The documented interface exposes 21 procedures and functions. They fall into recognizable groups:

Because each routine is a small, independently callable helper, callers select only the accessor they need rather than invoking a monolithic API. The package therefore does not raise standard FND_API exception stacks universally; several routines rely on FND_MSG_PUB for messages and FND_API for standard API conventions when a diagnostic is required.

Tables Accessed

The package reads and maintains data across the E-Business Tax and Trading Community foundations:

Reads dominate; where writes occur they are typically limited to history/association maintenance supporting legal entity profile changes rather than transactional data.

Usage Notes

XLE_UTILITIES_GRP is a server-side utility intended for invocation from other PL/SQL packages, forms and concurrent programs. Typical callers include E-Business Tax registration and configuration flows, Legal Entity configuration (Legal Entity Configurator), and any Financials process that must determine the legal entity or first party behind an operating unit, ledger or party identifier. Because it is referenced by 34 packages but does not itself reference other application packages for its core derivations, custom code should call it rather than re-implement the same lookups, ensuring consistent results with the seeded E-Business Tax logic. The package is documented as valid in 12.1.1 and 12.2.2; behaviour is understood to be stable across those releases, and any code that reads XLE tables directly should be redirected through these accessors to insulate against underlying view or table changes. Custom callers should expect the routines to consume standard operating unit, party and ledger identifiers as inputs and to rely on documented XLE/ZX views for the returned values.