170: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
171: --
172: hr_utility.set_location(' Leaving:'||l_proc, 10);
173: Exception
174: When hr_api.check_integrity_violated Then
175: -- A check constraint has been violated
176: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
177: ben_hwf_shd.constraint_error
178: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
174: When hr_api.check_integrity_violated Then
175: -- A check constraint has been violated
176: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
177: ben_hwf_shd.constraint_error
178: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
179: When hr_api.parent_integrity_violated Then
180: -- Parent integrity has been violated
181: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
182: ben_hwf_shd.constraint_error
175: -- A check constraint has been violated
176: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
177: ben_hwf_shd.constraint_error
178: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
179: When hr_api.parent_integrity_violated Then
180: -- Parent integrity has been violated
181: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
182: ben_hwf_shd.constraint_error
183: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
179: When hr_api.parent_integrity_violated Then
180: -- Parent integrity has been violated
181: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
182: ben_hwf_shd.constraint_error
183: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
184: When hr_api.unique_integrity_violated Then
185: -- Unique integrity has been violated
186: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
187: ben_hwf_shd.constraint_error
180: -- Parent integrity has been violated
181: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
182: ben_hwf_shd.constraint_error
183: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
184: When hr_api.unique_integrity_violated Then
185: -- Unique integrity has been violated
186: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
187: ben_hwf_shd.constraint_error
188: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
184: When hr_api.unique_integrity_violated Then
185: -- Unique integrity has been violated
186: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
187: ben_hwf_shd.constraint_error
188: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
189: When Others Then
190: ben_hwf_shd.g_api_dml := false; -- Unset the api dml status
191: Raise;
192: End insert_dml;
348: );
349: --
350: exception
351: --
352: when hr_api.cannot_find_prog_unit then
353: --
354: hr_api.cannot_find_prog_unit_error
355: (p_module_name => 'ben_hrs_wkd_in_perd_fctr'
356: ,p_hook_type => 'AI');
350: exception
351: --
352: when hr_api.cannot_find_prog_unit then
353: --
354: hr_api.cannot_find_prog_unit_error
355: (p_module_name => 'ben_hrs_wkd_in_perd_fctr'
356: ,p_hook_type => 'AI');
357: --
358: end;