Search Results c_base_currency_code




Overview

APPS.AP_APXINDTL_XMLP_PKG is the server-side PL/SQL package body supporting the Oracle Payables Invoice Detail Report, an XML Publisher (BI Publisher) concurrent report registered under the AP application. The report prints invoice, distribution, and payment-schedule detail for a selected range of invoices, and the package supplies the runtime values that the report layout requires: the ledger base currency definition, translated NLS strings, company and vendor descriptive flexfield data, and dynamically constructed query predicates.

The package is a generated report data-definition package (the _XMLP_PKG naming convention). It is not a public API; its API classification is OTHER, it exposes no committed entry points, and the ETRM metadata records that it is referenced by zero other packages. Its public functions are invoked by the report trigger framework at run time, and the constants it populates — most notably the base currency code and its precision settings — are consumed by the XML layout tokens and by the lexical parameters that drive the SQL statement.

Key Procedures and Functions

Tables Accessed

The ETRM metadata documents AP_SYSTEM_PARAMETERS as the primary table referenced through APPS synonyms; the source excerpt confirms this table is joined to FND_CURRENCIES_VL in GET_BASE_CURR_DATA to obtain the base currency code, precision, minimum accountable unit, and currency description. GET_NLS_STRINGS additionally reads FND_LOOKUPS and AP_LOOKUP_CODES for translated YES/NO meanings and the NLS report parameter value. Read access is sufficient; the package performs no DML.

Usage Notes

The package is invoked exclusively by the Oracle Payables Invoice Detail Report concurrent program when that program's output format is XML Publisher. Users submit the report from the Payables responsibility; the report framework calls BEFOREREPORT, which chains into CUSTOM_INIT, GET_BASE_CURR_DATA, GET_COVER_PAGE_VALUES, GET_NLS_STRINGS, and SET_QUERY before the data model executes, then calls AFTERREPORT on completion. Custom code should treat this package as internal: because it is not a registered API and is referenced by no other packages, its functions and globals may change between patches. Any modification affects only the report's own output and should be re-applied after upgrades, as the package is regenerated by the report definition.