PER Absence Upload Copy link

Description

Categories
Enginatics, R12 only, Upload
Repository
GitHub
Upload to create, update and delete person absences as in the Absence Detail window: absence type and reason, notification, projected and actual dates and times, duration, late notification, authorizer and replacement, and the Additional Absence Details flexfield.

A row is matched to an existing absence by the hidden absence id of a downloaded row, otherwise by employee, absence type and start date (actual, or projected when there is no actual start). Absences are created and updated with hr_person_absence_api, which also maintains the element entry of absence types linked to an element. Durations left blank are calculated by the api.

Set Delete Absence to Yes to delete a downloaded absence.

SQL 66 lines

Parameters 6

ParameterTypeList of values SQL
Upload ModeLOV
:p_upload_mode like '%'||xxen_upload.action_update
Business GroupLOV
Employee NumberLOV
papf.employee_number=:employee_number
Absence TypeLOV
paa.absence_attendance_type_id=:absence_attendance_type_id
Start Date FromDate
coalesce(paa.date_start,paa.date_projected_start)>=:start_date_from
Start Date ToDate
coalesce(paa.date_start,paa.date_projected_start)<:start_date_to+1