Search Results contra_acct_valueformula




Overview

APPS.GL_GLWACCTR_XMLP_PKG is the concurrent program support package behind the Oracle General Ledger Account Analysis Report (the "GLWACCTR" report), rendered through the Oracle XML Publisher (BI Publisher) engine. It is an AUTHID CURRENT_USER package, meaning its unqualified PL/SQL objects resolve against the calling schema, which is an essential characteristic for a report package that must execute under the identity of the requesting user while reading ledger data filtered through data access sets.

The package encapsulates the entire execution lifecycle of the Account Analysis Report: it declares the report's parameter globals, defines the lexical substitution strings that shape the dynamic SQL WHERE clauses, supplies the report-level "formula" functions that XML Publisher invokes for derived column values, and performs post-processing in the AFTERREPORT routine. Searches for select_account map here because the package exposes the SELECT_ACCT_SEGMENT global (defaulted to 'cc.segment3') and the companion SELECT_BAL_SEGMENT global (defaulted to 'cc.segment1'), which together determine which accounting flexfield segments the report uses to select account balances versus balancing values. This makes the package the control point for how account-level drill-down is defined for the report.

Key Procedures and Functions

The 102 documented units fall into several recognizable groups. The report entry and cleanup routines include AFTERREPORT, which runs following data retrieval to finalize state, and SET_DATE_FORMAT, which establishes the date formatting conventions used throughout the report.

The largest group is the FORMULA functions, which XML Publisher calls per row to compute display values. These include:

Collectively these functions centralize display derivation logic so the report template remains declarative while business rules stay in PL/SQL.

Tables Accessed

Documented access via APPS synonyms covers both configuration and transactional reference data:

Usage Notes

This package is invoked by the Account Analysis Report concurrent program as its XML Publisher data definition. Parameters are passed from the concurrent request form (ledger, currency, date range, posting status, amount range, document ranges, category, source, batch name, contra account, and page break options) and bound to the package globals enumerated above. The C_PARAM_START_DATE, C_PARAM_END_DATE, and C_DATE_FORMAT variables support date-parameter lexical substitution, and P_PERF_FROM_CLUASE carries an additional performance-oriented WHERE fragment. Because the package is AUTHID CURRENT_USER, it should be executed from a concurrent program or calling session where the user's access set context is properly established. The ETRM metadata records zero referencing packages, indicating that GL_GLWACCTR_XMLP_PKG is intended as a self-contained report-support unit rather than a shared API; custom code should call the concurrent program rather than the package procedures directly.