84: p_rec.object_version_number := 1; -- Initialise the object version
85: --
86: --
87: --
88: -- Insert the row into: per_allocated_tasks
89: --
90: insert into per_allocated_tasks
91: (allocated_task_id
92: ,allocated_checklist_id
86: --
87: --
88: -- Insert the row into: per_allocated_tasks
89: --
90: insert into per_allocated_tasks
91: (allocated_task_id
92: ,allocated_checklist_id
93: ,task_name
94: ,description
272: Procedure pre_insert
273: (p_rec in out nocopy per_pat_shd.g_rec_type
274: ) is
275: --
276: Cursor C_Sel1 is select per_allocated_tasks_s.nextval from sys.dual;
277: --
278: Cursor C_Sel2 is
279: Select null
280: from per_allocated_tasks
276: Cursor C_Sel1 is select per_allocated_tasks_s.nextval from sys.dual;
277: --
278: Cursor C_Sel2 is
279: Select null
280: from per_allocated_tasks
281: where allocated_task_id =
282: per_pat_ins.g_allocated_task_id_i;
283: --
284: l_proc varchar2(72) := g_package||'pre_insert';
298: --
299: -- The primary key values are already in use.
300: --
301: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
302: fnd_message.set_token('TABLE_NAME','per_allocated_tasks');
303: fnd_message.raise_error;
304: End If;
305: Close C_Sel2;
306: --
491: --
492: when hr_api.cannot_find_prog_unit then
493: --
494: hr_api.cannot_find_prog_unit_error
495: (p_module_name => 'PER_ALLOCATED_TASKS'
496: ,p_hook_type => 'AI');
497: --
498: end;
499: --