Search Results get_cost_diff_amount




Overview

PA_VRM_UTILS is a PL/SQL utility package in the Oracle E-Business Suite Projects (PA) module, owned by the APPS schema and declared with AUTHID CURRENT_USER so that it executes under the privileges of the calling user. The acronym "VRM" refers to Version and Revenue Management, and the package supports the project budgeting and baselining features of Oracle Projects, particularly the budget versioning functionality built around PA_BUDGET_VERSIONS. Its documented header carries the revision marker $Header: PAVRMUTS.pls 120.1.12020000.1 2013/03/22, confirming its presence and maintenance in the 12.1.1 and 12.2.2 code lines. The package provides lightweight helper logic that compares budget versions and identifies the initial baselined revenue version for a project. These computations underpin user-facing inquiries in Oracle Projects forms and concurrent processes that need to determine how much a project's revenue or cost has changed relative to its baseline, and which version represents the original approved baseline.

Key Procedures and Functions

The documented package exposes four functions, all declared in the specification and thus callable by external code:

  • GET_REVENUE_DIFF_AMOUNT — Returns the difference in revenue amount for a project between the current version and a reference version. It accepts a project identifier and the current version number and returns a numeric result representing the revenue variance.
  • GET_COST_DIFF_AMOUNT — Returns the corresponding difference in cost amount for the project at the specified current version number. Together with the revenue function, it allows comparisons of both sides of the budget equation across versions.
  • IS_INITIAL_BASELINED_VER — Determines whether a given version, for a specified project and budget type, corresponds to the initial baselined version. It accepts the project identifier, version number, and a budget type indicator and returns a CHAR flag (typically Y/N).
  • GET_INITIAL_BASELINED_REV_VER — Returns the version number that constitutes the initial baselined revenue version for the supplied project. This value identifies the original baseline against which subsequent versions can be compared.

The metadata does not document additional private procedures or overloads; the specification lists exactly these four functions.

Tables Accessed

The package references PA_BUDGET_VERSIONS through the APPS synonym layer. PA_BUDGET_VERSIONS is the core Oracle Projects table that stores each budget version defined for a project, including version numbers, budget type classification, baseline flags, and the revenue and cost amounts associated with each version. The utility functions read this table to resolve the current version, locate the initial baselined version, and compute revenue and cost differences between versions. No other tables are documented as being accessed. Because the functions return scalar values and the package specification contains no DML-oriented interfaces, the access pattern is read-only inquiry against the budget version repository.

Usage Notes

PA_VRM_UTILS is an internal helper package rather than a public integration API; the ETRM classification for it is OTHER. It is referenced by one other package in the APPS schema, and is most likely invoked from Oracle Projects budget and baseline forms, from concurrent programs that report budget version variances, or from custom extensions that need to compare project budget versions. Because the functions accept a project identifier as VARCHAR2 and a version number as NUMBER, callers should pass the project_id in the same string form used throughout Oracle Projects APIs. The AUTHID CURRENT_USER clause means that execution privilege is checked against the calling user's grants, so custom code calling these functions should be installed so that it can access PA_BUDGET_VERSIONS and execute the package. The package should be treated as an unsupported internal object: direct calls are appropriate only where a supported alternative is unavailable, and the underlying logic may change between release levels such as 12.1.1 and 12.2.2. Note that this object is unrelated to virtualization or third-party file-distribution software; queries pairing it with such terms reflect naming coincidence rather than a genuine association.