Search Results get_org_version_id2




Overview

PA_ORG_UTILS is a PL/SQL utility package in the Oracle EBS Projects (PA) module that centralizes access to organization hierarchy metadata used throughout Oracle Projects. Organizations in Oracle Projects are arranged into hierarchies (org structures) that support burdening, costing, and cross-charge processing. Each hierarchy is versioned, and each version has a designated start organization and a defined maximum depth or level. PA_ORG_UTILS exposes the accessor functions and denormalization routines that Oracle Projects forms, concurrent programs, and internal APIs use to resolve these hierarchy attributes at runtime.

The package is declared with AUTHID CURRENT_USER, meaning it executes with the privileges of the invoking user rather than the package owner. It is owned by APPS and is classified as OTHER in the ETRM documentation, indicating it is largely an internal support package rather than a public, published API. Its documented header carries a version stamp of 120.3, last modified in 2007, and several functions are annotated with a change request reference (1333116) related to burdening hierarchy handling. The presence of pragmas (RESTRICT_REFERENCES WNDS, WNPS) confirms the functions are intended to be side-effect free and callable from SQL, not only from PL/SQL.

Key Procedures and Functions

The package exposes 26 documented procedures and functions. The central accessors are the hierarchy version and start-organization lookups:

All named functions carry RESTRICT_REFERENCES pragmas, so they may be referenced from SQL statements as well as PL/SQL blocks.

Tables Accessed

The package reads and writes several Projects and HR tables through APPS synonyms:

Usage Notes

PA_ORG_UTILS is invoked primarily from Oracle Projects forms and concurrent programs whenever hierarchy information must be resolved. The denormalization procedures are typically run by the organization hierarchy maintenance concurrent program or by the underlying hierarchy population logic, while the accessor functions (GET_START_ORG_ID, GET_ORG_VERSION_ID, and their successors) are called inline from other PL/SQL packages, SQL views, and forms. The package is referenced by 11 other packages in the EBS schema, indicating it is a foundational dependency for organization-related processing.

Custom code should generally call the higher-numbered variants (GET_START_ORG_ID2, GET_ORG_VERSION_ID2) when burdening hierarchies are in use, since the original functions predate the CR 1333116 burdening fix. Because the package uses AUTHID CURRENT_USER and RESTRICT_REFERENCES, calling code must ensure the invoking schema has appropriate synonyms and privileges. No public API is documented in ETRM; direct modification of the denormalized table by custom code is not recommended. In 12.1.1 and 12.2.2 the package structure is consistent, so code written against one release is generally portable to the other.