1: Package Body ff_fgl_ins as
2: /* $Header: fffglrhi.pkb 120.0.12000000.1 2007/03/20 11:52:47 ckesanap noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ff_fgl_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: ff_fgl_ins.g_global_id_i := p_global_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
272: --
273: Begin
274: hr_utility.set_location('Entering:'||l_proc, 5);
275: --
276: ff_fgl_ins.dt_insert_dml
277: (p_rec => p_rec
278: ,p_effective_date => p_effective_date
279: ,p_datetrack_mode => p_datetrack_mode
280: ,p_validation_start_date => p_validation_start_date
336: Cursor C_Sel2 is
337: Select null
338: from ff_globals_f
339: where global_id =
340: ff_fgl_ins.g_global_id_i;
341: --
342: l_proc varchar2(72) := g_package||'pre_insert';
343: l_exists varchar2(1);
344: --
344: --
345: Begin
346: hr_utility.set_location('Entering:'||l_proc, 5);
347: --
348: If (ff_fgl_ins.g_global_id_i is not null) Then
349: --
350: -- Verify registered primary key values not already in use
351: --
352: Open C_Sel2;
364: --
365: -- Use registered key values and clear globals
366: --
367: p_rec.global_id :=
368: ff_fgl_ins.g_global_id_i;
369: ff_fgl_ins.g_global_id_i := null;
370: Else
371: --
372: -- No registerd key values, so select the next sequence number
365: -- Use registered key values and clear globals
366: --
367: p_rec.global_id :=
368: ff_fgl_ins.g_global_id_i;
369: ff_fgl_ins.g_global_id_i := null;
370: Else
371: --
372: -- No registerd key values, so select the next sequence number
373: --
568: hr_utility.set_location('Entering:'||l_proc, 5);
569: --
570: -- Call the lock operation
571: --
572: ff_fgl_ins.ins_lck
573: (p_effective_date => p_effective_date
574: ,p_datetrack_mode => l_datetrack_mode
575: ,p_rec => p_rec
576: ,p_validation_start_date => l_validation_start_date
591: hr_multi_message.end_validation_set;
592: --
593: -- Call the supporting pre-insert operation
594: --
595: ff_fgl_ins.pre_insert
596: (p_rec => p_rec
597: ,p_effective_date => p_effective_date
598: ,p_datetrack_mode => l_datetrack_mode
599: ,p_validation_start_date => l_validation_start_date
601: );
602: --
603: -- Insert the row
604: --
605: ff_fgl_ins.insert_dml
606: (p_rec => p_rec
607: ,p_effective_date => p_effective_date
608: ,p_datetrack_mode => l_datetrack_mode
609: ,p_validation_start_date => l_validation_start_date
611: );
612: --
613: -- Call the supporting post-insert operation
614: --
615: ff_fgl_ins.post_insert
616: (p_rec => p_rec
617: ,p_effective_date => p_effective_date
618: ,p_datetrack_mode => l_datetrack_mode
619: ,p_validation_start_date => l_validation_start_date
669: -- Having converted the arguments into the ff_pay_rec
670: -- plsql record structure we call the corresponding record
671: -- business process.
672: --
673: ff_fgl_ins.ins
674: (p_effective_date
675: ,l_rec
676: );
677: --
685: --
686: hr_utility.set_location(' Leaving:'||l_proc, 10);
687: End ins;
688: --
689: end ff_fgl_ins;