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 Technical Experience and Test Cases Shared from different resource and through self leanings.
December 28, 2010
Subscribe to:
Post Comments (Atom)
COALESCE-SQL
Coalesce- return the null values from the expression. It works similar to a case statement where if expression 1 is false then goes to expr...
-
In HRMS we do use date with timestamp for EIT ans SIT segments. To change the format od the date we can use fnd_date . canonical_to_date ...
-
Converstion API Table Organization hr_organization_api.create_hr_organization hr_all_organization...
-
Create the concurrent program.to move you need to extract the ldt and upload the same through the script for nay other instance.Below have ...
No comments:
Post a Comment
Thanks for your comments submitted.,will review and Post soon! by admin.