115: per_ose_shd.g_api_dml := false; -- Unset the api dml status
116: --
117: hr_utility.set_location(' Leaving:'||l_proc, 10);
118: Exception
119: When hr_api.check_integrity_violated Then
120: -- A check constraint has been violated
121: per_ose_shd.g_api_dml := false; -- Unset the api dml status
122: per_ose_shd.constraint_error
123: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
119: When hr_api.check_integrity_violated Then
120: -- A check constraint has been violated
121: per_ose_shd.g_api_dml := false; -- Unset the api dml status
122: per_ose_shd.constraint_error
123: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
124: When hr_api.parent_integrity_violated Then
125: -- Parent integrity has been violated
126: per_ose_shd.g_api_dml := false; -- Unset the api dml status
127: per_ose_shd.constraint_error
120: -- A check constraint has been violated
121: per_ose_shd.g_api_dml := false; -- Unset the api dml status
122: per_ose_shd.constraint_error
123: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
124: When hr_api.parent_integrity_violated Then
125: -- Parent integrity has been violated
126: per_ose_shd.g_api_dml := false; -- Unset the api dml status
127: per_ose_shd.constraint_error
128: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
124: When hr_api.parent_integrity_violated Then
125: -- Parent integrity has been violated
126: per_ose_shd.g_api_dml := false; -- Unset the api dml status
127: per_ose_shd.constraint_error
128: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
129: When hr_api.unique_integrity_violated Then
130: -- Unique integrity has been violated
131: per_ose_shd.g_api_dml := false; -- Unset the api dml status
132: per_ose_shd.constraint_error
125: -- Parent integrity has been violated
126: per_ose_shd.g_api_dml := false; -- Unset the api dml status
127: per_ose_shd.constraint_error
128: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
129: When hr_api.unique_integrity_violated Then
130: -- Unique integrity has been violated
131: per_ose_shd.g_api_dml := false; -- Unset the api dml status
132: per_ose_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
129: When hr_api.unique_integrity_violated Then
130: -- Unique integrity has been violated
131: per_ose_shd.g_api_dml := false; -- Unset the api dml status
132: per_ose_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
134: When Others Then
135: per_ose_shd.g_api_dml := false; -- Unset the api dml status
136: Raise;
137: End insert_dml;
262: );
263: --
264: exception
265: --
266: when hr_api.cannot_find_prog_unit then
267: --
268: hr_api.cannot_find_prog_unit_error
269: (p_module_name => 'PER_ORG_STRUCTURE_ELEMENTS'
270: ,p_hook_type => 'AI');
264: exception
265: --
266: when hr_api.cannot_find_prog_unit then
267: --
268: hr_api.cannot_find_prog_unit_error
269: (p_module_name => 'PER_ORG_STRUCTURE_ELEMENTS'
270: ,p_hook_type => 'AI');
271: --
272: end;