Results for “check_id_flag”

36 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

PA_HR_ORG_UTILS is a utility PL/SQL package owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. Its role is narrow but foundational: it provides reusable validation and lookup logic for Human Resources organization entities as they are referenced from within the Projects (PA) module. Projects functionality — organization hierarchies, organization structures, and their versions — depends on naming and identifier consistency between the PA and HR schemas. Rather than duplicating this resolution logic across multiple callers, PA_HR_ORG_UTILS centralizes it into two public procedures that resolve a user-supplied name into a numeric identifier, or validate a supplied identifier when one is already present. The package is classified as OTHER in the ETRM documentation, indicating that it is not a public business API in the sense of a documented integration interface, but an internal helper package intended for use by other Oracle code and, where appropriate, custom extensions. Its header carries the standard Oracle version signature, indicating a stable implementation maintained under the 120.1 revision line.

Key Procedures and Functions

The package exposes two documented procedures, both following an identical resolve-or-validate pattern driven by a check flag.

  • CHECK_ORGHIERNAME_OR_ID — Accepts an organization hierarchy version identifier and an organization hierarchy name. When a hierarchy name is supplied, the procedure converts it to the corresponding hierarchy version identifier; when a hierarchy version identifier is supplied, the check flag determines whether that identifier is validated. The resolved identifier, a return status, and an error message code are returned to the caller.
  • CHECK_ORGNAME_OR_ID — Operates on organization units using the same convention. Given an organization identifier and an organization name, it resolves the name to an identifier or validates a supplied identifier according to the check flag, returning the organization identifier along with return status and error message code.

Both procedures declare their output parameters with NOCOPY, a standard Oracle optimization for OUT parameters. Neither procedure performs any data manipulation; their purpose is strictly validation and resolution, returning a status that callers must inspect before proceeding.

Tables Accessed

The package reads from three HR tables through APPS synonyms:

  • HR_ALL_ORGANIZATION_UNITS — the master organization definition table, used to resolve an organization name to its organization identifier and to validate identifiers supplied by the caller.
  • PER_ORGANIZATION_STRUCTURES — defines organization hierarchies, providing the structure-level context for hierarchy resolution.
  • PER_ORG_STRUCTURE_VERSIONS — stores the dated versions of each organization hierarchy, allowing the package to resolve a hierarchy name to a specific version identifier.

All access is read-only; the package does not insert, update, or delete records in any of these tables.

Usage Notes

Because PA_HR_ORG_UTILS is referenced by twelve other packages, it functions as a shared dependency within the Projects and HR integration layer. It is typically invoked from PL/SQL business logic — for example, from form-level validation routines or concurrent program logic — whenever a user-entered organization or hierarchy name must be converted into a numeric identifier before further processing, or whenever an identifier arriving from an external source requires validation against HR master data. The consistency of the two procedures' signatures simplifies caller error handling: a caller checks the return status and, on failure, surfaces the associated error message code. Typical preconditions include that the organization hierarchy and organization structures are defined and effective as of the relevant date. Custom code may call these procedures when building integrations, but should treat them as internal utilities rather than supported public APIs, and should avoid relying on behavior beyond the documented name-to-ID and ID-validation semantics. Because the package is version-stamped 120.1 and marked noship, it is a shipped database object rather than an unshipped file, and is available in both 12.1.1 and 12.2.2 environments.