Search Results g_primary_contact_name
Overview
APPS.PA_RESOURCE_UTILS is a foundational Oracle E-Business Suite PL/SQL utility package used by the Projects (PA) module to resolve, validate, and manage project resource information. Its primary business function is to provide a centralized mechanism for converting resource names to identifiers and vice versa, validating that a given resource belongs to the correct operating organization, and exposing a range of global variables that carry context between related API calls within a session. The package is classified as OTHER in the ETRM metadata, meaning it is not a formal public API but an internal utility library consumed extensively across the Projects application. Its header revision (120.5, dated 2007) indicates it is a mature, long-standing component that has been patched across multiple release cycles, including fixes for functional bugs such as resource assignment, FTE calculation, and organization context.
The specific helper get_res_name_from_type aligns with the package's core responsibility of translating between resource types, names, and IDs. While the ETRM excerpt does not expose this exact function signature, the documented global variables G_RESOURCE_ID and G_PRIMARY_CONTACT_NAME and the procedure CHECK_RESOURCENAME_OR_ID confirm the package's role in name/ID resolution logic.
Key Procedures and Functions
The package exposes 77 documented procedures and functions. The most prominent include:
- CHECK_RESOURCENAME_OR_ID — The central validation routine. If a resource name is supplied, it is resolved to a resource ID; if an ID is supplied, it is validated against the check_id_flag. It accepts a date context and a resource type default (101 = employee) and returns the resolved ID and type.
- GET_CRM_RES_ID — Retrieves the resource identifier associated with CRM-integrated resource records.
- CHECK_CC_FOR_RESOURCE — Validates cost/credit characteristics for a resource.
- CHECK_RES_BELONGS_EXPORG — Determines whether a resource belongs to a specified expenditure organization, a prerequisite for many assignment and approval workflows.
- GET_ORGANIZATION_NAME, GET_PROJECTED_END_DATE, GET_PERIOD_DATE — Provide denormalized lookup values used to populate forms and reporting structures.
- POPULATE_ROLE_FLAGS — Establishes role-based flags used to drive UI behavior.
- GETVALJOBGRADEID, GETTOJOBID, GETTOJOBNAME — Job and grade resolution helpers against HR job data.
- GET_RESOURCE_ANALYST, GET_ORG_PRIMARY_CONTACT — Return analyst and primary contact details for resources and organizations.
- INSERT_GRANT, DELETE_GRANT — Manage FND_GRANTS records tied to resource-based menu/function access.
- SET_GLOBAL_VARIABLES together with the GET_* accessors (GET_SELECTED_FLAG, GET_PERSON_ID, GET_VERSION_ID, GET_START_ORG_ID) seed and expose session state.
Tables Accessed
The package primarily reads and writes against project and HR resource tables via APPS synonyms. PA_PROJECTS_ALL supplies project context; PA_RESOURCES and PA_RESOURCES_DENORM provide the core resource master and denormalized lookup data used for name/ID resolution and organization validation. PER_ORG_STRUCTURE_ELEMENTS, PER_JOBS, and PER_VALID_GRADES supply HR organization hierarchy, job, and grade information essential to CHECK_RES_BELONGS_EXPORG, GETVALJOBGRADEID, GETTOJOBID, and GETTOJOBNAME. FF_FORMULAS_F supports formula-driven attribute lookups. The FND_* tables — FND_GRANTS, FND_MENUS, FND_FORM_FUNCTIONS, FND_OBJECTS, FND_OBJECT_INSTANCE_SETS, FND_NEW_MESSAGES, FND_RESPONSIBILITY, and FND_USER — back the grant management procedures and access-control checks.
Usage Notes
PA_RESOURCE_UTILS is invoked most heavily from Projects forms (resource assignment, organization setup, and project staffing windows) as well as from custom PL/SQL extensions and concurrent programs that must resolve or validate a resource. Because it is referenced by 69 other packages, changes to its signatures or global variable semantics carry broad ripple effects across the Projects module; custom code should treat it as a read-mostly utility and rely on its public procedures rather than mutating the G_* globals directly. The name/ID conversion behavior in CHECK_RESOURCENAME_OR_ID — and by extension helper routines like get_res_name_from_type — should always be called with an explicit date context, since resource validity is date-effective. In release 12.1.1 and 12.2.2 the package is shipped as part of the standard APPS schema, so no separate installation is required.
-
APPS.PA_RESOURCE_UTILS dependencies on PA_PROJECTS_ALL
12.1.1
-
APPS.PA_RESOURCE_UTILS dependencies on PA_PROJECTS_ALL
12.2.2
-
PACKAGE: APPS.PA_RESOURCE_UTILS
12.1.1
-
PACKAGE: APPS.PA_RESOURCE_UTILS
12.2.2
-
APPS.PA_RESOURCE_UTILS dependencies on PER_ORG_STRUCTURE_ELEMENTS
12.2.2
-
APPS.PA_RESOURCE_UTILS dependencies on PER_ORG_STRUCTURE_ELEMENTS
12.1.1
-
APPS.PA_RESOURCE_UTILS dependencies on PA_EMPLOYEES
12.2.2
-
APPS.PA_RESOURCE_UTILS dependencies on PA_EMPLOYEES
12.1.1