The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ben_pl_f pln, ben_popl_rptg_grp_f rgr, ben_rptg_grp bnr
where pln.pl_typ_id = p_pl_typ_id
and ( pln.business_group_id = p_business_group_id or p_business_group_id is null)
and p_validation_start_date <= pln.effective_end_date
and p_validation_end_date >= pln.effective_Start_date
and pln.pl_id = rgr.pl_id
and ( rgr.business_group_id = p_business_group_id or p_business_group_id is null)
and greatest(p_validation_start_date, pln.effective_start_date) <= rgr.effective_end_date
and least(p_validation_end_date, pln.effective_end_date) >= rgr.effective_Start_date
and rgr.rptg_grp_id = bnr.rptg_grp_id
and bnr.rptg_prps_cd = 'IREC'
and ( bnr.business_group_id = p_business_group_id or p_business_group_id is null);
-- Raise error : as there is plan associated with the plan type being updated - which
-- is also associated to iRecruitment Reporting Group
--
fnd_message.set_name('BEN','BEN_93922_PTP_PL_RPTG_GRP_IREC');
select null
from BEN_PL_TYP_F
where name = p_name
and pl_typ_id <> nvl(p_pl_typ_id, hr_api.g_number)
and business_group_id + 0 = p_business_group_id
and p_validation_start_date <= effective_end_date
and p_validation_end_date >= effective_start_date;
select 1
from ben_pl_typ_f
where opt_typ_cd = 'GSP'
and pl_typ_id <> nvl(p_pl_typ_id, hr_api.g_number)
and p_effective_date between effective_start_date and effective_end_date
and business_group_id = p_business_group_id
;
Procedure dt_update_validate
(
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_pl_typ_id in number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_delete_validate';
If (p_datetrack_mode = 'DELETE' or
p_datetrack_mode = 'ZAP') then
--
--
-- Ensure the arguments are not null
--
hr_api.mandatory_arg_error
(p_api_name => l_proc,
p_argument => 'validation_start_date',
p_argument_value => p_validation_start_date);
End dt_delete_validate;
Procedure insert_validate
(p_rec in ben_ptp_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in ben_ptp_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
dt_update_validate
(
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End update_validate;
Procedure delete_validate
(p_rec in ben_ptp_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
dt_delete_validate
(p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date,
p_pl_typ_id => p_rec.pl_typ_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_pl_typ_f b
where b.pl_typ_id = p_pl_typ_id
and a.business_group_id = b.business_group_id;