[Home] [Help]
41:
42: hr_utility.trace('User Defined City changes entries found for Upgrade');
43: hr_utility.trace('Processing required');
44:
45: fnd_file.put_line(fnd_file.log,'User Defined City changes entries found for Upgrade');
46: fnd_file.put_line(fnd_file.log,'Processing required');
47:
48: hr_utility.trace('Start of Initial Setup');
49:
42: hr_utility.trace('User Defined City changes entries found for Upgrade');
43: hr_utility.trace('Processing required');
44:
45: fnd_file.put_line(fnd_file.log,'User Defined City changes entries found for Upgrade');
46: fnd_file.put_line(fnd_file.log,'Processing required');
47:
48: hr_utility.trace('Start of Initial Setup');
49:
50: /*Get the MODE of Execution for the User Defined City Upgrade Process*/
121: AND pumg.process_type = 'D'
122: AND pumg.patch_name = l_patch_name);
123:
124: hr_utility.trace('Created PAY_PATCH_STATUS Entry with ID :'||l_id);
125: fnd_file.put_line(fnd_file.log,'Created PAY_PATCH_STATUS Entry with ID :'||l_id);
126:
127: sqlstr := ' SELECT DISTINCT paf.person_id
128: FROM per_all_assignments_f paf,
129: pay_us_emp_city_tax_rules_f pect,
148:
149: hr_utility.trace('No User Defined City changes entries for Upgrade');
150: hr_utility.trace('No Processing required');
151:
152: fnd_file.put_line(fnd_file.log,'No User Defined City changes entries for Upgrade');
153: fnd_file.put_line(fnd_file.log,'No Processing required');
154:
155: sqlstr := ' SELECT distinct paf.person_id
156: FROM per_all_assignments_f paf
149: hr_utility.trace('No User Defined City changes entries for Upgrade');
150: hr_utility.trace('No Processing required');
151:
152: fnd_file.put_line(fnd_file.log,'No User Defined City changes entries for Upgrade');
153: fnd_file.put_line(fnd_file.log,'No Processing required');
154:
155: sqlstr := ' SELECT distinct paf.person_id
156: FROM per_all_assignments_f paf
157: WHERE 1=2
167: EXCEPTION
168:
169: WHEN OTHERS THEN
170:
171: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.range_cursor');
172: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
173: hr_utility.raise_error;
174:
175: END range_cursor;
168:
169: WHEN OTHERS THEN
170:
171: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.range_cursor');
172: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
173: hr_utility.raise_error;
174:
175: END range_cursor;
176:
247:
248: WHEN OTHERS THEN
249:
250: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.action_creation');
251: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.action_creation');
252: fnd_file.put_line(fnd_file.log,sqlerrm);
253: hr_utility.raise_error;
254:
255: END action_creation;
248: WHEN OTHERS THEN
249:
250: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.action_creation');
251: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.action_creation');
252: fnd_file.put_line(fnd_file.log,sqlerrm);
253: hr_utility.raise_error;
254:
255: END action_creation;
256:
317: EXCEPTION
318:
319: WHEN OTHERS THEN
320:
321: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.archive_code');
322: fnd_file.put_line(fnd_file.log,'Assignment Action ID : '||p_xfr_action_id);
323: fnd_file.put_line(fnd_file.log,'Assignment ID : '||l_assignment_id);
324: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
325: hr_utility.raise_error;
318:
319: WHEN OTHERS THEN
320:
321: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.archive_code');
322: fnd_file.put_line(fnd_file.log,'Assignment Action ID : '||p_xfr_action_id);
323: fnd_file.put_line(fnd_file.log,'Assignment ID : '||l_assignment_id);
324: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
325: hr_utility.raise_error;
326:
319: WHEN OTHERS THEN
320:
321: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.archive_code');
322: fnd_file.put_line(fnd_file.log,'Assignment Action ID : '||p_xfr_action_id);
323: fnd_file.put_line(fnd_file.log,'Assignment ID : '||l_assignment_id);
324: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
325: hr_utility.raise_error;
326:
327: END archive_code;
320:
321: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.archive_code');
322: fnd_file.put_line(fnd_file.log,'Assignment Action ID : '||p_xfr_action_id);
323: fnd_file.put_line(fnd_file.log,'Assignment ID : '||l_assignment_id);
324: fnd_file.put_line(fnd_file.log,'Error '||sqlerrm);
325: hr_utility.raise_error;
326:
327: END archive_code;
328:
607: AND id = l_id
608: AND status = 'P'
609: AND description = l_mode;
610:
611: fnd_file.put_line(fnd_file.log,'User Defined City Upgrade Process completed in error.');
612: hr_utility.raise_error;
613:
614: END IF; /*l_total_assignments = l_success_assignments IF*/
615:
627:
628: WHEN OTHERS THEN
629:
630: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.deinitialization');
631: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.deinitialization');
632: fnd_file.put_line(fnd_file.log,sqlerrm);
633: hr_utility.raise_error;
634:
635: END deinitialization;
628: WHEN OTHERS THEN
629:
630: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.deinitialization');
631: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.deinitialization');
632: fnd_file.put_line(fnd_file.log,sqlerrm);
633: hr_utility.raise_error;
634:
635: END deinitialization;
636:
778: BEGIN
779:
780: hr_utility.trace('Entering pay_us_user_city_upgrade_pkg.generate_output');
781:
782: fnd_file.put_line(fnd_file.output,'
783: fnd_file.put_line(fnd_file.output,'
779:
780: hr_utility.trace('Entering pay_us_user_city_upgrade_pkg.generate_output');
781:
782: fnd_file.put_line(fnd_file.output,'
Process Date : '||to_char(l_applied_date,'DD-MON-YYYY HH:MM:SS')||'
');
799: AND pps1.legislation_code = 'US');
800:
801: /* Start of Employee Update related details printing*/
802:
803: fnd_file.put_line(fnd_file.output,'
Process Date : '||to_char(l_applied_date,'DD-MON-YYYY HH:MM:SS')||'
');Process Mode : '||p_mode||'
');| State Name | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');State Abbrev | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');State Abbrev | ');County Name | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');State Abbrev | ');County Name | ');City Name | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| State Name | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');State Abbrev | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');New Jurisdiction Code | ');County Name | ');
|---|
| State Name | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');New Jurisdiction Code | ');City Name | ');
|---|
| State Name | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');New Jurisdiction Code | ');Old User Defined Code | ');|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| State Name | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');New Jurisdiction Code | ');New Jurisdiction Code | ');State Abbrev | ');County Name | ');City Name | ');Old User Defined Code | ');New Jurisdiction Code | ');||||||||
| '||l_state_name||' | '||l_state_abbrev||
818: Line 836: fnd_file.put_line(fnd_file.output,' |
832: CLOSE get_user_city_update_details;
833:
834: /* Start of Successful Employees printing section */
835:
836: fnd_file.put_line(fnd_file.output,'
835:
836: fnd_file.put_line(fnd_file.output,'
837:
838: IF p_mode = 'DEBUG' THEN
839: fnd_file.put_line(fnd_file.output,'
| Employee Details | Jurisdiction Details | Tables Updated | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Employee Details | Jurisdiction Details | Tables Updated | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Employee Details | Jurisdiction Details | Tables Updated | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Employee Details | Jurisdiction Details | Tables Updated | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');New Jurisdiction Code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Full Name | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Employee Details | Jurisdiction Details | Tables Updated | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');New Jurisdiction Code | Assignment ID | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Employee Details | Jurisdiction Details | Tables Updated | ');||||
|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');New Jurisdiction Code | Old Jurisdiction Code | ');||
| Employee Details | Jurisdiction Details | Tables Updated | ');||||
|---|---|---|---|---|---|---|
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');New Jurisdiction Code | New Jurisdiction Code | ');||
| Employee Details | Jurisdiction Details | Tables Updated | ');||||
| Full Name | ');Assignment ID | ');Old Jurisdiction Code | ');New Jurisdiction Code | |||
| '||l_full_name||
864: OPEN get_updated_tables(l_id,p_mode,l_person_id,
872: | '||l_table_name||' | |||||
887: END LOOP; /* get_succesful_employees LOOP */
888:
889: CLOSE get_succesful_employees;
890:
891: fnd_file.put_line(fnd_file.output,'
893: /* End of Successful Employees printing section */
894:
895: /* Start of Errored Employees printing section */
896:
897: fnd_file.put_line(fnd_file.output,'Employees for which processing ended in error
');
898:
899: OPEN get_emp_in_error(l_id,p_mode);
900: FETCH get_emp_in_error INTO l_full_name,l_assignment_id;
901:
| Employee Details | ');|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full Name | Assignment ID | ||||||||||||||
| Employee Details | ');|||||||||||||||
| Employee Details | ');|||||||
|---|---|---|---|---|---|---|---|
| Full Name | Assignment ID | ||||||
| Full Name | Assignment ID | ||||||
| Employee Details | ');|||||||
|---|---|---|---|---|---|---|---|
| Full Name | Assignment ID | ||||||
| '||l_full_name||' | '||l_assignment_id||' | ||||||
| '||l_full_name||' | '||l_assignment_id||' | ||||||
912: FETCH get_emp_in_error INTO l_full_name,l_assignment_id;
913:
914: END LOOP;
915:
916: fnd_file.put_line(fnd_file.output,'
No Assignments in Error
');No Assignments in Error
');916: fnd_file.put_line(fnd_file.output,'
No Assignments in Error
');
924: CLOSE get_emp_in_error;
925:
926: /*Start printing Summary Section*/
927:
928: fnd_file.put_line(fnd_file.output,'Summary
');
929:
930: /* Print the Number of Employees processed*/
931:
932: OPEN get_emp_counts(l_id,p_mode,'C',l_process_type);
Number of Assignments Upgraded successfully : '||l_success_assignments||'
');
936: OPEN get_emp_counts(l_id,p_mode,'E',l_process_type);
937: FETCH get_emp_counts INTO l_error_assignments;
938: CLOSE get_emp_counts;
939:
940: fnd_file.put_line(fnd_file.output,'
Number of Assignments Upgraded successfully : '||l_success_assignments||'
');Number of Assignments ended in Error : '||l_error_assignments||'
');Number of Assignments ended in Error : '||l_error_assignments||'
');
937: FETCH get_emp_counts INTO l_error_assignments;
938: CLOSE get_emp_counts;
939:
940: fnd_file.put_line(fnd_file.output,'
Number of Assignments Upgraded successfully : '||l_success_assignments||'
');Number of Assignments ended in Error : '||l_error_assignments||'
');Upgrade Process completed successfully
');
943: /* End of Printing the Number of Employees processed*/
944:
945: IF (l_error_assignments = 0) THEN
946:
947: fnd_file.put_line(fnd_file.output,'
Upgrade Process completed successfully
');Upgrade Process incomplete.Verify assignments in error and rerun the Upgrade process
');Upgrade Process incomplete.Verify assignments in error and rerun the Upgrade process
');947: fnd_file.put_line(fnd_file.output,'
Upgrade Process completed successfully
');Upgrade Process incomplete.Verify assignments in error and rerun the Upgrade process
');No User Defined City Changes found that need upgrade
');
955: /* End of Summary section */
956:
957: ELSE
958:
959: fnd_file.put_line(fnd_file.output,'
No User Defined City Changes found that need upgrade
');No Processing required
');No Processing required
');
956:
957: ELSE
958:
959: fnd_file.put_line(fnd_file.output,'
No User Defined City Changes found that need upgrade
');No Processing required
');
967:
968: WHEN OTHERS THEN
969:
970: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.generate_output');
971: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.generate_output');
972: fnd_file.put_line(fnd_file.log,sqlerrm);
973: hr_utility.raise_error;
974:
975: END generate_output;
968: WHEN OTHERS THEN
969:
970: hr_utility.trace('Exception raised in pay_us_user_city_upgrade_pkg.generate_output');
971: fnd_file.put_line(fnd_file.log,'Exception raised in pay_us_user_city_upgrade_pkg.generate_output');
972: fnd_file.put_line(fnd_file.log,sqlerrm);
973: hr_utility.raise_error;
974:
975: END generate_output;
976: