Professional Documents
Culture Documents
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;
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)