The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_comp_object_selection_rule ff_formulas_f.formula_name%type ;
l_person_selection_rule ff_formulas_f.formula_name%type ;
p_comp_object_selection_rule => L_COMP_OBJECT_SELECTION_RULE,
p_person_selection_rule => L_PERSON_SELECTION_RULE,
p_life_event_reason => L_LIFE_EVENT_REASON,
p_organization => L_ORGANIZATION,
p_postal_zip_range => L_POSTAL_ZIP_RANGE,
p_reporting_group => L_REPORTING_GROUP,
p_plan_type => L_PLAN_TYPE,
p_option => L_OPTION,
p_eligibility_profile => L_ELIGIBILITY_PROFILE,
p_variable_rate_profile => L_VARIABLE_RATE_PROFILE,
p_legal_entity => L_LEGAL_ENTITY,
p_payroll => L_PAYROLL,
p_status => L_STATUS);
CP_COMP_OBJECT_SELECTION_RULE := l_comp_object_selection_rule;
CP_PERSON_SELECTION_RULE := l_person_selection_rule;
Select count(distinct rep.person_id) prcurmop
into CP_PRCURMOP
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd in ('PRCURMOP', 'PRPPOIPL')
and not exists (select distinct rep.person_id
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd in ('PRRETROP', 'PRCREDIT')) ;
Select count(distinct rep.person_id) prcredit
into CP_PRCREDIT
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd = ('PRCREDIT')
and not exists (select distinct rep.person_id
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd in ('PRCURMOP', 'PRRETROP', 'PRPPOIPL')) ;
Select count(distinct rep.person_id) prretrop
into CP_PRRETROP
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd = ('PRRETROP')
and not exists (select distinct rep.person_id
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd in ('PRCURMOP', 'PRCREDIT', 'PRPPOIPL')) ;
Select count(distinct rep.person_id) prtotal
into CP_PRTOTAL
from ben_reporting rep
,ben_benefit_actions bft
where bft.benefit_action_id = rep.benefit_action_id
and bft.request_id = P_CONCURRENT_REQUEST_ID
and rep.rep_typ_cd IN ('PRCREDIT', 'PRCURMOP', 'PRRETROP', 'PRPPOIPL') ;
l_persons_selected varchar2(30);
p_persons_selected => L_PERSONS_SELECTED,
p_persons_processed => L_PERSONS_PROCESSED,
p_persons_unprocessed => L_PERSONS_UNPROCESSED,
p_persons_processed_succ => L_PERSONS_PROCESSED_SUCC,
p_persons_errored => L_PERSONS_ERRORED);
CP_PERSONS_SELECTED := l_persons_selected;
return CP_COMP_OBJECT_SELECTION_RULE;
Function CP_PERSON_SELECTION_RULE_p return varchar2 is
Begin
return CP_PERSON_SELECTION_RULE;
Function CP_PERSONS_SELECTED_p return number is
Begin
return CP_PERSONS_SELECTED;