1: Package Body pay_apr_ins as
2: /* $Header: pyaprrhi.pkb 120.0.12000000.1 2007/01/17 15:39:22 appldev noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
25: l_proc := g_package||'set_base_key_value';
26: --
27: hr_utility.set_location('Entering:'||l_proc, 10);
28: --
29: pay_apr_ins.g_process_id_i := p_process_id;
30: --
31: hr_utility.set_location(' Leaving:'||l_proc, 20);
32: End set_base_key_value;
33: --
233: Cursor C_Sel2 is
234: Select null
235: from pay_au_processes
236: where process_id =
237: pay_apr_ins.g_process_id_i;
238: --
239: l_proc varchar2(72);
240: l_exists varchar2(1);
241: --
244: l_proc := g_package||'pre_insert';
245: --
246: hr_utility.set_location('Entering:'||l_proc, 5);
247: --
248: If (pay_apr_ins.g_process_id_i is not null) Then
249: --
250: -- Verify registered primary key values not already in use
251: --
252: Open C_Sel2;
264: --
265: -- Use registered key values and clear globals
266: --
267: p_rec.process_id :=
268: pay_apr_ins.g_process_id_i;
269: pay_apr_ins.g_process_id_i := null;
270: Else
271: --
272: -- No registerd key values, so select the next sequence number
265: -- Use registered key values and clear globals
266: --
267: p_rec.process_id :=
268: pay_apr_ins.g_process_id_i;
269: pay_apr_ins.g_process_id_i := null;
270: Else
271: --
272: -- No registerd key values, so select the next sequence number
273: --
362: hr_multi_message.end_validation_set;
363: --
364: -- Call the supporting pre-insert operation
365: --
366: pay_apr_ins.pre_insert(p_rec);
367: --
368: -- Insert the row
369: --
370: pay_apr_ins.insert_dml(p_rec);
366: pay_apr_ins.pre_insert(p_rec);
367: --
368: -- Insert the row
369: --
370: pay_apr_ins.insert_dml(p_rec);
371: --
372: -- Call the supporting post-insert operation
373: --
374: pay_apr_ins.post_insert
370: pay_apr_ins.insert_dml(p_rec);
371: --
372: -- Call the supporting post-insert operation
373: --
374: pay_apr_ins.post_insert
375: (p_rec
376: );
377: --
378: -- Call to raise any errors on multi-message list
422: --
423: -- Having converted the arguments into the pay_apr_rec
424: -- plsql record structure we call the corresponding record business process.
425: --
426: pay_apr_ins.ins
427: (l_rec
428: );
429: --
430: -- As the primary key argument(s)
436: hr_utility.set_location(' Leaving:'||l_proc, 10);
437: End ins;
438: --
439: begin
440: g_package := ' pay_apr_ins.'; -- Global package name
441: end pay_apr_ins;
437: End ins;
438: --
439: begin
440: g_package := ' pay_apr_ins.'; -- Global package name
441: end pay_apr_ins;