84: p_rec.object_version_number := 1; -- Initialise the object version
85: --
86: --
87: --
88: -- Insert the row into: hr_transaction_snapshot
89: --
90: insert into hr_transaction_snapshot
91: (snapshot_id
92: ,object_version_number
86: --
87: --
88: -- Insert the row into: hr_transaction_snapshot
89: --
90: insert into hr_transaction_snapshot
91: (snapshot_id
92: ,object_version_number
93: ,document
94: ,object_name
165: Procedure pre_insert
166: (p_rec in out nocopy hr_snp_shd.g_rec_type
167: ) is
168: --
169: Cursor C_Sel1 is select hr_transaction_snapshot_s.nextval from sys.dual;
170: --
171: Cursor C_Sel2 is
172: Select null
173: from hr_transaction_snapshot
169: Cursor C_Sel1 is select hr_transaction_snapshot_s.nextval from sys.dual;
170: --
171: Cursor C_Sel2 is
172: Select null
173: from hr_transaction_snapshot
174: where snapshot_id =
175: hr_snp_ins.g_snapshot_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','hr_transaction_snapshot');
196: fnd_message.raise_error;
197: End If;
198: Close C_Sel2;
199: --
276: --
277: when hr_api.cannot_find_prog_unit then
278: --
279: hr_api.cannot_find_prog_unit_error
280: (p_module_name => 'HR_TRANSACTION_SNAPSHOT'
281: ,p_hook_type => 'AI');
282: --
283: end;
284: --