550: IF p_mode = 'GENERATE' THEN
551:
552: /*GENERATE Mode Ends*/
553:
554: /*Start of PAY_US_ASG_REPORTING Section*/
555:
556: INSERT INTO pay_us_geo_update
557: (id,
558: assignment_id,
566: description)
567: SELECT DISTINCT p_id
568: ,p_assignment_id
569: ,l_person_id
570: ,'PAY_US_ASG_REPORTING'
571: ,puar.jurisdiction_code
572: ,replace(puar.jurisdiction_code,substr(pumg.city_name,1,6),substr(pumg.city_name,8,6))
573: ,pumg.process_type
574: ,p_date
573: ,pumg.process_type
574: ,p_date
575: ,p_mode
576: ,substr(pumg.city_name,8,6)
577: FROM pay_us_asg_reporting puar,
578: pay_us_modified_geocodes pumg
579: WHERE puar.assignment_id = p_assignment_id
580: AND length(puar.jurisdiction_code) = 16
581: AND substr(puar.jurisdiction_code,1,2) = '39'
586: pumg.county_code,
587: pumg.old_city_code,
588: pumg.city_name)='Y';
589:
590: hr_utility.trace('Done with PAY_US_ASG_REPORTING');
591:
592: /*End of PAY_US_ASG_REPORTING Section*/
593:
594: /*Start of PAY_ELEMENT_ENTRY_VALUES_F Section*/
588: pumg.city_name)='Y';
589:
590: hr_utility.trace('Done with PAY_US_ASG_REPORTING');
591:
592: /*End of PAY_US_ASG_REPORTING Section*/
593:
594: /*Start of PAY_ELEMENT_ENTRY_VALUES_F Section*/
595:
596: INSERT INTO pay_us_geo_update
1013: pugu.table_value_id,
1014: pugu.old_juri_code,
1015: pugu.new_juri_code,
1016: decode(pugu.table_name,
1017: 'PAY_US_ASG_REPORTING',1,
1018: 'PAY_ACTION_INFORMATION',2,
1019: 'PAY_ELEMENT_ENTRY_VALUES_F',3,
1020: 'PAY_RUN_RESULTS',4,
1021: 'PAY_RUN_RESULT_VALUES',5,
1057:
1058: WHILE (get_emp_upgrade_details%FOUND)
1059: LOOP
1060:
1061: IF l_table_name = 'PAY_US_ASG_REPORTING' THEN
1062:
1063: UPDATE pay_us_asg_reporting
1064: SET jurisdiction_code= l_new_jurisdiction_code
1065: WHERE assignment_id = p_assignment_id
1059: LOOP
1060:
1061: IF l_table_name = 'PAY_US_ASG_REPORTING' THEN
1062:
1063: UPDATE pay_us_asg_reporting
1064: SET jurisdiction_code= l_new_jurisdiction_code
1065: WHERE assignment_id = p_assignment_id
1066: AND jurisdiction_code = l_old_jurisdiction_code;
1067:
1112: IF (get_emp_upgrade_details%NOTFOUND) THEN
1113:
1114: /*Bug14082784 Changes */
1115:
1116: /*See if there are any duplicate records in PAY_US_ASG_REPORTING resulted due to
1117: the latest changes. In case, if any are present, remove the duplicate records
1118: to retain single record. Below delete statement achieves this.*/
1119:
1120: DELETE FROM pay_us_asg_reporting
1116: /*See if there are any duplicate records in PAY_US_ASG_REPORTING resulted due to
1117: the latest changes. In case, if any are present, remove the duplicate records
1118: to retain single record. Below delete statement achieves this.*/
1119:
1120: DELETE FROM pay_us_asg_reporting
1121: WHERE ROWID IN (
1122: SELECT a.ROWID
1123: FROM pay_us_asg_reporting a,
1124: pay_us_asg_reporting b
1119:
1120: DELETE FROM pay_us_asg_reporting
1121: WHERE ROWID IN (
1122: SELECT a.ROWID
1123: FROM pay_us_asg_reporting a,
1124: pay_us_asg_reporting b
1125: WHERE a.assignment_id = p_assignment_id
1126: AND a.assignment_id = b.assignment_id
1127: AND a.tax_unit_id=b.tax_unit_id
1120: DELETE FROM pay_us_asg_reporting
1121: WHERE ROWID IN (
1122: SELECT a.ROWID
1123: FROM pay_us_asg_reporting a,
1124: pay_us_asg_reporting b
1125: WHERE a.assignment_id = p_assignment_id
1126: AND a.assignment_id = b.assignment_id
1127: AND a.tax_unit_id=b.tax_unit_id
1128: AND a.jurisdiction_code=b.jurisdiction_code
2185: l_print_full_name per_all_people_f.full_name%TYPE;
2186: l_print_emp_assignment_id NUMBER;
2187: l_print_old_juri_code VARCHAR2(16);
2188: l_print_new_juri_code VARCHAR2(16);
2189: l_pay_us_asg_reporting VARCHAR2(10);
2190: l_pay_element_entry_values_f VARCHAR2(10);
2191: l_pay_run_results VARCHAR2(10);
2192: l_pay_run_result_values VARCHAR2(10);
2193: l_pay_action_information VARCHAR2(10);
2266:
2267: fnd_file.put_line(fnd_file.output,'
Table Name | Abbrevation | ||||||||
---|---|---|---|---|---|---|---|---|---|
PAY_US_ASG_REPORTING | PUAR | ||||||||
PAY_ELEMENT_ENTRY_VALUES_F | PEEV | ||||||||
PAY_RUN_RESULTS | PRR | ||||||||
PAY_RUN_RESULT_VALUES | PRRV | ||||||||
PAY_ACTION_INFORMATION | PAI | '||l_pay_us_asg_reporting||' | '||l_pay_element_entry_values_f||' | '||l_pay_run_results||' | '||l_pay_run_result_values||' | ');||||
'||l_print_full_name||' | '||l_print_emp_assignment_id||' | '||l_print_old_juri_code||' | '||l_print_new_juri_code||' | ');'||l_pay_us_asg_reporting||' | '||l_pay_element_entry_values_f||' | '||l_pay_run_results||' | '||l_pay_run_result_values||' | ');'||l_pay_action_information||' | '||l_ff_archive_item_contexts||' | '||l_pay_us_asg_reporting||' | '||l_pay_element_entry_values_f||' | '||l_pay_run_results||' | '||l_pay_run_result_values||' | ');
'||l_print_full_name||' | '||l_print_emp_assignment_id||' | '||l_print_old_juri_code||' | '||l_print_new_juri_code||' | ');'||l_pay_us_asg_reporting||' | '||l_pay_element_entry_values_f||' | '||l_pay_run_results||' | '||l_pay_run_result_values||' | ');'||l_pay_action_information||' | '||l_ff_archive_item_contexts||' |