Search Results p_line_num




Overview

XLA_AE_LINES_PKG is the core PL/SQL package body in the Oracle E-Business Suite Subledger Accounting (XLA) module responsible for constructing, populating, and maintaining the individual accounting entry lines that comprise a subledger journal entry. Every accounting event that flows through Subledger Accounting ultimately resolves into a set of debit and credit lines stored in XLA_AE_LINES, and this package is the primary programmatic mechanism by which those lines are built, refreshed, reversed, and validated. It operates under the APPS schema and is classified as an "OTHER" API, meaning it is intended principally for internal use by the accounting engine rather than as a published extension interface. The package depends on a broad set of XLA and GL objects, reflecting its central position in the accounting generation pipeline. The documented object is marked VALID in ETRM for release 12.2.2.

Key Procedures and Functions

The package exposes a large procedural surface — 39 documented procedures and functions — that together model the lifecycle of an accounting line. Documented members include INITLINES, which initializes line records prior to population; SETEXTRACTLINE, SETNULLLINE, and SETNEWLINE, which handle extraction and instantiation of new line structures; SETLINEDESCRIPTION and SETLINENUM, which manage descriptive text and line sequencing; and SET_CCID and SET_SEGMENT, which resolve the accounting flexfield code combination and individual segments for a line. Accounting classification is handled through SETACCTLINETYPE, SETACCTLINEOPTION, and SETACCTCLASS, while analytical criteria are applied via SETANALYTICALCRITERIA. INSERTLINES persists the assembled line records, and REFRESHLINES rebuilds existing lines when source data changes. Reversal processing is served by SETREVACCOUNTINGSOURCE, ACCOUNTINGREVERSAL, and SETACCTREVERSALATTRS. SET_AE_HEADER_ID binds lines to their parent header, SETLINEACCTATTRS applies line-level accounting attributes, and VALIDATECURRENTLINE performs validation checks on the line under construction. Parameter lists are intentionally not enumerated here.

Tables Accessed

The package reads and writes the central Subledger Accounting tables. XLA_AE_LINES is the primary target, with XLA_AE_HEADERS and their global temporary counterparts XLA_AE_HEADERS_GT and XLA_AE_LINES_GT used during in-memory assembly and processing. XLA_AE_LINE_ACS holds supporting line account data. Source and event information is drawn from XLA_EVENTS, XLA_EVENTS_GT, XLA_TRANSACTION_ENTITIES, XLA_TRANSACTION_ACCTS_GT, and XLA_DISTRIBUTION_LINKS, which link transactions to their accounting distributions. General Ledger integration relies on GL_CODE_COMBINATIONS, GL_LEDGERS, GL_LEDGER_RELATIONSHIPS, GL_PERIOD_STATUSES, and FND_CURRENCIES for code combination validation, ledger context, period status, and currency handling.

Usage Notes

XLA_AE_LINES_PKG is invoked automatically by the Subledger Accounting program and Create Accounting concurrent programs during the accounting generation cycle; it is documented as referenced by 51 other database objects, indicating deep integration across the XLA engine. It is not referenced by any object outside APPS. Because it is classified as OTHER and is not a supported public API, custom code should not call it directly. Extensions requiring changes to accounting line generation should instead use the supported Subledger Accounting customization framework, such as custom accounting methods, application accounting definitions, and descriptive flexfields.