[Home] [Help]
TRIGGER: APPS.PERASSIGNMENTBUDGETVA_114D_DYT
Source
Description
"APPS"."PERASSIGNMENTBUDGETVA_114D_DYT" AFTER DELETE
ON "HR"."PER_ASSIGNMENT_BUDGET_VALUES_#" FOR EACH ROW
Type
AFTER EACH ROW
Event
DELETE
Column
When
Referencing
REFERENCING NEW AS NEW OLD AS OLD
Body
DECLARE
/* Local variable declarations */
l_business_group_id NUMBER;
l_legislation_code VARCHAR2(10);
l_mode varchar2(80);
--
BEGIN
/*
================================================
This is a dynamically generated database trigger
================================================
** DO NOT CHANGE MANUALLY **
------------------------------------------------
Table: PER_ASSIGNMENT_BUDGET_VALUES_F
Action: Delete
Date: 30/03/2009 04:53
Name: PER_ASSIGNMENT_BUDGET_VALUES_F_ARD
Info.: Incident Register trigger on deletion of assignment budget values
================================================
*/
--
l_mode := pay_dyn_triggers.g_dyt_mode;
pay_dyn_triggers.g_dyt_mode := pay_dyn_triggers.g_dbms_dyt;
IF NOT (hr_general.g_data_migrator_mode <> 'Y') THEN
RETURN;
END IF;
/* Initialising local variables */
l_business_group_id := pay_core_utils.get_business_group(
p_statement => 'select '||:old.business_group_id||' from sys.dual'
);
--
l_legislation_code := pay_core_utils.get_legislation_code(
p_bg_id => l_business_group_id
);
--
/* Is the trigger in an enabled functional area */
IF paywsfgt_pkg.trigger_is_not_enabled(
p_event_id => 114,
p_legislation_code => l_legislation_code,
p_business_group_id => l_business_group_id,
p_payroll_id => NULL
) THEN
RETURN;
END IF;
--
/* Global component calls */
pay_continuous_calc.per_assign_budget_values_ard(
p_assignment_budget_value_ => :old.assignment_budget_value_id,
p_assignment_id => :old.assignment_id,
p_business_group_id => l_business_group_id,
p_effective_start_date => :old.effective_start_date,
p_legislation_code => l_legislation_code
);
--
/* Legislation specific component calls */
--
/* Business group specific component calls */
--
/* Payroll specific component calls */
--
pay_dyn_triggers.g_dyt_mode := l_mode;
EXCEPTION
WHEN OTHERS THEN
hr_utility.set_location('PERASSIGNMENTBUDGETVA_114D_DYT',ABS(SQLCODE));
pay_dyn_triggers.g_dyt_mode := l_mode;
RAISE;
--
END;