The following lines contain the word 'select', 'insert', 'update' or 'delete':
and p_event_type <> '-1' /* Bug 4031314 : Enter Event Type as -1, when user does not select it */
then
--
-- check if value of lookup falls within lookup type.
--
--
if hr_api.not_exists_in_hr_lookups
(p_lookup_type => 'EMP_INTERVIEW_TYPE',
p_lookup_code => p_event_type,
p_effective_date => p_effective_date) then
--
-- raise error as does not exist as lookup
--
fnd_message.set_name('BEN','BEN_91628_LOOKUP_TYPE_GENERIC');
select null
from ben_ELIG_PERF_RTNG_PRTE_f erg
where nvl(erg.event_type,'xxxx') = nvl(p_event_type,'xxxx')
and nvl(erg.perf_rtng_cd,'xxxx') = nvl(p_perf_rtng_cd,'xxxx')
and erg.ELIGY_PRFL_id = p_ELIGY_PRFL_id
and erg.ELIG_PERF_RTNG_PRTE_id <> nvl(p_ELIG_PERF_RTNG_PRTE_id,hr_api.g_number)
and erg.business_group_id = p_business_group_id;
select null
from ben_ELIG_PERF_RTNG_PRTE_f
where ELIG_PERF_RTNG_PRTE_id <> nvl(p_ELIG_PERF_RTNG_PRTE_id,-1)
and eligy_prfl_id = p_eligy_prfl_id
and ordr_num = p_ordr_num
and business_group_id = p_business_group_id;
Procedure dt_update_validate
(p_ELIGY_PRFL_id in number default hr_api.g_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_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_ELIG_PERF_RTNG_PRTE_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_erg_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_erg_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_ELIGY_PRFL_id => p_rec.ELIGY_PRFL_id,
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_erg_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_ELIG_PERF_RTNG_PRTE_id => p_rec.ELIG_PERF_RTNG_PRTE_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_ELIG_PERF_RTNG_PRTE_f b
where b.ELIG_PERF_RTNG_PRTE_id = p_ELIG_PERF_RTNG_PRTE_id
and a.business_group_id = b.business_group_id;