185: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
186: --
187: hr_utility.set_location(' Leaving:'||l_proc, 10);
188: Exception
189: When hr_api.check_integrity_violated Then
190: -- A check constraint has been violated
191: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
192: hr_oru_shd.constraint_error
193: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
189: When hr_api.check_integrity_violated Then
190: -- A check constraint has been violated
191: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
192: hr_oru_shd.constraint_error
193: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
194: When hr_api.parent_integrity_violated Then
195: -- Parent integrity has been violated
196: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
197: hr_oru_shd.constraint_error
190: -- A check constraint has been violated
191: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
192: hr_oru_shd.constraint_error
193: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
194: When hr_api.parent_integrity_violated Then
195: -- Parent integrity has been violated
196: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
197: hr_oru_shd.constraint_error
198: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
194: When hr_api.parent_integrity_violated Then
195: -- Parent integrity has been violated
196: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
197: hr_oru_shd.constraint_error
198: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
199: When hr_api.unique_integrity_violated Then
200: -- Unique integrity has been violated
201: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
202: hr_oru_shd.constraint_error
195: -- Parent integrity has been violated
196: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
197: hr_oru_shd.constraint_error
198: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
199: When hr_api.unique_integrity_violated Then
200: -- Unique integrity has been violated
201: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
202: hr_oru_shd.constraint_error
203: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
199: When hr_api.unique_integrity_violated Then
200: -- Unique integrity has been violated
201: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
202: hr_oru_shd.constraint_error
203: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
204: When Others Then
205: hr_oru_shd.g_api_dml := false; -- Unset the api dml status
206: Raise;
207: End insert_dml;
402: );
403: --
404: exception
405: --
406: when hr_api.cannot_find_prog_unit then
407: --
408: hr_api.cannot_find_prog_unit_error
409: (p_module_name => 'HR_ALL_ORGANIZATION_UNITS'
410: ,p_hook_type => 'AI');
404: exception
405: --
406: when hr_api.cannot_find_prog_unit then
407: --
408: hr_api.cannot_find_prog_unit_error
409: (p_module_name => 'HR_ALL_ORGANIZATION_UNITS'
410: ,p_hook_type => 'AI');
411: --
412: end;