67: --
68: -- Delete the where the effective start date is equal
69: -- to the validation end date.
70: --
71: delete from pqp_pension_types_f
72: where pension_type_id = p_rec.pension_type_id
73: and effective_start_date = p_validation_start_date;
74: --
75: --
78: --
79: -- Delete the row(s) where the effective start date is greater than
80: -- or equal to the validation start date.
81: --
82: delete from pqp_pension_types_f
83: where pension_type_id = p_rec.pension_type_id
84: and effective_start_date >= p_validation_start_date;
85: --
86: --
549: --
550: when hr_api.cannot_find_prog_unit then
551: --
552: hr_api.cannot_find_prog_unit_error
553: (p_module_name => 'PQP_PENSION_TYPES_F'
554: ,p_hook_type => 'AD');
555: --
556: end;
557: --
650: ) is
651:
652: Cursor csr_data_pension_types_f
653: (
654: c_pension_type_id in pqp_pension_types_f.pension_type_id%TYPE
655: ) Is
656: select
657: business_group_id,
658: pension_type_id
655: ) Is
656: select
657: business_group_id,
658: pension_type_id
659: from pqp_pension_types_f
660: where
661: pension_type_id = c_pension_type_id;
662: --
663: l_rec pqp_pty_shd.g_rec_type;
661: pension_type_id = c_pension_type_id;
662: --
663: l_rec pqp_pty_shd.g_rec_type;
664: l_proc varchar2(72) := g_package||'del';
665: l_business_group_id pqp_pension_types_f.business_group_id%TYPE;
666: l_pension_type_id pqp_pension_types_f.pension_type_id%TYPE;
667: --
668: Begin
669: hr_utility.set_location('Entering:'||l_proc, 5);
662: --
663: l_rec pqp_pty_shd.g_rec_type;
664: l_proc varchar2(72) := g_package||'del';
665: l_business_group_id pqp_pension_types_f.business_group_id%TYPE;
666: l_pension_type_id pqp_pension_types_f.pension_type_id%TYPE;
667: --
668: Begin
669: hr_utility.set_location('Entering:'||l_proc, 5);
670: --