Search Results get_etc_to_period




Overview

PA_FP_GEN_FCST_PG_PKG is an Oracle Projects PL/SQL package in the APPS schema that supports the forecast generation subsystem of Oracle Project Management and Oracle Project Billing. Its name reflects its role as the packaging layer ("PG") for forecast generation ("GEN_FCST") within Oracle Projects financial planning ("PA_FP"). The package exposes a set of query and validation routines that resolve the version-level attributes required before a forecast or budget version can be generated, copied, or recalculated.

In Oracle EBS 12.1.1 and 12.2.2, forecasts and budget versions are stored in PA_BUDGET_VERSIONS, and generation behaviour is governed by options held in PA_PROJ_FP_OPTIONS. This package serves as the authoritative access point for those option and version attributes. Because many of the functions accept P_BUDGET_VERSION_ID, the package is directly relevant to callers that must determine, for a specific version, the actuals period range, the estimate-to-complete (ETC) period range, the treatment of unspent amounts, and the version type. The package also implements the validation logic that guards these operations, raising or reporting errors before generation proceeds.

Key Procedures and Functions

The documented routines fall into three categories: attribute getters, version detail access, and validations.

Tables Accessed

The package reads and writes against the following documented tables and synonyms:

Usage Notes

PA_FP_GEN_FCST_PG_PKG is not an end-user interface object. It is invoked programmatically by Oracle Projects forms, by forecast and budget generation concurrent programs, and by other Oracle Projects packages. The ETRM metadata records that it is referenced by twelve other packages, confirming its role as a shared utility layer within the financial planning code family. Customizations and extensions that need to determine the actuals or ETC period boundaries for a budget version, or that must validate periods and plan types before generation, are the typical callers.

Because the primary entry points are keyed on P_BUDGET_VERSION_ID, a correct and committed version record in PA_BUDGET_VERSIONS is a prerequisite for every function and procedure in the package. Callers should also ensure the referenced project has forecast options defined in PA_PROJ_FP_OPTIONS, since several getters and the update routine depend on those option flags. The OUT-parameter signatures use NOCOPY for performance, and callers must check the returned status and message outputs rather than relying on exceptions alone. As with all Oracle Projects APIs, the package should be invoked within a properly initialised Oracle EBS session with the correct MO operating unit and user context set.