Search Results p_location
Overview
XLA_CONTEXT_PKG is the application context management package for the Oracle E-Business Suite Subledger Accounting (XLA) product family. Its documented purpose is to set attribute values for the application context namespace "XLA," which is the session-level namespace used across Oracle EBS to expose runtime parameters to database views, Virtual Private Database policies, and SQL predicates that depend on the current session state.
The package body is registered under the APPS schema and classified as OTHER in the ETRM 12.2.2 inventory. The package operates as a thin wrapper around Oracle's built-in DBMS_SESSION and DBMS_LOCK packages, using DBMS_SESSION.SET_CONTEXT to write namespace attributes and related facilities to read, increment, and clear them. It is foundational infrastructure: the ETRM metadata records that it is referenced by 49 other packages, meaning a substantial portion of the XLA and general ledger processing stack depends on the context values this package establishes.
The source header (xlacmctx.pkb, version 120.7, last shipped 12-Jan-2011) confirms the package was created in January 2003 and extended in April 2003 with the accounting error context routines. A further revision in October 2005 supported Multi-Period Accounting (MPA) report changes, which accounts for the MPA accrual context routines present in the documented procedure list.
Key Procedures and Functions
The 25 documented routines fall into functional groups that map to the distinct context attributes the package maintains.
- SET_SECURITY_CONTEXT — establishes the security context for the session, the base entry point listed first among the public routines in the source header.
- Accounting error context: SET_ACCT_ERR_CONTEXT, GET_ACCT_ERR_CONTEXT, INCREMENT_ACCT_ERR_CONTEXT, and CLEAR_ACCT_ERR_CONTEXT. These set, retrieve, advance, and reset the accounting error identifier held in the XLA namespace, supporting error tracking during subledger accounting runs.
- MPA accrual context: SET_MPA_ACCRUAL_CONTEXT, GET_MPA_ACCRUAL_CONTEXT, and CLEAR_MPA_ACCRUAL_CONTEXT. Added in the 2005 MPA report revision to carry accrual-related state.
- Event context: SET_EVENT_COUNT_CONTEXT, GET_EVENT_COUNT_CONTEXT, SET_EVENT_NOHDR_CONTEXT, GET_EVENT_NOHDR_CONTEXT, and CLEAR_EVENT_CONTEXT. These manage subledger event counters and a no-header indicator used when processing events without header records.
- Event set identifier: SET_EVENT_SET_ID_CONTEXT, which exposes the active event set to downstream SQL.
- Request identifiers: SET_REQUEST_ID_CONTEXT and SET_REPORT_REQUEST_ID_CONTEXT, which publish the current concurrent request identifier and its reporting counterpart.
- Processing order: SET_PROCESSING_ORDER_CONTEXT, used to serialize or sequence accounting processing.
- General balance context: SET_GEN_BAL_CONTEXT, GET_GEN_BAL_CONTEXT, and CLEAR_GEN_BAL_CONTEXT, which manage general balance state within the namespace.
Tables Accessed
The package does not reference application tables directly. ETRM documents only two dependencies, both via APPS synonyms: DBMS_LOCK and DBMS_SESSION. DBMS_SESSION provides the SET_CONTEXT, CLEAR_CONTEXT, and related calls that read and write namespace attributes; DBMS_LOCK is used to serialize access to context state so that concurrent sessions cannot corrupt shared attribute values. Because all state is held in the session namespace rather than persisted to a table, the package is lightweight but its effects are session-scoped and lost when the session ends.
Usage Notes
XLA_CONTEXT_PKG is an infrastructure package rather than a user-facing API. It is invoked programmatically by the 49 dependent packages identified in the ETRM metadata, typically at the start of subledger accounting processing to populate the XLA namespace, and again at the end of processing to clear it. Concurrent programs that run Create Accounting and related XLA processes rely on these routines to make request identifiers, event counts, event set identifiers, accounting error identifiers, and MPA accrual values visible to SQL executed later in the same session.
Because the values are session-scoped, callers must set the context in the same session that subsequently queries it; setting context in a parent session does not propagate to a child session or to a separate database connection. Integration and custom code should mirror the standard pattern: set the relevant context at the beginning of the unit of work, read or increment it as processing proceeds, and always clear it on completion to avoid stale state affecting later operations in a reused connection.
-
PACKAGE BODY: APPS.XLA_CONTEXT_PKG
12.2.2
-
APPS.XLA_EVENTS_PUB_PKG SQL Statements
12.2.2
-
APPS.XLA_EVENTS_PUB_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.CSTPIDIC
12.1.1
-
PACKAGE BODY: APPS.CSTPIDIC
12.2.2
-
PACKAGE BODY: APPS.XLA_CONTEXT_PKG
12.1.1
-
PACKAGE: APPS.HR_KI_UI_CONTEXTS_BK1
12.1.1
-
APPS.PQH_FR_STAT_SITUATIONS_API SQL Statements
12.2.2
-
APPS.PQH_FR_STAT_SITUATIONS_API SQL Statements
12.1.1
-
PACKAGE: APPS.HR_KI_UI_CONTEXTS_BK1
12.2.2
-
APPS.JTF_RS_UPDATE_LOCATION_PUB SQL Statements
12.1.1
-
APPS.PO_POXRVXRV_XMLP_PKG SQL Statements
12.2.2
-
APPS.XLA_ANALYTICAL_CRITERIA_PKG SQL Statements
12.1.1
-
APPS.XLA_ANALYTICAL_CRITERIA_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.HR_KI_UI_CONTEXTS_API
12.2.2
-
PACKAGE BODY: APPS.HR_KI_UI_CONTEXTS_API
12.1.1
-
APPS.JTF_RS_UPDATE_LOCATION_PUB SQL Statements
12.2.2
-
PACKAGE: APPS.GML_MOBILE_MOVE_ORDER
12.1.1
-
PACKAGE: APPS.GML_MOBILE_MOVE_ORDER
12.2.2
-
PACKAGE BODY: APPS.HR_KI_UI_CONTEXTS_BK1
12.1.1
-
PACKAGE BODY: APPS.HR_KI_UI_CONTEXTS_BK1
12.2.2
-
PACKAGE BODY: APPS.GML_MOBILE_MOVE_ORDER
12.1.1
-
APPS.XLA_CONTROL_ACCOUNTS_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.GML_MOBILE_MOVE_ORDER
12.2.2
-
APPS.XLA_CONTROL_ACCOUNTS_PKG SQL Statements
12.1.1
-
APPS.IGS_AD_WRKFLOW_PKG SQL Statements
12.1.1
-
APPS.GML_INTORD_LOT_STS SQL Statements
12.2.2
-
PACKAGE BODY: APPS.CSTPACOV
12.2.2
-
APPS.GML_INTORD_LOT_STS SQL Statements
12.1.1
-
PACKAGE BODY: APPS.XLA_ACCT_SETUP_PUB_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_ACCT_SETUP_PUB_PKG
12.2.2
-
APPS.CSTPIDIC SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PO_POXRQUNI_XMLP_PKG
12.2.2
-
APPS.CSTPIDIC SQL Statements
12.2.2
-
PACKAGE BODY: APPS.XLA_VALIDATIONS_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_VALIDATIONS_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_ENVIRONMENT_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_ENVIRONMENT_PKG
12.1.1
-
PACKAGE BODY: APPS.PO_POXRQUNI_XMLP_PKG
12.1.1
-
PACKAGE: APPS.PAY_GET_TAX_EXISTS_PKG
12.1.1
-
APPS.HR_RETAINED_RIGHTS_API SQL Statements
12.2.2
-
PACKAGE BODY: APPS.XLA_EVENTS_PUB_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_OA_FUNCTIONS_PKG
12.2.2
-
APPS.HR_RETAINED_RIGHTS_API SQL Statements
12.1.1
-
APPS.PQH_FR_STAT_SITUATIONS_SWI SQL Statements
12.2.2
-
PACKAGE BODY: APPS.XLA_OA_FUNCTIONS_PKG
12.1.1
-
PACKAGE: APPS.PAY_GET_TAX_EXISTS_PKG
12.2.2
-
PACKAGE BODY: APPS.PQH_FR_STAT_SITUATIONS_API
12.1.1
-
APPS.PQH_FR_STAT_SITUATIONS_SWI SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PQH_FR_STAT_SITUATIONS_API
12.2.2