218: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
219: --
220: hr_utility.set_location(' Leaving:'||l_proc, 10);
221: Exception
222: When hr_api.check_integrity_violated Then
223: -- A check constraint has been violated
224: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
225: ssp_mat_shd.constraint_error
226: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
222: When hr_api.check_integrity_violated Then
223: -- A check constraint has been violated
224: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
225: ssp_mat_shd.constraint_error
226: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
227: When hr_api.parent_integrity_violated Then
228: -- Parent integrity has been violated
229: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
230: ssp_mat_shd.constraint_error
223: -- A check constraint has been violated
224: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
225: ssp_mat_shd.constraint_error
226: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
227: When hr_api.parent_integrity_violated Then
228: -- Parent integrity has been violated
229: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
230: ssp_mat_shd.constraint_error
231: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
227: When hr_api.parent_integrity_violated Then
228: -- Parent integrity has been violated
229: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
230: ssp_mat_shd.constraint_error
231: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
232: When hr_api.unique_integrity_violated Then
233: -- Unique integrity has been violated
234: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
235: ssp_mat_shd.constraint_error
228: -- Parent integrity has been violated
229: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
230: ssp_mat_shd.constraint_error
231: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
232: When hr_api.unique_integrity_violated Then
233: -- Unique integrity has been violated
234: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
235: ssp_mat_shd.constraint_error
236: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
232: When hr_api.unique_integrity_violated Then
233: -- Unique integrity has been violated
234: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
235: ssp_mat_shd.constraint_error
236: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
237: When Others Then
238: ssp_mat_shd.g_api_dml := false; -- Unset the api dml status
239: Raise;
240: End insert_dml;
378: --
379: -- If we are validating then raise the Validate_Enabled exception
380: --
381: If p_validate then
382: Raise HR_Api.Validate_Enabled;
383: End If;
384: --
385: hr_utility.set_location(' Leaving:'||l_proc, 10);
386: Exception
383: End If;
384: --
385: hr_utility.set_location(' Leaving:'||l_proc, 10);
386: Exception
387: When HR_Api.Validate_Enabled Then
388: --
389: -- As the Validate_Enabled exception has been raised
390: -- we must rollback to the savepoint
391: --