83: p_rec.object_version_number := 1; -- Initialise the object version
84: --
85: --
86: --
87: -- Insert the row into: pqh_de_operations
88: --
89: insert into pqh_de_operations
90: (operation_id
91: ,operation_number
85: --
86: --
87: -- Insert the row into: pqh_de_operations
88: --
89: insert into pqh_de_operations
90: (operation_id
91: ,operation_number
92: ,description
93: ,object_version_number
163: Procedure pre_insert
164: (p_rec in out nocopy pqh_opl_shd.g_rec_type
165: ) is
166: --
167: Cursor C_Sel1 is select pqh_de_operations_s.nextval from sys.dual;
168: --
169: Cursor C_Sel2 is
170: Select null
171: from pqh_de_operations
167: Cursor C_Sel1 is select pqh_de_operations_s.nextval from sys.dual;
168: --
169: Cursor C_Sel2 is
170: Select null
171: from pqh_de_operations
172: where operation_id =
173: pqh_opl_ins.g_operation_id_i;
174: --
175: l_proc varchar2(72) := g_package||'pre_insert';
189: --
190: -- The primary key values are already in use.
191: --
192: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
193: fnd_message.set_token('TABLE_NAME','pqh_de_operations');
194: fnd_message.raise_error;
195: End If;
196: Close C_Sel2;
197: --
274: --
275: when hr_api.cannot_find_prog_unit then
276: --
277: hr_api.cannot_find_prog_unit_error
278: (p_module_name => 'PQH_DE_OPERATIONS'
279: ,p_hook_type => 'AI');
280: --
281: end;
282: --