158: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
159: --
160: hr_utility.set_location(' Leaving:'||l_proc, 10);
161: Exception
162: When hr_api.check_integrity_violated Then
163: -- A check constraint has been violated
164: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
165: ben_ecc_shd.constraint_error
166: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
162: When hr_api.check_integrity_violated Then
163: -- A check constraint has been violated
164: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
165: ben_ecc_shd.constraint_error
166: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
167: When hr_api.parent_integrity_violated Then
168: -- Parent integrity has been violated
169: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
170: ben_ecc_shd.constraint_error
163: -- A check constraint has been violated
164: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
165: ben_ecc_shd.constraint_error
166: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
167: When hr_api.parent_integrity_violated Then
168: -- Parent integrity has been violated
169: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
170: ben_ecc_shd.constraint_error
171: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
167: When hr_api.parent_integrity_violated Then
168: -- Parent integrity has been violated
169: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
170: ben_ecc_shd.constraint_error
171: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
172: When hr_api.unique_integrity_violated Then
173: -- Unique integrity has been violated
174: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
175: ben_ecc_shd.constraint_error
168: -- Parent integrity has been violated
169: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
170: ben_ecc_shd.constraint_error
171: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
172: When hr_api.unique_integrity_violated Then
173: -- Unique integrity has been violated
174: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
175: ben_ecc_shd.constraint_error
176: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
172: When hr_api.unique_integrity_violated Then
173: -- Unique integrity has been violated
174: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
175: ben_ecc_shd.constraint_error
176: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
177: When Others Then
178: ben_ecc_shd.g_api_dml := false; -- Unset the api dml status
179: Raise;
180: End insert_dml;
330: );
331: --
332: exception
333: --
334: when hr_api.cannot_find_prog_unit then
335: --
336: hr_api.cannot_find_prog_unit_error
337: (p_module_name => 'ben_elctbl_chc_ctfn'
338: ,p_hook_type => 'AI');
332: exception
333: --
334: when hr_api.cannot_find_prog_unit then
335: --
336: hr_api.cannot_find_prog_unit_error
337: (p_module_name => 'ben_elctbl_chc_ctfn'
338: ,p_hook_type => 'AI');
339: --
340: end;