PER Assignment History

Description

Categories
Enginatics
Repository
GitHub
Changes of employee and contingent worker assignments within the change date range. One row per date-tracked assignment record that differs from the record before it in organization, job, position, grade, location, supervisor, payroll, assignment status, employment category, salary basis, normal hours or people group. Date-tracked updates of other attributes are not listed.

Changes names the attributes that changed. The Previous columns hold the values before the Change Date, the other columns the values from that date on.

The first record of an assignment shows as New Assignment. An assignment that ends shows as Assignment End, dated with its last day and with its last values. A termination shows as a change of the assignment status on the day after the actual termination date.

Supervisor Hierarchy uses the reporting lines at the Change Date To.

SQL 107 lines

Parameters 9

ParameterTypeList of values SQL
Business GroupLOV
paaf.business_group_id in (select haou.organization_id from hr_all_organization_units haou where haou.name=:business_group)
Change Date FromDate
Change Date ToDate
Changed AttributeLOV
x.changes like '%'||:changed_attribute||'%'
OrganizationLOV
haouv2.name=:organization
EmployeeLOV
paaf.person_id in (select papf.person_id from per_all_people_f papf where papf.full_name=:employee)
SupervisorLOV
x.supervisor_id=:supervisor_id
Supervisor HierarchyLOV
x.assignment_id in (select h.assignment_id from (select paaf2.assignment_id, paaf2.person_id, paaf2.supervisor_id from per_all_assignments_f paaf2 where :change_date_to between paaf2.effective_start_date and paaf2.effective_end_date and paaf2.assignment_type in ('E','C')) h start with :top_supervisor_id=h.supervisor_id connect by nocycle prior h.person_id=h.supervisor_id)
Assignment Change ReasonLOV
x.change_reason=xxen_util.lookup_code(:assignment_change_reason,'EMP_ASSIGN_REASON',3)