Using api will help in post production Changes also.
Create a procedure to call the api.Mandatory columns will be explained in the api itself.Pass the values in the procedure so that data will be mapped to seeded table with validations.
Eg. of a HRMS API-We are going to call hr_person_absence_api.delete_person_absence
CREATE OR REPLACE PROCEDURE xxri_delete_absence (p_absence_attendance_id NUMBER)
AS
CURSOR del_abscence
IS
SELECT absence_attendance_id, object_version_number
FROM per_absence_attendances
WHERE absence_attendance_id = p_absence_attendance_id;
BEGIN
--g_procedure_name := 'delete_emp_abscence';
FOR i IN del_abscence
LOOP
BEGIN
hr_person_absence_api.delete_person_absence
(p_validate => FALSE,
p_absence_attendance_id => i.absence_attendance_id,
p_object_version_number => i.object_version_number
);
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
-- g_error_code := SUBSTR (SQLERRM, 1, 200);
-- g_error_msg :=
-- g_package_name
--|| '.'
-- || g_procedure_name
-- || '-'
-- || g_error_code;
-- fnd_file.put_line (fnd_file.LOG, g_error_msg);
fnd_file.put_line (fnd_file.LOG,SQLERRM);
DBMS_OUTPUT.put_line ('Error deleting Abscence:' || SQLERRM);
END;
END LOOP;
END;
/
Oracle HCM & ERP insights from the field — Fusion Cloud, Redwood UI, Payroll, Absence, BIP, OTBI and integrations.
December 28, 2010
Subscribe to:
Post Comments (Atom)
Recruiting: jobs not visible on the career site
# Fix of the Day #7: Recruiting: jobs not visible on the career site Part of my Oracle Fusion HCM Fix of the Day series: real issues from...
-
Absence Management in Oracle Fusion is powerful — and easy to get wrong. The accrual plan is where most of the complexity lives. Here is a...
-
While Registering the report to instance we need to make sure od date format: 1.The default type is YYYY/MM/DD HH24:MI:SS go to propert...
-
This is easily done with the following command: select to_char(to_date('56789','J'),'JSP') from dual / TO_CHAR...
No comments:
Post a Comment
Thanks for your comments submitted.,will review and Post soon! by admin.