The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT fnd_global.local_chr(13) || fnd_global.local_chr(10) INTO EOL
FROM dual;
select fai.value
from ff_archive_item_contexts faic,
ff_contexts fc,
ff_archive_items fai,
ff_database_items fdi,
ff_contexts fc2,
ff_archive_item_contexts faic2
where fdi.user_name = psd_ue_name
and fdi.user_entity_id = fai.user_entity_id
and fai.context1 = p_payroll_action_id
and fc.context_name = 'TAX_UNIT_ID'
and fai.archive_item_id = faic.archive_item_id
and faic.context_id = fc.context_id
and faic.context = to_char(p_tax_unit_id)
and fc2.context_name = 'JURISDICTION_CODE'
and fai.archive_item_id = faic2.archive_item_id
and faic2.context_id = fc2.context_id
and faic2.context = to_char('39-000000-' ||pay_magtape_generic.get_parameter_value('ER_PSD_CODE'));
/*select pay_us_get_item_data_pkg.GET_CPROG_PARAMETER_VALUE(ppa.payroll_action_id,
'TRANSFER_PERIOD_TYPE') into l_period_type
from pay_payroll_Actions ppa where payroll_action_id= p_payroll_action_id;*/
select pay_us_get_item_data_pkg.GET_CPROG_PARAMETER_VALUE(pay_magtape_generic.get_parameter_value('TRANSFER_PAYROLL_ACTION_ID'),
'TRANSFER_PERIOD_TYPE') into l_period_type
from dual;
SELECT fnd_global.local_chr(13) || fnd_global.local_chr(10) INTO EOL
FROM dual;
SELECT 'Y'
FROM hr_organization_information hoi
WHERE hoi.organization_id = tax_unit_id AND
hoi.org_information_context = 'PSD Reporting Rules' AND
substr(hoi.org_information10,1,6)=psd_code;
SELECT paf.work_at_home
FROM per_all_assignments_f paf,
pay_assignment_actions paa
WHERE paa.assignment_action_id= l_assignment_action_id
AND paa.assignment_id = paf.assignment_id
AND l_effective_date between paf.effective_start_date and paf.effective_end_date;
select W2_LOCAL_WAGES,
W2_LOCAL_INCOME_TAX
from PAY_US_LOCALITY_W2_V v
where v.assignment_action_id = l_assignment_action_id
and v.JURISDICTION = l_jd_code;
/*select pay_us_get_item_data_pkg.GET_CPROG_PARAMETER_VALUE(ppa.payroll_action_id,
'TRANSFER_PERIOD_TYPE') into l_period_type
from pay_payroll_Actions ppa where payroll_action_id= p_payroll_action_id;*/
select pay_us_get_item_data_pkg.GET_CPROG_PARAMETER_VALUE(pay_magtape_generic.get_parameter_value('TRANSFER_PAYROLL_ACTION_ID'),
'TRANSFER_PERIOD_TYPE') into l_period_type
from dual;
select substr( p_jurisdiction_code, 4,6) into l_ee_residence_psd_code from dual;
select substr( p_jurisdiction_code, 11,6) into l_ee_work_psd_code from dual;
ltr_ue_name_table.delete;
select SUBSTR(l_status_description || 'Archive Item ' || ltr_ue_name_table(j).ue_name || ' has negative balance(' || trunc(ltr_ue_name_table(j).ue_value)||
decode(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),0,'.00',rpad(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),3,'0'))||').'
||fnd_global.local_chr(13) || fnd_global.local_chr(10)||' ',1,1500) into l_status_description
from dual;
select SUBSTR(l_status_description || 'Archive Item ' || ltr_ue_name_table(j).ue_name || ' has negative balance(' || trunc(ltr_ue_name_table(j).ue_value)||
decode(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),0,'.00',rpad(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),3,'0'))||').'
||fnd_global.local_chr(13) || fnd_global.local_chr(10)||' ',1,1500) into l_status_description
from dual;
select SUBSTR(l_status_description || 'Archive Item ' || ltr_ue_name_table(j).ue_name || ' has negative balance(' || trunc(ltr_ue_name_table(j).ue_value)||
decode(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),0,'.00',rpad(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),3,'0'))||').'
||fnd_global.local_chr(13) || fnd_global.local_chr(10)||' ',1,1500) into l_status_description
from dual;
select SUBSTR(l_status_description || 'Archive Item ' || ltr_ue_name_table(j).ue_name || ' has negative balance(' || trunc(ltr_ue_name_table(j).ue_value)||
decode(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),0,'.00',rpad(abs(ltr_ue_name_table(j).ue_value)-abs(trunc(ltr_ue_name_table(j).ue_value)),3,'0'))||').'
||fnd_global.local_chr(13) || fnd_global.local_chr(10)||' ',1,1500) into l_status_description
from dual;
SELECT fnd_global.local_chr(13) || fnd_global.local_chr(10) INTO EOL
FROM dual;