You are on page 1of 2

Re-hire an Ex-Employee

API used to rehire employee: hr_employee_api.re_hire_ex_employee


DECLARE
ln_per_object_version_number
ln_assg_object_version_number
ln_assignment_id
ld_per_effective_start_date
ld_per_effective_end_date
ln_assignment_sequence
lb_assign_payroll_warning
lc_assignment_number

PER_ALL_PEOPLE_F.OBJECT_VERSION_NUMBER%TYPE := 5;
PER_ALL_ASSIGNMENTS_F.OBJECT_VERSION_NUMBER%TYPE;
PER_ALL_ASSIGNMENTS_F.ASSIGNMENT_ID%TYPE;
PER_ALL_PEOPLE_F.EFFECTIVE_START_DATE%TYPE;
PER_ALL_PEOPLE_F.EFFECTIVE_END_DATE%TYPE;
PER_ALL_ASSIGNMENTS_F.ASSIGNMENT_SEQUENCE%TYPE;
BOOLEAN;
PER_ALL_ASSIGNMENTS_F.ASSIGNMENT_NUMBER%TYPE;

BEGIN
-- Rehire Employee API
-- -------------------------------hr_employee_api.re_hire_ex_employee
( -- Input data elements
-- ----------------------------p_hire_date
=> TO_DATE('28-JUN-2011'),
p_person_id
=> 32979,
p_rehire_reason
=> NULL,
-- Output data elements
-- -------------------------------p_assignment_id
=> ln_assignment_id,
p_per_object_version_number
=> ln_per_object_version_number,
p_asg_object_version_number
=> ln_assg_object_version_number,
p_per_effective_start_date
=> ld_per_effective_start_date,
p_per_effective_end_date
=> ld_per_effective_end_date,
p_assignment_sequence
=> ln_assignment_sequence,
p_assignment_number
=> lc_assignment_number,
p_assign_payroll_warning
=> lb_assign_payroll_warning
);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
dbms_output.put_line(SQLERRM);
END;

Front End Steps to rehire employee:


Query the ex-employee record on which you want to rehire.
Select Action: Create Employement and Person Type: Permanent Employee(or
of your choice)
Save your work

Cancel Hire:
Query the employee record from the hire date and select Action: Cancel Hire
Save your work
You cannt cancel Hire if you have run a payroll for that employee after
hire,person type has been changes after hire, new assignment has been created
after hire and if person is hired directly as employee(without bein applicant) in
this case you have to delete the record of the employee
To hire an applicant:
Go to Application screen and update the applicant assignment status to
accepted . Now go to people screen and query the applicant on hire date(hire
date should be greater than the date on which you accepted the application)

APIs in Oracle HRMS/Payroll


hr_employee_api.create_employee
hr_person_api.update_person
pay_element_entry_api.create_element_entry
pay_element_entry_api.delete_element_entry
To Update: Supervisor, Manager Flag, Bargaining Unit, Labour Union Member Flag,
Gre, Time Card, Work Schedule, Normal Hours, Frequency, Time Normal Finish,
Time Normal Start, Default Code Combination, Set of Books Id
API -- hr_assignment_api.update_emp_asg
To Update: Grade, Location, Job, Payroll, Organization, Employee Category, People
Group
API -- hr_assignment_api.update_emp_asg_criteria

You might also like