83: p_rec.object_version_number := 1; -- Initialise the object version
84: --
85: --
86: --
87: -- Insert the row into: pqp_flxdu_func_attributes
88: --
89: insert into pqp_flxdu_func_attributes
90: (flxdu_func_attribute_id
91: ,flxdu_func_name
85: --
86: --
87: -- Insert the row into: pqp_flxdu_func_attributes
88: --
89: insert into pqp_flxdu_func_attributes
90: (flxdu_func_attribute_id
91: ,flxdu_func_name
92: ,flxdu_func_source_type
93: ,flxdu_func_integrator_code
171: Procedure pre_insert
172: (p_rec in out nocopy pqp_ffa_shd.g_rec_type
173: ) is
174: --
175: Cursor C_Sel1 is select pqp_flxdu_func_attributes_s.nextval from sys.dual;
176: --
177: Cursor C_Sel2 is
178: Select null
179: from pqp_flxdu_func_attributes
175: Cursor C_Sel1 is select pqp_flxdu_func_attributes_s.nextval from sys.dual;
176: --
177: Cursor C_Sel2 is
178: Select null
179: from pqp_flxdu_func_attributes
180: where flxdu_func_attribute_id =
181: pqp_ffa_ins.g_flxdu_func_attribute_id_i;
182: --
183: l_proc varchar2(72) := g_package||'pre_insert';
197: --
198: -- The primary key values are already in use.
199: --
200: fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
201: fnd_message.set_token('TABLE_NAME','pqp_flxdu_func_attributes');
202: fnd_message.raise_error;
203: End If;
204: Close C_Sel2;
205: --
288: --
289: when hr_api.cannot_find_prog_unit then
290: --
291: hr_api.cannot_find_prog_unit_error
292: (p_module_name => 'PQP_FLXDU_FUNC_ATTRIBUTES'
293: ,p_hook_type => 'AI');
294: --
295: end;
296: --