1: Package Body pay_blt_ins as
2: /* $Header: pybltrhi.pkb 120.4 2012/03/01 05:23:29 vvijayku ship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pay_blt_ins.'; -- Global package name
9: --
10: -- The following global variables are only to be used by
11: -- the set_base_key_value and pre_insert procedures.
12: --
22: --
23: Begin
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: pay_blt_ins.g_balance_type_id_i := p_balance_type_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
283: Cursor C_Sel2 is
284: Select null
285: from pay_balance_types
286: where balance_type_id =
287: pay_blt_ins.g_balance_type_id_i;
288: --
289: l_proc varchar2(72) := g_package||'pre_insert';
290: l_exists varchar2(1);
291: --
291: --
292: Begin
293: hr_utility.set_location('Entering:'||l_proc, 5);
294: --
295: If (pay_blt_ins.g_balance_type_id_i is not null) Then
296: --
297: -- Verify registered primary key values not already in use
298: --
299: Open C_Sel2;
311: --
312: -- Use registered key values and clear globals
313: --
314: p_rec.balance_type_id :=
315: pay_blt_ins.g_balance_type_id_i;
316: pay_blt_ins.g_balance_type_id_i := null;
317: Else
318: --
319: -- No registerd key values, so select the next sequence number
312: -- Use registered key values and clear globals
313: --
314: p_rec.balance_type_id :=
315: pay_blt_ins.g_balance_type_id_i;
316: pay_blt_ins.g_balance_type_id_i := null;
317: Else
318: --
319: -- No registerd key values, so select the next sequence number
320: --
495: hr_multi_message.end_validation_set;
496: --
497: -- Call the supporting pre-insert operation
498: --
499: pay_blt_ins.pre_insert(p_rec);
500: --
501: -- Insert the row
502: --
503: pay_blt_ins.insert_dml(p_rec);
499: pay_blt_ins.pre_insert(p_rec);
500: --
501: -- Insert the row
502: --
503: pay_blt_ins.insert_dml(p_rec);
504: --
505: -- Call the supporting post-insert operation
506: --
507: pay_blt_ins.post_insert
503: pay_blt_ins.insert_dml(p_rec);
504: --
505: -- Call the supporting post-insert operation
506: --
507: pay_blt_ins.post_insert
508: (p_effective_date
509: ,p_rec
510: );
511: --
623: --
624: -- Having converted the arguments into the pay_blt_rec
625: -- plsql record structure we call the corresponding record business process.
626: --
627: pay_blt_ins.ins
628: (p_effective_date
629: ,l_rec
630: );
631: --
637: --
638: hr_utility.set_location(' Leaving:'||l_proc, 10);
639: End ins;
640: --
641: end pay_blt_ins;