Results for “pa_debug_mode”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
APPS.PA_BILLING_PROCESS_PKG is a server-side PL/SQL package body within the Oracle E-Business Suite Projects (PA) application. It supports the revenue adjustment and billing generation cycle by identifying eligible contract projects, their tasks, and their associated revenue and funding records, then processing them so that draft revenue and billing distributions are created or adjusted correctly. The package is classified under ETRM as an "OTHER" API, meaning it is primarily an internal engine rather than a public, supported interface. Its header version (120.0.12010000.1) confirms it is a core billing-process component shipped with EBS 12.1.1 and carried forward into 12.2.2.
A distinctive feature is its use of the global pa_debug_mode variable. When this variable is set to 'Y', the package emits trace messages through PA_MCB_INVOICE_PKG.log_message, allowing implementers and support analysts to follow execution flow during revenue adjustment runs. This is the mechanism most commonly associated with the user search term "pa_debug_mode".
Key Procedures and Functions
The ETRM metadata documents a single procedure:
- PA_PROCESS_REV_ADJ — The main driver of the package. It accepts parameters covering a single project ID, a project number range (from/to), a mass-generation flag, and an accounting-through date. Internally it converts the mass-generation flag into a 'N'/'E' mode value, defaults the accounting-through date to SYSDATE when null, and honors
pa_debug_modefor logging.
The procedure declares several cursors that define its working set: cproj selects contract-classified projects within the supplied number range (or the single project); ctask selects chargeable tasks whose top task is ready to distribute; cspf checks for baselined revenue-processing amounts in PA_SUMMARY_PROJECT_FUNDINGS; and cdri identifies unreleased draft revenues. Together these cursors determine which projects qualify for revenue adjustment processing and iteration.
Tables Accessed
The package reads and writes the following documented tables (via APPS synonyms):
- PA_PROJECTS / PA_PROJECTS_ALL / PA_PROJECT_TYPES — drive project selection and contract classification.
- PA_TASKS — determines task-level chargeability and distribution readiness.
- PA_SUMMARY_PROJECT_FUNDINGS — validates baselined funding amounts (index hint PA_SUMMARY_PROJECT_FUNDINGS_U1).
- PA_DRAFT_REVENUES — checks for unreleased, error-flagged draft revenue rows.
- PA_BILLING_ASSIGNMENTS, PA_BILLING_EXTENSIONS — supply billing rules and extension logic.
- PA_CUST_REV_DIST_LINES, PA_CUST_EVENT_REV_DIST_LINES — receive/generate customer revenue distribution lines.
- PA_EVENTS / PA_EXPENDITURE_ITEMS / PA_EXPENDITURE_ITEMS_ALL — provide event and expenditure basis for revenue calculations.
- DUAL — standard single-row utility queries.
Usage Notes
PA_BILLING_PROCESS_PKG is invoked indirectly during billing and revenue adjustment workflows—typically triggered by the Generate Draft Revenue concurrent program or by forms and concurrent processes that call the billing process engine internally. It is not intended for direct customer invocation and is referenced by no other documented packages. Custom code should avoid calling PA_PROCESS_REV_ADJ directly; instead, use supported public APIs. When diagnosing behavior, setting the session/profile value behind pa_debug_mode to 'Y' activates the embedded log_message trace statements, which is the standard means of gathering diagnostic output from this package across both 12.1.1 and 12.2.2.