Search Results free_ae_cache
Overview
XLA_AE_JOURNAL_ENTRY_PKG is a core PL/SQL package in the Oracle E-Business Suite Subledger Accounting (SLA) architecture, owned by the APPS schema. Its primary business function is to build, persist, and manage journal entry data generated by the Subledger Accounting Engine. The package transforms accounted events into the XLA_AE_HEADERS and XLA_AE_LINES structures that ultimately feed the General Ledger interface. Because SLA is the single accounting engine shared by Payables, Receivables, Assets, and other subledgers, this package sits at a critical junction between event accounting and GL posting.
As reflected in its header history, the package evolved substantially to support the bulk (array-based) processing approach introduced for the Accounting Engine, performance tuning (including FFG changes for bulk performance), and the Ledger Currency Project. It is heavily reused across the application, referenced by 56 other packages, which underscores its role as a foundational utility rather than a narrow, purpose-specific routine.
Key Procedures and Functions
ETRM documents ten procedures and functions, including:
- GETLEDGERSINFO — Retrieves ledger information used to drive journal entry creation, populating the internal ledger cache. Modified as part of the bulk performance enhancements.
- GETALTERNATECURRENCYLEDGER — Returns the alternate currency ledger associated with a given accounting context, supporting reporting and secondary ledger currency requirements.
- GETTRANSLATEDEVENTINFO — Obtains translated event information, relevant where events must be converted between currencies.
- SET_EVENT_INFO — Added during the bulk performance work to populate event-related global structures (event cache), replacing the earlier cache_event_info routine.
- SETPRODUCTACCTDEFINITION — Retrieves product accounting definitions used to determine the accounting treatment for a transaction.
- INSERTJOURNALENTRIES — The principal write routine, bulk-inserting journal entry headers and lines into the AE tables.
- UPDATEJOURNALENTRYSTATUS — Updates the status of journal entries, for example marking them processed, invalid, or finalized.
- UPDATERESULT — Persists processing outcomes back to the relevant records, including diagnostic or result tracking.
- FREE_AE_CACHE — Releases memory held by the package's cached PL/SQL global structures (ledger, event, and accounting caches) once processing completes. This is the routine associated with the search term "free_ae_cache," and it is essential for avoiding session memory bloat in long-running accounting engine executions.
No parameter lists are documented in the ETRM metadata, so signatures are intentionally omitted here.
Tables Accessed
The package reads and writes the principal SLA accounting tables and supporting reference data. Among the documented tables referenced via APPS synonyms:
- XLA_AE_HEADERS, XLA_AE_LINES — the persistent journal entry header and line tables populated by INSERTJOURNALENTRIES.
- XLA_AE_HEADERS_GT, XLA_AE_LINES_GT — global temporary tables used as staging areas for bulk processing.
- XLA_AE_HEADER_ACS, XLA_AE_LINE_ACS — the corresponding archived/change structures that track the accounting data lifecycle.
- XLA_EVENTS_GT, XLA_DISTRIBUTION_LINKS — supply event and distribution information for entry construction.
- XLA_EVENT_CLASSES_TL, XLA_EVENT_TYPES_TL, XLA_PRODUCT_RULES_TL — translated reference data for classifying events and deriving accounting rules.
- GL_CODE_COMBINATIONS — validates and supplies accounting flexfield combinations referenced by journal lines.
- XLA_DIAG_EVENTS, XLA_DIAG_LEDGERS — support the Accounting Event Extract Diagnostics feature added in October 2004.
- XLA_GL_SL_LINK_ID_S — sequence source for linking SLA journal entries to GL.
Usage Notes
This package is not typically invoked directly by end users. It is called internally by the Subledger Accounting Program and by the Create Accounting concurrent programs, and it is referenced by dozens of other SLA packages. The bulk-oriented design means callers generally execute it within array-based processing loops and must invoke FREE_AE_CACHE to release the package globals when a run completes. Custom developers extending SLA processing occasionally call these routines, but doing so should follow Oracle's supported extension patterns, since the caches and global structures are shared across the accounting engine session.
-
PACKAGE: APPS.XLA_AE_JOURNAL_ENTRY_PKG
12.1.1
-
PACKAGE: APPS.XLA_AE_JOURNAL_ENTRY_PKG
12.2.2
-
APPS.XLA_AE_JOURNAL_ENTRY_PKG dependencies on XLA_AE_JOURNAL_ENTRY_PKG
12.2.2
-
APPS.XLA_AE_JOURNAL_ENTRY_PKG dependencies on XLA_AE_JOURNAL_ENTRY_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_AE_JOURNAL_ENTRY_PKG
12.2.2
-
APPS.XLA_AE_JOURNAL_ENTRY_PKG dependencies on XLA_EXCEPTIONS_PKG
12.2.2
-
APPS.XLA_AE_JOURNAL_ENTRY_PKG dependencies on XLA_EXCEPTIONS_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_AE_JOURNAL_ENTRY_PKG
12.1.1