The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id
from per_business_groups pbg
, pay_batch_control_totals bct
, pay_batch_headers bth
where bct.batch_control_id = p_batch_control_id
and bth.batch_id = bct.batch_id
and pbg.business_group_id = bth.business_group_id;
select pbg.legislation_code
from per_business_groups pbg
, pay_batch_control_totals bct
, pay_batch_headers bth
where bct.batch_control_id = p_batch_control_id
and bth.batch_id = bct.batch_id
and pbg.business_group_id = bth.business_group_id;
Procedure chk_non_updateable_args
(p_rec in pay_bct_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select 'Y'
from pay_batch_control_totals pct
where pct.batch_control_id = p_batch_control_id
and pct.control_status = 'T';
select null
from pay_batch_headers bth
where bth.batch_id = p_batch_id;
select CURRENCY_CODE into l_curr_code
from PER_BUSINESS_GROUPS perbg,
pay_batch_headers pybeeh
where perbg.BUSINESS_GROUP_ID = pybeeh.BUSINESS_GROUP_ID and
pybeeh.batch_id = p_batch_id;
procedure chk_delete
(p_batch_control_id in pay_batch_control_totals.batch_control_id%TYPE
) is
--
l_proc varchar2(72) := g_package||'chk_delete';
select null
from pay_message_lines pml
where pml.source_id = p_batch_control_id
and pml.source_type = 'C';
end chk_delete;
Procedure insert_validate
(p_session_date in date,
p_rec in pay_bct_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_session_date in date,
p_rec in pay_bct_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in pay_bct_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
chk_delete(p_batch_control_id => p_rec.batch_control_id);
End delete_validate;