Search Results prc_assignment_id




Overview

PA_PRC_PROJECT_PUB is a public PL/SQL package in the Oracle EBS Project Costing (PA) module that supports the Project Resource Center (PRC) repository. The package body, identified by the source header PAXPRCPB.pls, exposes a single utility function designed to validate the existence of data associated with a given PRC assignment identifier. The primary business purpose of the package is to allow callers to determine, without querying multiple repository tables individually, whether a specific prc_assignment_id has been recorded anywhere within the PRC data model. Because it is classified as a PUB (public) API, it is intended to be callable from other Oracle EBS modules, extensions, and custom code rather than being restricted to internal use. The metadata is drawn from the ETRM 12.2.2 repository, and the same object is present in EBS 12.1.1 environments.

The package dates back to the original PRC implementation, as indicated by the 1998 creation history. It operates against the multi-currency PRC tables prefixed with PA_MC_, which store cost distribution lines, expenditure items, events, and related detail records keyed by PRC assignment identifiers.

Key Procedures and Functions

  • PRC_ROW_EXISTS — A function that accepts a PRC assignment identifier and returns a numeric result of 1 when a corresponding row is found in any of the PRC repository tables, or 0 when no matching row exists. The function defines separate cursors, one per source table, each testing for the existence of the supplied assignment identifier using an existence check against SYS.DUAL. This return-code contract makes the function a straightforward boolean-style existence test that can be used in IF conditions, validation logic, or downstream decision processing. The helper comments describe it explicitly as a check against PRC tables for a given PRC Assignment Id.

No other subprograms are documented in the package body. The package contains internal static SQL cursors but no additional public procedures or functions.

Tables Accessed

The function performs read-only existence checks against five PRC tables, referenced through APPS synonyms:

  • PA_MC_EXP_ITEMS_ALL — Stores PRC expenditure items; used to detect whether the assignment identifier has associated expenditure activity.
  • PA_MC_COST_DIST_LINES_ALL — Stores PRC cost distribution lines; checked for cost-distribution records tied to the assignment.
  • PA_MC_CUST_RDL_ALL — Stores PRC customer detail lines; checked for customer-related rows keyed by the assignment identifier.
  • PA_MC_CUST_EVENT_RDL_ALL — Stores PRC customer event detail lines; consulted for event-related customer records.
  • PA_MC_EVENTS — Stores PRC events; queried to confirm event creation for the assignment.

Each table is only queried for the prc_assignment_id column, and the function does not modify any data. The package therefore has no direct write dependencies and is safe to invoke in read-consistent contexts.

Usage Notes

The function returns immediately after the first table that yields a match, so callers typically invoke it as a lightweight guard before attempting PRC processing. Typical call sites include Project Resource Center forms and related Project Costing user interfaces, where the identifier may be entered or derived during navigation, as well as PL/SQL extension code that needs to verify PRC assignment data before invoking further processing. The package is referenced by zero other packages according to the ETRM metadata, which indicates that its callers are forms, concurrent programs, or custom wrappers rather than other documented PL/SQL APIs. Because the comments show commented-out cursors for PA_MC_BUDGET_LINES and PA_MC_COMMITMENT_T, the existence scope deliberately excludes certain repository tables; callers should not assume the function validates every PRC-related table. This behavior should be preserved when the function is reused in customizations on either 12.1.1 or 12.2.2.