The following lines contain the word 'select', 'insert', 'update' or 'delete':
select opt.Group_opt_id ,
opt.object_version_number
from ben_opt_f opt
where opt.opt_id = p_opt_id
and p_effective_date between
opt.effective_start_date and opt.effective_end_date ;
select ptp.opt_typ_cd
from ben_pl_typ_f ptp
where ptp.pl_typ_id = p_pl_typ_id
and p_effective_date between
ptp.effective_start_date and ptp.effective_end_date ;
BEN_option_definition_API.update_option_definition
(p_validate => FALSE
,p_OPT_ID => p_opt_id
,p_EFFECTIVE_START_DATE => l_eff_st_dt
,p_EFFECTIVE_END_DATE => l_eff_end_dt
,p_group_opt_id => p_opt_id
,p_OBJECT_VERSION_NUMBER=> l_opt_ovn
,p_effective_date => p_effective_date
,p_datetrack_mode => 'CORRECTION'
);
/* Inserted for nocopy changes */
p_pl_typ_opt_typ_id := null;
procedure update_plan_type_option_type
(p_validate in boolean default false
,p_pl_typ_opt_typ_id in number
,p_effective_start_date out nocopy date
,p_effective_end_date out nocopy date
,p_pl_typ_opt_typ_cd in varchar2 default hr_api.g_varchar2
,p_opt_id in number default hr_api.g_number
,p_pl_typ_id in number default hr_api.g_number
,p_business_group_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_pon_attribute_category in varchar2 default hr_api.g_varchar2
,p_pon_attribute1 in varchar2 default hr_api.g_varchar2
,p_pon_attribute2 in varchar2 default hr_api.g_varchar2
,p_pon_attribute3 in varchar2 default hr_api.g_varchar2
,p_pon_attribute4 in varchar2 default hr_api.g_varchar2
,p_pon_attribute5 in varchar2 default hr_api.g_varchar2
,p_pon_attribute6 in varchar2 default hr_api.g_varchar2
,p_pon_attribute7 in varchar2 default hr_api.g_varchar2
,p_pon_attribute8 in varchar2 default hr_api.g_varchar2
,p_pon_attribute9 in varchar2 default hr_api.g_varchar2
,p_pon_attribute10 in varchar2 default hr_api.g_varchar2
,p_pon_attribute11 in varchar2 default hr_api.g_varchar2
,p_pon_attribute12 in varchar2 default hr_api.g_varchar2
,p_pon_attribute13 in varchar2 default hr_api.g_varchar2
,p_pon_attribute14 in varchar2 default hr_api.g_varchar2
,p_pon_attribute15 in varchar2 default hr_api.g_varchar2
,p_pon_attribute16 in varchar2 default hr_api.g_varchar2
,p_pon_attribute17 in varchar2 default hr_api.g_varchar2
,p_pon_attribute18 in varchar2 default hr_api.g_varchar2
,p_pon_attribute19 in varchar2 default hr_api.g_varchar2
,p_pon_attribute20 in varchar2 default hr_api.g_varchar2
,p_pon_attribute21 in varchar2 default hr_api.g_varchar2
,p_pon_attribute22 in varchar2 default hr_api.g_varchar2
,p_pon_attribute23 in varchar2 default hr_api.g_varchar2
,p_pon_attribute24 in varchar2 default hr_api.g_varchar2
,p_pon_attribute25 in varchar2 default hr_api.g_varchar2
,p_pon_attribute26 in varchar2 default hr_api.g_varchar2
,p_pon_attribute27 in varchar2 default hr_api.g_varchar2
,p_pon_attribute28 in varchar2 default hr_api.g_varchar2
,p_pon_attribute29 in varchar2 default hr_api.g_varchar2
,p_pon_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_plan_type_option_type';
select opt.Group_opt_id ,
opt.object_version_number
from ben_opt_f opt
where opt.opt_id = p_opt_id
and p_effective_date between
opt.effective_start_date and opt.effective_end_date ;
select ptp.opt_typ_cd
from ben_pl_typ_f ptp
where ptp.pl_typ_id = p_pl_typ_id
and p_effective_date between
ptp.effective_start_date and ptp.effective_end_date ;
savepoint update_plan_type_option_type;
ben_plan_type_option_type_bk2.update_plan_type_option_type_b
(
p_pl_typ_opt_typ_id => p_pl_typ_opt_typ_id
,p_pl_typ_opt_typ_cd => p_pl_typ_opt_typ_cd
,p_opt_id => p_opt_id
,p_pl_typ_id => p_pl_typ_id
,p_business_group_id => p_business_group_id
,p_legislation_code => p_legislation_code
,p_legislation_subgroup => p_legislation_subgroup
,p_pon_attribute_category => p_pon_attribute_category
,p_pon_attribute1 => p_pon_attribute1
,p_pon_attribute2 => p_pon_attribute2
,p_pon_attribute3 => p_pon_attribute3
,p_pon_attribute4 => p_pon_attribute4
,p_pon_attribute5 => p_pon_attribute5
,p_pon_attribute6 => p_pon_attribute6
,p_pon_attribute7 => p_pon_attribute7
,p_pon_attribute8 => p_pon_attribute8
,p_pon_attribute9 => p_pon_attribute9
,p_pon_attribute10 => p_pon_attribute10
,p_pon_attribute11 => p_pon_attribute11
,p_pon_attribute12 => p_pon_attribute12
,p_pon_attribute13 => p_pon_attribute13
,p_pon_attribute14 => p_pon_attribute14
,p_pon_attribute15 => p_pon_attribute15
,p_pon_attribute16 => p_pon_attribute16
,p_pon_attribute17 => p_pon_attribute17
,p_pon_attribute18 => p_pon_attribute18
,p_pon_attribute19 => p_pon_attribute19
,p_pon_attribute20 => p_pon_attribute20
,p_pon_attribute21 => p_pon_attribute21
,p_pon_attribute22 => p_pon_attribute22
,p_pon_attribute23 => p_pon_attribute23
,p_pon_attribute24 => p_pon_attribute24
,p_pon_attribute25 => p_pon_attribute25
,p_pon_attribute26 => p_pon_attribute26
,p_pon_attribute27 => p_pon_attribute27
,p_pon_attribute28 => p_pon_attribute28
,p_pon_attribute29 => p_pon_attribute29
,p_pon_attribute30 => p_pon_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_plan_type_option_type'
,p_hook_type => 'BP'
);
ben_plan_type_option_type_bk2.update_plan_type_option_type_a
(
p_pl_typ_opt_typ_id => p_pl_typ_opt_typ_id
,p_effective_start_date => l_effective_start_date
,p_effective_end_date => l_effective_end_date
,p_pl_typ_opt_typ_cd => p_pl_typ_opt_typ_cd
,p_opt_id => p_opt_id
,p_pl_typ_id => p_pl_typ_id
,p_business_group_id => p_business_group_id
,p_legislation_code => p_legislation_code
,p_legislation_subgroup => p_legislation_subgroup
,p_pon_attribute_category => p_pon_attribute_category
,p_pon_attribute1 => p_pon_attribute1
,p_pon_attribute2 => p_pon_attribute2
,p_pon_attribute3 => p_pon_attribute3
,p_pon_attribute4 => p_pon_attribute4
,p_pon_attribute5 => p_pon_attribute5
,p_pon_attribute6 => p_pon_attribute6
,p_pon_attribute7 => p_pon_attribute7
,p_pon_attribute8 => p_pon_attribute8
,p_pon_attribute9 => p_pon_attribute9
,p_pon_attribute10 => p_pon_attribute10
,p_pon_attribute11 => p_pon_attribute11
,p_pon_attribute12 => p_pon_attribute12
,p_pon_attribute13 => p_pon_attribute13
,p_pon_attribute14 => p_pon_attribute14
,p_pon_attribute15 => p_pon_attribute15
,p_pon_attribute16 => p_pon_attribute16
,p_pon_attribute17 => p_pon_attribute17
,p_pon_attribute18 => p_pon_attribute18
,p_pon_attribute19 => p_pon_attribute19
,p_pon_attribute20 => p_pon_attribute20
,p_pon_attribute21 => p_pon_attribute21
,p_pon_attribute22 => p_pon_attribute22
,p_pon_attribute23 => p_pon_attribute23
,p_pon_attribute24 => p_pon_attribute24
,p_pon_attribute25 => p_pon_attribute25
,p_pon_attribute26 => p_pon_attribute26
,p_pon_attribute27 => p_pon_attribute27
,p_pon_attribute28 => p_pon_attribute28
,p_pon_attribute29 => p_pon_attribute29
,p_pon_attribute30 => p_pon_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_plan_type_option_type'
,p_hook_type => 'AP'
);
BEN_option_definition_API.update_option_definition
(p_validate => FALSE
,p_OPT_ID => p_opt_id
,p_EFFECTIVE_START_DATE => l_eff_st_dt
,p_EFFECTIVE_END_DATE => l_eff_end_dt
,p_group_opt_id => p_opt_id
,p_OBJECT_VERSION_NUMBER=> l_opt_ovn
,p_effective_date => p_effective_date
,p_datetrack_mode => 'CORRECTION'
);
ROLLBACK TO update_plan_type_option_type;
ROLLBACK TO update_plan_type_option_type;
/* Inserted for nocopy changes */
p_object_version_number := l_object_version_number;
end update_plan_type_option_type;
procedure delete_plan_type_option_type
(p_validate in boolean default false
,p_pl_typ_opt_typ_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
--
cursor c1 is
select opt.opt_id, opt.object_version_number
from ben_pl_typ_opt_typ_f pon, ben_opt_f opt
where pon.opt_id = opt.opt_id
and pon.pl_typ_opt_typ_id = p_pl_typ_opt_typ_id
and p_effective_date between pon.effective_start_date and pon.effective_end_date
and p_effective_date between opt.effective_start_date and opt.effective_end_date;
select count(*)
from ben_pl_typ_opt_typ_f
where pl_typ_opt_typ_cd = 'CWB'
and opt_id = p_opt_id
and p_effective_date between effective_start_date and effective_end_date;
l_proc varchar2(72) := g_package||'update_plan_type_option_type';
savepoint delete_plan_type_option_type;
ben_plan_type_option_type_bk3.delete_plan_type_option_type_b
(
p_pl_typ_opt_typ_id => p_pl_typ_opt_typ_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_plan_type_option_type'
,p_hook_type => 'BP'
);
ben_plan_type_option_type_bk3.delete_plan_type_option_type_a
(
p_pl_typ_opt_typ_id => p_pl_typ_opt_typ_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_plan_type_option_type'
,p_hook_type => 'AP'
);
update ben_opt_f
set group_opt_id = null
where opt_id = l_opt_id
and p_effective_date between effective_start_date and effective_end_date;
ROLLBACK TO delete_plan_type_option_type;
ROLLBACK TO delete_plan_type_option_type;
/* Inserted for nocopy changes */
p_object_version_number := l_object_version_number;
end delete_plan_type_option_type;