150: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
157: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
157: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
162: ben_pty_shd.constraint_error
155: -- A check constraint has been violated
156: ben_pty_shd.g_api_dml := false; -- Unset the api dml status
157: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
162: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
162: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
167: ben_pty_shd.constraint_error
160: -- Parent integrity has been violated
161: ben_pty_shd.g_api_dml := false; -- Unset the api dml status
162: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
167: ben_pty_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_pty_shd.g_api_dml := false; -- Unset the api dml status
167: ben_pty_shd.constraint_error
168: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
169: When Others Then
170: ben_pty_shd.g_api_dml := false; -- Unset the api dml status
171: Raise;
172: End insert_dml;
353: );
354: --
355: exception
356: --
357: when hr_api.cannot_find_prog_unit then
358: --
359: hr_api.cannot_find_prog_unit_error
360: (p_module_name => 'BEN_PL_PCP_TYP'
361: ,p_hook_type => 'AI');
355: exception
356: --
357: when hr_api.cannot_find_prog_unit then
358: --
359: hr_api.cannot_find_prog_unit_error
360: (p_module_name => 'BEN_PL_PCP_TYP'
361: ,p_hook_type => 'AI');
362: --
363: end;