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)
Redwood Recruiting: the ESS and OSCS index ingest jobs must all succeed, or the data won't load
# Fix of the Day #25: Redwood Recruiting: the ESS and OSCS index ingest jobs must all succeed, or the data won't load Part of my Oracl...
-
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...
-
This is easily done with the following command: select to_char(to_date('56789','J'),'JSP') from dual / TO_CHAR...
-
HCM Extracts are Oracle's built-in mechanism for extracting structured HR data for payroll interfaces, benefits carriers, and third-pa...
No comments:
Post a Comment
Thanks for your comments submitted.,will review and Post soon! by admin.