The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null from
ben_optip_f optip
where optip.pgm_id = p_pgm_id
and optip.pl_typ_id = p_pl_typ_id
and optip.opt_id = p_opt_id
and p_effective_date between optip.effective_start_date and
optip.effective_end_date ;
select optip_id from
ben_optip_f optip
where optip.pgm_id = p_pgm_id
and optip.pl_typ_id = p_pl_typ_id
and optip.opt_id = p_opt_id
and optip.effective_start_date > p_effective_date ;
hr_utility.set_location('Record already exists. no need to insert another record', 20 ) ;
update ben_optip_f
set effective_start_date = p_effective_date
where optip_id = l_future_optip_id ;
procedure update_opt_pltyp_in_pgm
(p_validate in boolean default false
,p_optip_id in number
,p_effective_start_date out nocopy date
,p_effective_end_date out nocopy date
,p_business_group_id in number default hr_api.g_number
,p_pgm_id in number default hr_api.g_number
,p_ptip_id in number default hr_api.g_number
,p_pl_typ_id in number default hr_api.g_number
,p_opt_id in number default hr_api.g_number
,p_cmbn_ptip_opt_id in number default hr_api.g_number
,p_legislation_code in varchar2 default hr_api.g_varchar2
,p_legislation_subgroup in varchar2 default hr_api.g_varchar2
,p_otp_attribute_category in varchar2 default hr_api.g_varchar2
,p_otp_attribute1 in varchar2 default hr_api.g_varchar2
,p_otp_attribute2 in varchar2 default hr_api.g_varchar2
,p_otp_attribute3 in varchar2 default hr_api.g_varchar2
,p_otp_attribute4 in varchar2 default hr_api.g_varchar2
,p_otp_attribute5 in varchar2 default hr_api.g_varchar2
,p_otp_attribute6 in varchar2 default hr_api.g_varchar2
,p_otp_attribute7 in varchar2 default hr_api.g_varchar2
,p_otp_attribute8 in varchar2 default hr_api.g_varchar2
,p_otp_attribute9 in varchar2 default hr_api.g_varchar2
,p_otp_attribute10 in varchar2 default hr_api.g_varchar2
,p_otp_attribute11 in varchar2 default hr_api.g_varchar2
,p_otp_attribute12 in varchar2 default hr_api.g_varchar2
,p_otp_attribute13 in varchar2 default hr_api.g_varchar2
,p_otp_attribute14 in varchar2 default hr_api.g_varchar2
,p_otp_attribute15 in varchar2 default hr_api.g_varchar2
,p_otp_attribute16 in varchar2 default hr_api.g_varchar2
,p_otp_attribute17 in varchar2 default hr_api.g_varchar2
,p_otp_attribute18 in varchar2 default hr_api.g_varchar2
,p_otp_attribute19 in varchar2 default hr_api.g_varchar2
,p_otp_attribute20 in varchar2 default hr_api.g_varchar2
,p_otp_attribute21 in varchar2 default hr_api.g_varchar2
,p_otp_attribute22 in varchar2 default hr_api.g_varchar2
,p_otp_attribute23 in varchar2 default hr_api.g_varchar2
,p_otp_attribute24 in varchar2 default hr_api.g_varchar2
,p_otp_attribute25 in varchar2 default hr_api.g_varchar2
,p_otp_attribute26 in varchar2 default hr_api.g_varchar2
,p_otp_attribute27 in varchar2 default hr_api.g_varchar2
,p_otp_attribute28 in varchar2 default hr_api.g_varchar2
,p_otp_attribute29 in varchar2 default hr_api.g_varchar2
,p_otp_attribute30 in varchar2 default hr_api.g_varchar2
,p_object_version_number in out nocopy number
,p_effective_date in date
,p_datetrack_mode in varchar2
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'update_opt_pltyp_in_pgm';
savepoint update_opt_pltyp_in_pgm;
ben_opt_pltyp_in_pgm_bk2.update_opt_pltyp_in_pgm_b
(
p_optip_id => p_optip_id
,p_business_group_id => p_business_group_id
,p_pgm_id => p_pgm_id
,p_ptip_id => p_ptip_id
,p_pl_typ_id => p_pl_typ_id
,p_opt_id => p_opt_id
,p_cmbn_ptip_opt_id => p_cmbn_ptip_opt_id
,p_legislation_code => p_legislation_code
,p_legislation_subgroup => p_legislation_subgroup
,p_otp_attribute_category => p_otp_attribute_category
,p_otp_attribute1 => p_otp_attribute1
,p_otp_attribute2 => p_otp_attribute2
,p_otp_attribute3 => p_otp_attribute3
,p_otp_attribute4 => p_otp_attribute4
,p_otp_attribute5 => p_otp_attribute5
,p_otp_attribute6 => p_otp_attribute6
,p_otp_attribute7 => p_otp_attribute7
,p_otp_attribute8 => p_otp_attribute8
,p_otp_attribute9 => p_otp_attribute9
,p_otp_attribute10 => p_otp_attribute10
,p_otp_attribute11 => p_otp_attribute11
,p_otp_attribute12 => p_otp_attribute12
,p_otp_attribute13 => p_otp_attribute13
,p_otp_attribute14 => p_otp_attribute14
,p_otp_attribute15 => p_otp_attribute15
,p_otp_attribute16 => p_otp_attribute16
,p_otp_attribute17 => p_otp_attribute17
,p_otp_attribute18 => p_otp_attribute18
,p_otp_attribute19 => p_otp_attribute19
,p_otp_attribute20 => p_otp_attribute20
,p_otp_attribute21 => p_otp_attribute21
,p_otp_attribute22 => p_otp_attribute22
,p_otp_attribute23 => p_otp_attribute23
,p_otp_attribute24 => p_otp_attribute24
,p_otp_attribute25 => p_otp_attribute25
,p_otp_attribute26 => p_otp_attribute26
,p_otp_attribute27 => p_otp_attribute27
,p_otp_attribute28 => p_otp_attribute28
,p_otp_attribute29 => p_otp_attribute29
,p_otp_attribute30 => p_otp_attribute30
,p_object_version_number => p_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode
);
(p_module_name => 'UPDATE_opt_pltyp_in_pgm'
,p_hook_type => 'BP'
);
ben_opt_pltyp_in_pgm_bk2.update_opt_pltyp_in_pgm_a
(
p_optip_id => p_optip_id
,p_effective_start_date => l_effective_start_date
,p_effective_end_date => l_effective_end_date
,p_business_group_id => p_business_group_id
,p_pgm_id => p_pgm_id
,p_ptip_id => p_ptip_id
,p_pl_typ_id => p_pl_typ_id
,p_opt_id => p_opt_id
,p_cmbn_ptip_opt_id => p_cmbn_ptip_opt_id
,p_legislation_code => p_legislation_code
,p_legislation_subgroup => p_legislation_subgroup
,p_otp_attribute_category => p_otp_attribute_category
,p_otp_attribute1 => p_otp_attribute1
,p_otp_attribute2 => p_otp_attribute2
,p_otp_attribute3 => p_otp_attribute3
,p_otp_attribute4 => p_otp_attribute4
,p_otp_attribute5 => p_otp_attribute5
,p_otp_attribute6 => p_otp_attribute6
,p_otp_attribute7 => p_otp_attribute7
,p_otp_attribute8 => p_otp_attribute8
,p_otp_attribute9 => p_otp_attribute9
,p_otp_attribute10 => p_otp_attribute10
,p_otp_attribute11 => p_otp_attribute11
,p_otp_attribute12 => p_otp_attribute12
,p_otp_attribute13 => p_otp_attribute13
,p_otp_attribute14 => p_otp_attribute14
,p_otp_attribute15 => p_otp_attribute15
,p_otp_attribute16 => p_otp_attribute16
,p_otp_attribute17 => p_otp_attribute17
,p_otp_attribute18 => p_otp_attribute18
,p_otp_attribute19 => p_otp_attribute19
,p_otp_attribute20 => p_otp_attribute20
,p_otp_attribute21 => p_otp_attribute21
,p_otp_attribute22 => p_otp_attribute22
,p_otp_attribute23 => p_otp_attribute23
,p_otp_attribute24 => p_otp_attribute24
,p_otp_attribute25 => p_otp_attribute25
,p_otp_attribute26 => p_otp_attribute26
,p_otp_attribute27 => p_otp_attribute27
,p_otp_attribute28 => p_otp_attribute28
,p_otp_attribute29 => p_otp_attribute29
,p_otp_attribute30 => p_otp_attribute30
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode
);
(p_module_name => 'UPDATE_opt_pltyp_in_pgm'
,p_hook_type => 'AP'
);
ROLLBACK TO update_opt_pltyp_in_pgm;
ROLLBACK TO update_opt_pltyp_in_pgm;
end update_opt_pltyp_in_pgm;
procedure delete_opt_pltyp_in_pgm
(p_validate in boolean default false
,p_optip_id in number
,p_effective_start_date out nocopy date
,p_effective_end_date out nocopy date
,p_object_version_number in out nocopy number
,p_effective_date in date
,p_datetrack_mode in varchar2
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'update_opt_pltyp_in_pgm';
savepoint delete_opt_pltyp_in_pgm;
ben_opt_pltyp_in_pgm_bk3.delete_opt_pltyp_in_pgm_b
(
p_optip_id => p_optip_id
,p_object_version_number => p_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode
);
(p_module_name => 'DELETE_opt_pltyp_in_pgm'
,p_hook_type => 'BP'
);
ben_opt_pltyp_in_pgm_bk3.delete_opt_pltyp_in_pgm_a
(
p_optip_id => p_optip_id
,p_effective_start_date => l_effective_start_date
,p_effective_end_date => l_effective_end_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode
);
(p_module_name => 'DELETE_opt_pltyp_in_pgm'
,p_hook_type => 'AP'
);
ROLLBACK TO delete_opt_pltyp_in_pgm;
ROLLBACK TO delete_opt_pltyp_in_pgm;
end delete_opt_pltyp_in_pgm;