152: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
153: --
154: hr_utility.set_location(' Leaving:'||l_proc, 10);
155: Exception
156: When hr_api.check_integrity_violated Then
157: -- A check constraint has been violated
158: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
159: ben_erc_shd.constraint_error
160: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
156: When hr_api.check_integrity_violated Then
157: -- A check constraint has been violated
158: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
159: ben_erc_shd.constraint_error
160: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
161: When hr_api.parent_integrity_violated Then
162: -- Parent integrity has been violated
163: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
164: ben_erc_shd.constraint_error
157: -- A check constraint has been violated
158: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
159: ben_erc_shd.constraint_error
160: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
161: When hr_api.parent_integrity_violated Then
162: -- Parent integrity has been violated
163: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
164: ben_erc_shd.constraint_error
165: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
161: When hr_api.parent_integrity_violated Then
162: -- Parent integrity has been violated
163: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
164: ben_erc_shd.constraint_error
165: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
166: When hr_api.unique_integrity_violated Then
167: -- Unique integrity has been violated
168: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
169: ben_erc_shd.constraint_error
162: -- Parent integrity has been violated
163: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
164: ben_erc_shd.constraint_error
165: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
166: When hr_api.unique_integrity_violated Then
167: -- Unique integrity has been violated
168: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
169: ben_erc_shd.constraint_error
170: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
166: When hr_api.unique_integrity_violated Then
167: -- Unique integrity has been violated
168: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
169: ben_erc_shd.constraint_error
170: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
171: When Others Then
172: ben_erc_shd.g_api_dml := false; -- Unset the api dml status
173: Raise;
174: End insert_dml;
321: );
322: --
323: exception
324: --
325: when hr_api.cannot_find_prog_unit then
326: --
327: hr_api.cannot_find_prog_unit_error
328: (p_module_name => 'ben_enrt_rt_ctfn'
329: ,p_hook_type => 'AI');
323: exception
324: --
325: when hr_api.cannot_find_prog_unit then
326: --
327: hr_api.cannot_find_prog_unit_error
328: (p_module_name => 'ben_enrt_rt_ctfn'
329: ,p_hook_type => 'AI');
330: --
331: end;