The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_s30_select varchar2(1000);
Select action_context_id
from pay_action_information
where action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 = 'S10.G01.00.004'
and action_information4 = p_dads_reference;
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information9 usage
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S10%'
and action_information3 = p_issuing_establishment
order by action_information1;
Select distinct action_information3 company_id,
action_information4 comp_name
from pay_action_information
where action_information1 = 'S20.G01.00.002'
and action_context_id = c_payroll_action_id
and action_information_category = 'FR_DADS_FILE_DATA'
and action_context_type = 'PA'
order by action_information4;
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information7 extra_info,
action_information9 usage
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S20%'
and action_information3 = c_company_id
order by action_information1;
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information9 usage
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S30%'
and action_information3 = c_company_id
order by action_information1;
Select distinct action_information8 ID2
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S41%'
and action_information3 = c_company_id
order by action_information8;
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information9 usage
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S41%'
and action_information3 = c_company_id
and action_information8 = c_s41_id2
order by action_information1;
select distinct action_information3 estab_id
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S80%';
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information9 usage
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S80%'
and action_information3 = c_estab_id
order by action_information1;
Select action_information1 rubric_code,
hr_general.decode_lookup ('FR_DADS_RUBRICS',action_information1) rubric_meaning,
action_information4 file_value,
action_information5 user_value,
action_information9 usage
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S90%'
order by action_information1;
Select issue.action_information4 issue_estab,
cre.action_information5 cre_estab_name
from pay_action_information issue,
pay_action_information cre
where issue.action_context_id = c_payroll_action_id
and issue.action_context_type = 'PA'
and issue.action_information_category = 'FR_DADS_FILE_DATA'
and issue.action_information1 = 'S10.G01.00.002'
--
and cre.action_context_id(+) = issue.action_context_id
and cre.action_context_type(+) = 'PA'
and cre.action_information_category(+) = 'FR_DADS_REPORT_DATA'
and cre.action_information1(+) = 'S10'
and cre.action_information3(+) = P_ISSUING_ESTABLISHMENT;
Select comp.action_information4 comp_name,
nvl(cre_s20.action_information5,null) cre_name,
nvl(hq.action_information7,null) hq_name,
nvl(fisc.action_information4,null) fisc_name
from pay_action_information comp,
pay_action_information cre_s20,
pay_action_information hq,
pay_action_information fisc
where comp.action_context_id = c_payroll_action_id
and comp.action_context_type = 'PA'
and comp.action_information_category = 'FR_DADS_FILE_DATA'
and comp.action_information1 = 'S20.G01.00.002'
and comp.action_information3 = c_company_id
--
and cre_s20.action_context_id(+) = comp.action_context_id
and cre_s20.action_context_type(+) = 'PA'
and cre_s20.action_information_category(+) = 'FR_DADS_REPORT_DATA'
and cre_s20.action_information1 (+)= 'S20'
and cre_s20.action_information3(+) = comp.action_information3
--
and hq.action_context_id(+) = comp.action_context_id
and hq.action_context_type(+) = 'PA'
and hq.action_information_category(+) = 'FR_DADS_FILE_DATA'
and hq.action_information1 (+)= 'S20.G01.00.008'
and hq.action_information3(+) = comp.action_information3
--
and fisc.action_context_id(+) = comp.action_context_id
and fisc.action_context_type(+) = 'PA'
and fisc.action_information_category(+) = 'FR_DADS_FILE_DATA'
and fisc.action_information1(+)='S20.G01.00.011'
and fisc.action_information3(+) = comp.action_information3;
Select nvl(title.action_information5,null) emp_title,
nvl(title.action_information8 ,null) emp_number,
nvl(first_name.action_information4,null) emp_first,
nvl(last_name.action_information4,null) emp_last
from pay_action_information title,
pay_action_information first_name,
pay_action_information last_name
where title.action_context_id = c_asg_action_id
and title.action_context_type = 'AAP'
and title.action_information_category = 'FR_DADS_FILE_DATA'
and title.action_information1 = 'S30.G01.00.007'
and title.action_information3 = c_company_id
--
and first_name.action_context_id = c_asg_action_id
and first_name.action_context_type = 'AAP'
and first_name.action_information_category = 'FR_DADS_FILE_DATA'
and first_name.action_information1 = 'S30.G01.00.003'
and first_name.action_information3 = c_company_id
--
and last_name.action_context_id = c_asg_action_id
and last_name.action_context_type = 'AAP'
and last_name.action_information_category = 'FR_DADS_FILE_DATA'
and last_name.action_information1 = 'S30.G01.00.004'
and last_name.action_information3 = c_company_id;
Select hou_tl_estab.name emp_estab,
start_period.action_information4 period_start,
end_period.action_information4 period_end
from pay_action_information estab,
pay_action_information start_period,
pay_action_information end_period,
hr_all_organization_units_tl hou_tl_estab
where estab.action_context_id = c_asg_action_id
and estab.action_context_type = 'AAP'
and estab.action_information_category = 'FR_DADS_FILE_DATA'
and estab.action_information1 = 'S41.G01.00.005'
and estab.action_information3 = c_company_id
and estab.action_information8 = c_s41_id2
and hou_tl_estab.organization_id(+) = estab.action_information7
and hou_tl_estab.language(+) = userenv('LANG')
--
and start_period.action_context_id = c_asg_action_id
and start_period.action_context_type = 'AAP'
and start_period.action_information_category = 'FR_DADS_FILE_DATA'
and start_period.action_information1 = 'S41.G01.00.001'
and start_period.action_information3 = c_company_id
and start_period.action_information8 = c_s41_id2
--
and end_period.action_context_id = c_asg_action_id
and end_period.action_context_type = 'AAP'
and end_period.action_information_category = 'FR_DADS_FILE_DATA'
and end_period.action_information1 = 'S41.G01.00.003'
and end_period.action_information3 = c_company_id
and end_period.action_information8 = c_s41_id2;
Select action_information4 estab_name
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 = 'S80.G01.00.002'
and action_information3 = c_estab_id;
l_s30_select := 'Select pasac.assignment_action_id
from pay_assignment_actions pasac,
pay_action_information pacinfo_1';
OPEN ref_csr_asg_action FOR l_s30_select||l_s30_cond_from||l_s30_where||l_s30_cond_where||l_s30_order_by||l_s30_cond_order_by;
l_s30_select varchar2(1000);
Select action_context_id
from pay_action_information
where action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 = 'S10.G01.00.004'
and action_information4 = p_dads_reference;
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S10%'
and action_information3 = p_issuing_establishment
and action_information6 is not null
order by action_information1;
Select distinct action_information3 company_id,
action_information4 comp_name
from pay_action_information
where action_information1 = 'S20.G01.00.002'
and action_context_id = c_payroll_action_id
and action_information_category = 'FR_DADS_FILE_DATA'
and action_context_type = 'PA'
order by action_information4;
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S20%'
and action_information3 = c_company_id
and action_information6 is not null
order by action_information1;
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S30%'
and action_information3 = c_company_id
and action_information6 is not null
order by action_information1;
Select distinct action_information8 ID2
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S41%'
and action_information3 = c_company_id
order by action_information8;
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_asg_action_id
and action_context_type = 'AAP'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S41%'
and action_information3 = c_company_id
and action_information8 = c_s41_id2
and action_information6 is not null
order by action_information1;
select distinct action_information3 estab_id
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S80%';
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S80%'
and action_information3 = c_estab_id
and action_information6 is not null
order by action_information1;
Select action_information1 rubric_code,
action_information2 error_warning,
action_information6 error_warning_message
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 like 'S90%'
and action_information6 is not null
order by action_information1;
Select issue.action_information4 issue_estab,
cre.action_information5 cre_estab_name
from pay_action_information issue,
pay_action_information cre
where issue.action_context_id = c_payroll_action_id
and issue.action_context_type = 'PA'
and issue.action_information_category = 'FR_DADS_FILE_DATA'
and issue.action_information1 = 'S10.G01.00.002'
--
and cre.action_context_id(+) = issue.action_context_id
and cre.action_context_type(+) = 'PA'
and cre.action_information_category(+) = 'FR_DADS_REPORT_DATA'
and cre.action_information1(+) = 'S10'
and cre.action_information3(+) = P_ISSUING_ESTABLISHMENT;
Select comp.action_information4 comp_name,
nvl(cre_s20.action_information5,null) cre_name,
nvl(hq.action_information7,null) hq_name,
nvl(fisc.action_information4,null) fisc_name
from pay_action_information comp,
pay_action_information cre_s20,
pay_action_information hq,
pay_action_information fisc
where comp.action_context_id = c_payroll_action_id
and comp.action_context_type = 'PA'
and comp.action_information_category = 'FR_DADS_FILE_DATA'
and comp.action_information1 = 'S20.G01.00.002'
and comp.action_information3 = c_company_id
--
and cre_s20.action_context_id(+) = comp.action_context_id
and cre_s20.action_context_type(+) = 'PA'
and cre_s20.action_information_category(+) = 'FR_DADS_REPORT_DATA'
and cre_s20.action_information1 (+)= 'S20'
and cre_s20.action_information3(+) = comp.action_information3
--
and hq.action_context_id(+) = comp.action_context_id
and hq.action_context_type(+) = 'PA'
and hq.action_information_category(+) = 'FR_DADS_FILE_DATA'
and hq.action_information1 (+)= 'S20.G01.00.008'
and hq.action_information3(+) = comp.action_information3
--
and fisc.action_context_id(+) = comp.action_context_id
and fisc.action_context_type(+) = 'PA'
and fisc.action_information_category(+) = 'FR_DADS_FILE_DATA'
and fisc.action_information1(+)='S20.G01.00.011'
and fisc.action_information3(+) = comp.action_information3;
Select nvl(title.action_information5,null) emp_title,
nvl(title.action_information8 ,null) emp_number,
nvl(first_name.action_information4,null) emp_first,
nvl(last_name.action_information4,null) emp_last
from pay_action_information title,
pay_action_information first_name,
pay_action_information last_name
where title.action_context_id = c_asg_action_id
and title.action_context_type = 'AAP'
and title.action_information_category = 'FR_DADS_FILE_DATA'
and title.action_information1 = 'S30.G01.00.007'
and title.action_information3 = c_company_id
--
and first_name.action_context_id = c_asg_action_id
and first_name.action_context_type = 'AAP'
and first_name.action_information_category = 'FR_DADS_FILE_DATA'
and first_name.action_information1 = 'S30.G01.00.003'
and first_name.action_information3 = c_company_id
--
and last_name.action_context_id = c_asg_action_id
and last_name.action_context_type = 'AAP'
and last_name.action_information_category = 'FR_DADS_FILE_DATA'
and last_name.action_information1 = 'S30.G01.00.004'
and last_name.action_information3 = c_company_id;
Select hou_tl_estab.name emp_estab,
start_period.action_information4 period_start,
end_period.action_information4 period_end
from pay_action_information estab,
pay_action_information start_period,
pay_action_information end_period,
hr_all_organization_units_tl hou_tl_estab
where estab.action_context_id = c_asg_action_id
and estab.action_context_type = 'AAP'
and estab.action_information_category = 'FR_DADS_FILE_DATA'
and estab.action_information1 = 'S41.G01.00.005'
and estab.action_information3 = c_company_id
and estab.action_information8 = c_s41_id2
and hou_tl_estab.organization_id(+) = estab.action_information7
and hou_tl_estab.language(+) = userenv('LANG')
--
and start_period.action_context_id = c_asg_action_id
and start_period.action_context_type = 'AAP'
and start_period.action_information_category = 'FR_DADS_FILE_DATA'
and start_period.action_information1 = 'S41.G01.00.001'
and start_period.action_information3 = c_company_id
and start_period.action_information8 = c_s41_id2
--
and end_period.action_context_id = c_asg_action_id
and end_period.action_context_type = 'AAP'
and end_period.action_information_category = 'FR_DADS_FILE_DATA'
and end_period.action_information1 = 'S41.G01.00.003'
and end_period.action_information3 = c_company_id
and end_period.action_information8 = c_s41_id2;
Select action_information4 estab_name
from pay_action_information
where action_context_id = c_payroll_action_id
and action_context_type = 'PA'
and action_information_category = 'FR_DADS_FILE_DATA'
and action_information1 = 'S80.G01.00.002'
and action_information3 = c_estab_id;
l_s30_select := 'Select pasac.assignment_action_id
from pay_assignment_actions pasac,
pay_action_information pacinfo_1';
OPEN ref_csr_asg_action FOR l_s30_select||l_s30_cond_from||l_s30_where||l_s30_cond_where||l_s30_order_by||l_s30_cond_order_by;