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