83: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
84: --
85: hr_utility.set_location(' Leaving:'||l_proc, 100);
86: Exception
87: When hr_api.check_integrity_violated Then
88: -- A check constraint has been violated
89: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
90: ssp_ern_shd.constraint_error
91: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
87: When hr_api.check_integrity_violated Then
88: -- A check constraint has been violated
89: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
90: ssp_ern_shd.constraint_error
91: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.parent_integrity_violated Then
93: -- Parent integrity has been violated
94: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
95: ssp_ern_shd.constraint_error
88: -- A check constraint has been violated
89: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
90: ssp_ern_shd.constraint_error
91: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.parent_integrity_violated Then
93: -- Parent integrity has been violated
94: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
95: ssp_ern_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.parent_integrity_violated Then
93: -- Parent integrity has been violated
94: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
95: ssp_ern_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.unique_integrity_violated Then
98: -- Unique integrity has been violated
99: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
100: ssp_ern_shd.constraint_error
93: -- Parent integrity has been violated
94: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
95: ssp_ern_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.unique_integrity_violated Then
98: -- Unique integrity has been violated
99: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
100: ssp_ern_shd.constraint_error
101: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.unique_integrity_violated Then
98: -- Unique integrity has been violated
99: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
100: ssp_ern_shd.constraint_error
101: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
102: When Others Then
103: ssp_ern_shd.g_api_dml := false; -- Unset the api dml status
104: Raise;
105: End insert_dml;
248: --
249: -- If we are validating then raise the Validate_Enabled exception
250: --
251: If p_validate then
252: Raise HR_Api.Validate_Enabled;
253: End If;
254: --
255: hr_utility.set_location('Leaving :'||l_proc, 100);
256: Exception
253: End If;
254: --
255: hr_utility.set_location('Leaving :'||l_proc, 100);
256: Exception
257: When HR_Api.Validate_Enabled Then
258: --
259: -- As the Validate_Enabled exception has been raised
260: -- we must rollback to the savepoint
261: --