83: p_rec.object_version_number := 1; -- Initialise the object version
84: --
85: --
86: --
87: -- Insert the row into: pqh_de_operation_groups
88: --
89: insert into pqh_de_operation_groups
90: (operation_group_id
91: ,operation_group_code
85: --
86: --
87: -- Insert the row into: pqh_de_operation_groups
88: --
89: insert into pqh_de_operation_groups
90: (operation_group_id
91: ,operation_group_code
92: ,description
93: ,business_group_id
165: Procedure pre_insert
166: (p_rec in out nocopy pqh_opg_shd.g_rec_type
167: ) is
168: --
169: Cursor C_Sel1 is select pqh_de_operation_groups_s.nextval from sys.dual;
170: --
171: Cursor C_Sel2 is
172: Select null
173: from pqh_de_operation_groups
169: Cursor C_Sel1 is select pqh_de_operation_groups_s.nextval from sys.dual;
170: --
171: Cursor C_Sel2 is
172: Select null
173: from pqh_de_operation_groups
174: where operation_group_id =
175: pqh_opg_ins.g_operation_group_id_i;
176: --
177: l_proc varchar2(72) := g_package||'pre_insert';
191: --
192: -- The primary key values are already in use.
193: --
194: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
195: fnd_message.set_token('TABLE_NAME','pqh_de_operation_groups');
196: fnd_message.raise_error;
197: End If;
198: Close C_Sel2;
199: --
278: --
279: when hr_api.cannot_find_prog_unit then
280: --
281: hr_api.cannot_find_prog_unit_error
282: (p_module_name => 'PQH_DE_OPERATION_GROUPS'
283: ,p_hook_type => 'AI');
284: --
285: end;
286: --