Search Results get_current_pa_period




Overview

PA_ACCUM_UTILS is a public PL/SQL utility package in the Oracle EBS Projects (PA) application, owned by APPS and declared with AUTHID CURRENT_USER. It provides the core programmatic services that support the Project Accumulation (PA_ACCUM) feature set in EBS 12.1.1 and 12.2.2. Project Accumulation maintains summarized actual, commitment, and budget balances for a project, task, and resource combination across PA and GL periods, and PA_ACCUM_UTILS supplies the shared helper routines that determine when to accumulate, which period is current, and how header and detail records in the PA_PROJECT_ACCUM_* tables are established and maintained. Its responsibilities include verifying the existence of project-level accumulation records, deriving the accumulation option (PA period versus GL period) from PA_IMPLEMENTATIONS, resolving current and prior period information, and ensuring the header/detail hierarchy is consistent. Because it is broadly referenced—nineteen other packages call into it—it functions as an infrastructure layer rather than an end-user-facing API.

Key Procedures and Functions

The package exposes roughly twenty-four documented procedures and functions. Grouped by purpose, they are:

Tables Accessed

The package reads and writes against several Projects and General Ledger tables. It queries and maintains PA_PROJECT_ACCUM_HEADERS and PA_PROJECT_ACCUM_HEADERS_S, along with the detail tables PA_PROJECT_ACCUM_ACTUALS, PA_PROJECT_ACCUM_BUDGETS, and PA_PROJECT_ACCUM_COMMITMENTS, which hold accumulated balances by project, task, and resource. Project and task hierarchy context comes from PA_PROJECTS, PA_TASKS, and PA_PROJECT_TYPES. Configuration and period definitions are drawn from PA_IMPLEMENTATIONS, PA_PERIODS, PA_TXN_ACCUM, PA_RESOURCE_ACCUM_DETAILS, PA_ACCUM_COLUMNS, and GL_PERIOD_STATUSES. DUAL is used for single-row context queries.

Usage Notes

PA_ACCUM_UTILS is invoked indirectly rather than directly by end users. It is called by accumulation processing, project summary generation, and the other Projects packages that reference it, and it executes within the standard EBS APPS schema with AUTHID CURRENT_USER and the usual MO: Operating Unit and MO: Security Profile considerations. Customizations should call its documented procedures rather than replicate accumulation logic, and any direct use should respect the period, implementation option, and header/detail preconditions enforced by PROJ_LEVEL_RECORD and the CHECK_* routines.