Search Results cal_extra_hour_generic




Overview

APPS.EAM_ASSIGN_EMP_PUB is the public PL/SQL interface for returning the employees eligible to be assigned to a specific work order operation, or to a work order operation resource context, within Oracle Enterprise Asset Management (EAM). The package header (EAMPESHS.pls) documents its purpose as the "Package Interface for returning the various employees eligible for assignment to a specific workorder-operation or workorder-operation-resource context." It was initially created on 11-Mar-2005 and carries a 120.0.12010000.3 version stamp, placing it in the Oracle E-Business Suite 12.1.1 and 12.2.2 release family. The API classification is PUB, indicating the package is a supported, externally callable interface rather than an internal implementation detail.

Functionally, the package answers two related business questions: which employees can be assigned to a given operation or resource instance, and what are the assignment details for those employees. This supports the EAM work order staffing workflow, where maintenance planners and supervisors select qualified personnel based on availability, competence, shift calendars, and existing assignment load.

Key Procedures and Functions

Tables Accessed

The package reads and writes through APPS synonyms. Assignment and search result staging tables include EAM_EMP_ASSIGNMENT_DETAILS_TBL and EAM_EMP_SEARCH_RESULT_TBL, which correspond to the record structures declared in the header. Human resources and calendar data are obtained from BOM_CALENDAR_DATES, BOM_DEPARTMENTS, BOM_DEPARTMENT_RESOURCES, BOM_DEPT_RES_INSTANCES, BOM_RESOURCES, BOM_RESOURCE_EMPLOYEES, BOM_RESOURCE_SHIFTS, BOM_SHIFT_DATES, and BOM_SHIFT_TIMES. Competence data is sourced from PER_COMPETENCE_ELEMENTS. Work order context is derived from EAM_WORK_ORDER_DETAILS and WIP_DISCRETE_JOBS, while MTL_PARAMETERS supplies organization-level parameters, including the HR system integration setting that controls calendar-based hour derivation.

Usage Notes

The package is invoked from the EAM work order operations window and related assignment forms whenever a user searches for assignable employees, and it may be called from custom code or concurrent programs needing the same eligibility logic. Callers pass a horizon start date (p_horizon_start_date) and associated horizon parameters to bound the availability calculation; the calendar helpers then derive available, assigned, and unassigned hours, percentages, and shift-aware start and completion dates. Because the package is classified PUB, its public procedures are the supported integration surface, whereas the PVT procedures, the CAL_* helpers, DATE_EXCEPTION, and FETCH_DETAILS are internal and should not be called directly. The package is referenced by one other database package, confirming its role as a shared dependency within the EAM module. Direct DML against the underlying EAM and BOM tables should be avoided in favor of this API.