DBA Data[Home] [Help]

APPS.GHR_CORR_CANC_SF52 dependencies on HR_UTILITY

Line 282: hr_utility.set_location( 'entering : ' || l_proc, 10);

278: --
279:
280: Begin
281:
282: hr_utility.set_location( 'entering : ' || l_proc, 10);
283: l_sf52_data_rec := p_sf52_data;
284: --
285: --
286: -- reinitialise session variables

Line 522: hr_utility.set_location('no pre-values'|| l_proc,15);

518: p_date_effective => p_sf52_data.effective_date,
519: p_result_code => l_return_status);
520: if (l_return_status is not null) then
521: -- there were no prevalues for this record
522: hr_utility.set_location('no pre-values'|| l_proc,15);
523: -- only delete application table if there are no following records.
524: open c_follow_rec( c_table_name => l_hist_rec.table_name,
525: c_pk_id => l_hist_rec.information1,
526: c_pa_history_id => l_hist_rec.pa_history_id);

Line 529: hr_utility.set_location('no following records. Deleting appl table. '|| l_proc,915);

525: c_pk_id => l_hist_rec.information1,
526: c_pa_history_id => l_hist_rec.pa_history_id);
527: fetch c_follow_rec into l_buf;
528: if c_follow_rec%NOTFOUND then
529: hr_utility.set_location('no following records. Deleting appl table. '|| l_proc,915);
530: delete_appl_row(
531: p_table_name => ghr_history_api.g_peopei_table,
532: p_table_pk_id => l_hist_rec.information1,
533: p_dt_mode => null,

Line 581: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);

577: p_cannot_cancel => l_cannot_cancel_sevpay);
578:
579: if l_cannot_cancel_sevpay then
580: -- raise error
581: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
582: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
583: hr_utility.raise_error;
584: else
585: hr_utility.set_location('Delete rows.'|| l_proc,40);

Line 582: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');

578:
579: if l_cannot_cancel_sevpay then
580: -- raise error
581: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
582: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
583: hr_utility.raise_error;
584: else
585: hr_utility.set_location('Delete rows.'|| l_proc,40);
586: delete_hist_row ( l_hist_sevpay.pa_history_id);

Line 583: hr_utility.raise_error;

579: if l_cannot_cancel_sevpay then
580: -- raise error
581: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
582: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
583: hr_utility.raise_error;
584: else
585: hr_utility.set_location('Delete rows.'|| l_proc,40);
586: delete_hist_row ( l_hist_sevpay.pa_history_id);
587: delete_eleentval( l_hist_sevpay);

Line 585: hr_utility.set_location('Delete rows.'|| l_proc,40);

581: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
582: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
583: hr_utility.raise_error;
584: else
585: hr_utility.set_location('Delete rows.'|| l_proc,40);
586: delete_hist_row ( l_hist_sevpay.pa_history_id);
587: delete_eleentval( l_hist_sevpay);
588: end if;
589: close c_hist_sevpay;

Line 597: hr_utility.set_location( l_proc, 20);

593:
594: -- delete all history records for the termination that is being cancelled.
595: -- if an address table record is encountered, then set application
596: -- table to what it currently should be according to history.
597: hr_utility.set_location( l_proc, 20);
598: for l_hist in c_hist( p_sf52_data.altered_pa_request_id,
599: l_session_var.noa_id_correct)
600: loop
601: hr_utility.set_location(' LOOP history_id(' || l_hist.pa_history_id || ')', 25);

Line 601: hr_utility.set_location(' LOOP history_id(' || l_hist.pa_history_id || ')', 25);

597: hr_utility.set_location( l_proc, 20);
598: for l_hist in c_hist( p_sf52_data.altered_pa_request_id,
599: l_session_var.noa_id_correct)
600: loop
601: hr_utility.set_location(' LOOP history_id(' || l_hist.pa_history_id || ')', 25);
602: exit when c_hist%notfound;
603: -- Bug#3780671 Added the Assignment Extra Info condition as
604: -- the EIT "GHR_US_ASG_NTE_DATES" requires the process similar to
605: -- Address table.

Line 615: hr_utility.set_location('Non 352 and Address '||l_hist.table_name,26);

611: INTO l_hist_rec
612: FROM ghr_pa_history
613: WHERE pa_history_id = l_hist.pa_history_id;
614:
615: hr_utility.set_location('Non 352 and Address '||l_hist.table_name,26);
616: -- Bug#3780671 Passed the parameter l_hist.table_name instead of Address table
617: -- to handle PER_ASSIGNMENT_EXTRA_INFO table.
618: ghr_history_api.fetch_history_info(
619: p_table_name => l_hist.table_name,

Line 628: hr_utility.set_location('no pre-values'|| l_proc,15);

624: p_date_effective => p_sf52_data.effective_date,
625: p_result_code => l_return_status);
626: if (l_return_status is not null) then
627: -- there were no prevalues for this record
628: hr_utility.set_location('no pre-values'|| l_proc,15);
629: -- only delete application table if there are no following records.
630: open c_follow_rec( c_table_name => l_hist_rec.table_name,
631: c_pk_id => l_hist_rec.information1,
632: c_pa_history_id => l_hist_rec.pa_history_id);

Line 668: hr_utility.set_location('Non 352 and delete_hist_row '||l_proc,27);

664: p_hist_data_as_of_date => l_hist_data_as_of_date);
665: end if;
666:
667: -- else
668: hr_utility.set_location('Non 352 and delete_hist_row '||l_proc,27);
669: -- delete_hist_row( l_hist.row_id);
670: end if;
671: end loop;
672:

Line 676: hr_utility.set_location( l_proc, 20);

672:
673: -- delete all history records for the termination that is being cancelled.
674: -- if an address table record is encountered, then set application
675: -- table to what it currently should be according to history.
676: hr_utility.set_location( l_proc, 20);
677: for l_hist in c_hist( p_sf52_data.altered_pa_request_id,
678: l_session_var.noa_id_correct)
679: loop
680: exit when c_hist%notfound;

Line 760: hr_utility.set_location( l_proc, 30);

756: --End Bug# 10181661
757: );
758:
759: -- call post_sf52_cancel to handle notifications, marking pa_requests cancelled, etc.
760: hr_utility.set_location( l_proc, 30);
761: ghr_sf52_post_update.post_sf52_cancel(
762: p_pa_request_id => p_sf52_data.pa_request_id,
763: p_effective_date => l_session_var.date_effective,
764: p_object_version_number => p_sf52_data.object_version_number,

Line 769: hr_utility.set_location( 'leaving : ' || l_proc, 40);

765: p_from_position_id => p_sf52_data.from_position_id,
766: p_to_position_id => p_sf52_data.to_position_id,
767: p_agency_code => p_sf52_data.agency_code);
768:
769: hr_utility.set_location( 'leaving : ' || l_proc, 40);
770: exception when others then
771: --
772: -- Reset IN OUT parameters and set OUT parameters
773: --

Line 993: hr_utility.set_location(' Entering : ' || l_proc, 10);

989: l_proc varchar2(30):='cancel_appt_sf52';
990:
991: Begin
992:
993: hr_utility.set_location(' Entering : ' || l_proc, 10);
994: l_sf52_data_rec := p_sf52_data;
995:
996:
997: -- reinitialise session variables

Line 1178: hr_utility.set_location( l_proc, 40);

1174: );
1175:
1176: -- Segment which calls do_cancel_hire moved after history handling. Bug# 1295751.
1177:
1178: hr_utility.set_location( l_proc, 40);
1179: for l_hist in c_hist( p_sf52_data.person_id,
1180: p_sf52_data.effective_date)
1181: loop
1182: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);

Line 1182: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);

1178: hr_utility.set_location( l_proc, 40);
1179: for l_hist in c_hist( p_sf52_data.person_id,
1180: p_sf52_data.effective_date)
1181: loop
1182: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);
1183: exit when c_hist%notfound;
1184: delete_hist_row( l_hist.row_id);
1185: hr_utility.set_location( 'checking if table needs deleting: ' || l_hist.table_name|| l_proc, 58);
1186: -- Delete all extraInfo table records which were created by the SF52.

Line 1185: hr_utility.set_location( 'checking if table needs deleting: ' || l_hist.table_name|| l_proc, 58);

1181: loop
1182: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);
1183: exit when c_hist%notfound;
1184: delete_hist_row( l_hist.row_id);
1185: hr_utility.set_location( 'checking if table needs deleting: ' || l_hist.table_name|| l_proc, 58);
1186: -- Delete all extraInfo table records which were created by the SF52.
1187: if upper(l_hist.table_name) in (upper(ghr_history_api.g_peopei_table),
1188: upper(ghr_history_api.g_posnei_table),
1189: upper(ghr_history_api.g_asgnei_table),

Line 1192: hr_utility.set_location( 'table_name qualifies: ' || l_hist.table_name|| l_proc, 57);

1188: upper(ghr_history_api.g_posnei_table),
1189: upper(ghr_history_api.g_asgnei_table),
1190: upper(ghr_history_api.g_addres_table),
1191: upper(ghr_history_api.g_perana_table)) then
1192: hr_utility.set_location( 'table_name qualifies: ' || l_hist.table_name|| l_proc, 57);
1193: if l_hist.DML_operation = ghr_history_api.g_ins_operation then
1194: hr_utility.set_location( 'delete appl row table_name: ' || l_hist.table_name|| l_proc, 51);
1195: hr_utility.set_location( 'delete appl row information1: ' || l_hist.information1|| l_proc, 52);
1196: hr_utility.set_location( 'delete appl row effective_date: ' || l_hist.effective_date|| l_proc, 53);

Line 1194: hr_utility.set_location( 'delete appl row table_name: ' || l_hist.table_name|| l_proc, 51);

1190: upper(ghr_history_api.g_addres_table),
1191: upper(ghr_history_api.g_perana_table)) then
1192: hr_utility.set_location( 'table_name qualifies: ' || l_hist.table_name|| l_proc, 57);
1193: if l_hist.DML_operation = ghr_history_api.g_ins_operation then
1194: hr_utility.set_location( 'delete appl row table_name: ' || l_hist.table_name|| l_proc, 51);
1195: hr_utility.set_location( 'delete appl row information1: ' || l_hist.information1|| l_proc, 52);
1196: hr_utility.set_location( 'delete appl row effective_date: ' || l_hist.effective_date|| l_proc, 53);
1197: delete_appl_row(
1198: p_table_name => l_hist.table_name,

Line 1195: hr_utility.set_location( 'delete appl row information1: ' || l_hist.information1|| l_proc, 52);

1191: upper(ghr_history_api.g_perana_table)) then
1192: hr_utility.set_location( 'table_name qualifies: ' || l_hist.table_name|| l_proc, 57);
1193: if l_hist.DML_operation = ghr_history_api.g_ins_operation then
1194: hr_utility.set_location( 'delete appl row table_name: ' || l_hist.table_name|| l_proc, 51);
1195: hr_utility.set_location( 'delete appl row information1: ' || l_hist.information1|| l_proc, 52);
1196: hr_utility.set_location( 'delete appl row effective_date: ' || l_hist.effective_date|| l_proc, 53);
1197: delete_appl_row(
1198: p_table_name => l_hist.table_name,
1199: p_table_pk_id => l_hist.information1,

Line 1196: hr_utility.set_location( 'delete appl row effective_date: ' || l_hist.effective_date|| l_proc, 53);

1192: hr_utility.set_location( 'table_name qualifies: ' || l_hist.table_name|| l_proc, 57);
1193: if l_hist.DML_operation = ghr_history_api.g_ins_operation then
1194: hr_utility.set_location( 'delete appl row table_name: ' || l_hist.table_name|| l_proc, 51);
1195: hr_utility.set_location( 'delete appl row information1: ' || l_hist.information1|| l_proc, 52);
1196: hr_utility.set_location( 'delete appl row effective_date: ' || l_hist.effective_date|| l_proc, 53);
1197: delete_appl_row(
1198: p_table_name => l_hist.table_name,
1199: p_table_pk_id => l_hist.information1,
1200: p_dt_mode => null,

Line 1215: hr_utility.set_location(l_proc || 'l_hist.information1: ' || l_hist.information1, 1200);

1211:
1212: elsif l_hist.DML_operation = ghr_history_api.g_upd_operation then
1213: l_hist_post.information1 := l_hist.information1;
1214: l_hist_post.person_id := l_hist.person_id;
1215: hr_utility.set_location(l_proc || 'l_hist.information1: ' || l_hist.information1, 1200);
1216: hr_utility.set_location(l_proc || 'l_hist.table_name: ' || l_hist.table_name, 1210);
1217: hr_utility.set_location(l_proc || 'l_hist.person_id: ' || l_hist.person_id, 1220);
1218:
1219: --Bug # 12652865 as no need to cascade if already person analyses record is not

Line 1216: hr_utility.set_location(l_proc || 'l_hist.table_name: ' || l_hist.table_name, 1210);

1212: elsif l_hist.DML_operation = ghr_history_api.g_upd_operation then
1213: l_hist_post.information1 := l_hist.information1;
1214: l_hist_post.person_id := l_hist.person_id;
1215: hr_utility.set_location(l_proc || 'l_hist.information1: ' || l_hist.information1, 1200);
1216: hr_utility.set_location(l_proc || 'l_hist.table_name: ' || l_hist.table_name, 1210);
1217: hr_utility.set_location(l_proc || 'l_hist.person_id: ' || l_hist.person_id, 1220);
1218:
1219: --Bug # 12652865 as no need to cascade if already person analyses record is not
1220: --- available in the base table PER_PERSON_ANALYSES

Line 1217: hr_utility.set_location(l_proc || 'l_hist.person_id: ' || l_hist.person_id, 1220);

1213: l_hist_post.information1 := l_hist.information1;
1214: l_hist_post.person_id := l_hist.person_id;
1215: hr_utility.set_location(l_proc || 'l_hist.information1: ' || l_hist.information1, 1200);
1216: hr_utility.set_location(l_proc || 'l_hist.table_name: ' || l_hist.table_name, 1210);
1217: hr_utility.set_location(l_proc || 'l_hist.person_id: ' || l_hist.person_id, 1220);
1218:
1219: --Bug # 12652865 as no need to cascade if already person analyses record is not
1220: --- available in the base table PER_PERSON_ANALYSES
1221:

Line 1252: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);

1248: --8259229 added a seperate loop for address
1249: for l_add_hist in c_add_hist( p_sf52_data.person_id,
1250: p_sf52_data.effective_date)
1251: loop
1252: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);
1253: hr_utility.set_location( 'GOT HERE' || l_add_hist.pa_history_id, 59);
1254: exit when c_add_hist%notfound;
1255: delete_hist_row( l_add_hist.row_id);
1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);

Line 1253: hr_utility.set_location( 'GOT HERE' || l_add_hist.pa_history_id, 59);

1249: for l_add_hist in c_add_hist( p_sf52_data.person_id,
1250: p_sf52_data.effective_date)
1251: loop
1252: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);
1253: hr_utility.set_location( 'GOT HERE' || l_add_hist.pa_history_id, 59);
1254: exit when c_add_hist%notfound;
1255: delete_hist_row( l_add_hist.row_id);
1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);
1257: -- Delete all extraInfo table records which were created by the SF52.

Line 1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);

1252: hr_utility.set_location( 'GOT HERE!!!!: ' || l_proc, 59);
1253: hr_utility.set_location( 'GOT HERE' || l_add_hist.pa_history_id, 59);
1254: exit when c_add_hist%notfound;
1255: delete_hist_row( l_add_hist.row_id);
1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);
1257: -- Delete all extraInfo table records which were created by the SF52.
1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);
1259: if l_add_hist.DML_operation = ghr_history_api.g_ins_operation then
1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);

Line 1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);

1254: exit when c_add_hist%notfound;
1255: delete_hist_row( l_add_hist.row_id);
1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);
1257: -- Delete all extraInfo table records which were created by the SF52.
1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);
1259: if l_add_hist.DML_operation = ghr_history_api.g_ins_operation then
1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);
1261: hr_utility.set_location( 'delete appl row information1: ' || l_add_hist.information1|| l_proc, 52);
1262: hr_utility.set_location( 'delete appl row effective_date: ' || l_add_hist.effective_date|| l_proc, 53);

Line 1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);

1256: hr_utility.set_location( 'checking if table needs deleting: ' || l_add_hist.table_name|| l_proc, 58);
1257: -- Delete all extraInfo table records which were created by the SF52.
1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);
1259: if l_add_hist.DML_operation = ghr_history_api.g_ins_operation then
1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);
1261: hr_utility.set_location( 'delete appl row information1: ' || l_add_hist.information1|| l_proc, 52);
1262: hr_utility.set_location( 'delete appl row effective_date: ' || l_add_hist.effective_date|| l_proc, 53);
1263: delete_appl_row(
1264: p_table_name => l_add_hist.table_name,

Line 1261: hr_utility.set_location( 'delete appl row information1: ' || l_add_hist.information1|| l_proc, 52);

1257: -- Delete all extraInfo table records which were created by the SF52.
1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);
1259: if l_add_hist.DML_operation = ghr_history_api.g_ins_operation then
1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);
1261: hr_utility.set_location( 'delete appl row information1: ' || l_add_hist.information1|| l_proc, 52);
1262: hr_utility.set_location( 'delete appl row effective_date: ' || l_add_hist.effective_date|| l_proc, 53);
1263: delete_appl_row(
1264: p_table_name => l_add_hist.table_name,
1265: p_table_pk_id => l_add_hist.information1,

Line 1262: hr_utility.set_location( 'delete appl row effective_date: ' || l_add_hist.effective_date|| l_proc, 53);

1258: hr_utility.set_location( 'table_name qualifies: ' || l_add_hist.table_name|| l_proc, 57);
1259: if l_add_hist.DML_operation = ghr_history_api.g_ins_operation then
1260: hr_utility.set_location( 'delete appl row table_name: ' || l_add_hist.table_name|| l_proc, 51);
1261: hr_utility.set_location( 'delete appl row information1: ' || l_add_hist.information1|| l_proc, 52);
1262: hr_utility.set_location( 'delete appl row effective_date: ' || l_add_hist.effective_date|| l_proc, 53);
1263: delete_appl_row(
1264: p_table_name => l_add_hist.table_name,
1265: p_table_pk_id => l_add_hist.information1,
1266: p_dt_mode => null,

Line 1271: hr_utility.set_location(l_proc || 'l_add_hist.information1: ' || l_add_hist.information1, 1200);

1267: p_date_effective => l_add_hist.effective_date);
1268: elsif l_add_hist.DML_operation = ghr_history_api.g_upd_operation then
1269: l_hist_post.information1 := l_add_hist.information1;
1270: l_hist_post.person_id := l_add_hist.person_id;
1271: hr_utility.set_location(l_proc || 'l_add_hist.information1: ' || l_add_hist.information1, 1200);
1272: hr_utility.set_location(l_proc || 'l_add_hist.table_name: ' || l_add_hist.table_name, 1210);
1273: hr_utility.set_location(l_proc || 'l_add_hist.person_id: ' || l_add_hist.person_id, 1220);
1274: ghr_history_cascade.cascade_appl_table_data(
1275: p_table_name => l_add_hist.table_name,

Line 1272: hr_utility.set_location(l_proc || 'l_add_hist.table_name: ' || l_add_hist.table_name, 1210);

1268: elsif l_add_hist.DML_operation = ghr_history_api.g_upd_operation then
1269: l_hist_post.information1 := l_add_hist.information1;
1270: l_hist_post.person_id := l_add_hist.person_id;
1271: hr_utility.set_location(l_proc || 'l_add_hist.information1: ' || l_add_hist.information1, 1200);
1272: hr_utility.set_location(l_proc || 'l_add_hist.table_name: ' || l_add_hist.table_name, 1210);
1273: hr_utility.set_location(l_proc || 'l_add_hist.person_id: ' || l_add_hist.person_id, 1220);
1274: ghr_history_cascade.cascade_appl_table_data(
1275: p_table_name => l_add_hist.table_name,
1276: p_person_id => l_add_hist.person_id,

Line 1273: hr_utility.set_location(l_proc || 'l_add_hist.person_id: ' || l_add_hist.person_id, 1220);

1269: l_hist_post.information1 := l_add_hist.information1;
1270: l_hist_post.person_id := l_add_hist.person_id;
1271: hr_utility.set_location(l_proc || 'l_add_hist.information1: ' || l_add_hist.information1, 1200);
1272: hr_utility.set_location(l_proc || 'l_add_hist.table_name: ' || l_add_hist.table_name, 1210);
1273: hr_utility.set_location(l_proc || 'l_add_hist.person_id: ' || l_add_hist.person_id, 1220);
1274: ghr_history_cascade.cascade_appl_table_data(
1275: p_table_name => l_add_hist.table_name,
1276: p_person_id => l_add_hist.person_id,
1277: p_pre_record => null,

Line 1289: hr_utility.set_location( l_proc, 20);

1285: --8259229
1286:
1287: -- Moved this segment to be executed after history deletion handling.
1288: -- Bug# 1295751.
1289: hr_utility.set_location( l_proc, 20);
1290: open c_bg (p_sf52_data.person_id, p_sf52_data.effective_date);
1291: fetch c_bg into l_business_group_id;
1292: if c_bg%notfound then
1293: close c_bg;

Line 1294: hr_utility.set_message(8301,'GHR_38210_BUSINESS_GROUP_NFND');

1290: open c_bg (p_sf52_data.person_id, p_sf52_data.effective_date);
1291: fetch c_bg into l_business_group_id;
1292: if c_bg%notfound then
1293: close c_bg;
1294: hr_utility.set_message(8301,'GHR_38210_BUSINESS_GROUP_NFND');
1295: hr_utility.raise_error;
1296: --raise error
1297: end if;
1298: hr_utility.set_location( l_proc, 30);

Line 1295: hr_utility.raise_error;

1291: fetch c_bg into l_business_group_id;
1292: if c_bg%notfound then
1293: close c_bg;
1294: hr_utility.set_message(8301,'GHR_38210_BUSINESS_GROUP_NFND');
1295: hr_utility.raise_error;
1296: --raise error
1297: end if;
1298: hr_utility.set_location( l_proc, 30);
1299: -- Check if need to call cancel_hire_or_apl.lock_per_row ???

Line 1298: hr_utility.set_location( l_proc, 30);

1294: hr_utility.set_message(8301,'GHR_38210_BUSINESS_GROUP_NFND');
1295: hr_utility.raise_error;
1296: --raise error
1297: end if;
1298: hr_utility.set_location( l_proc, 30);
1299: -- Check if need to call cancel_hire_or_apl.lock_per_row ???
1300: -- call core HR api to cancel the hire.
1301: --*****************************************************************************
1302: -- Added as per Rohini's suggestion to fix bug#3106101

Line 1443: hr_utility.set_location( l_proc, 50);

1439: p_ipa_detail_ben_cont_info => l_imm_ipa_benefits_cont
1440: --End Bug# 10181661
1441: );
1442:
1443: hr_utility.set_location( l_proc, 50);
1444: ghr_sf52_post_update.post_sf52_cancel(
1445: p_pa_request_id => p_sf52_data.pa_request_id,
1446: p_effective_date => l_session_var.date_effective,
1447: p_object_version_number => p_sf52_data.object_version_number,

Line 1455: hr_utility.set_location( l_proc, 110);

1451:
1452: --
1453: -- Mark all the SF52s cancelled which were created after Appt. SF52
1454: --
1455: hr_utility.set_location( l_proc, 110);
1456: for l_par in c_par( p_sf52_data.person_id,
1457: p_sf52_data.effective_date)
1458: loop
1459: hr_utility.set_location( l_proc, 111);

Line 1459: hr_utility.set_location( l_proc, 111);

1455: hr_utility.set_location( l_proc, 110);
1456: for l_par in c_par( p_sf52_data.person_id,
1457: p_sf52_data.effective_date)
1458: loop
1459: hr_utility.set_location( l_proc, 111);
1460: exit when c_par%notfound;
1461:
1462: -- Special handling is required for the termination action 352.
1463: -- Added by VVL

Line 1536: hr_utility.set_location( l_proc, 80);

1532: p_u_action_taken => 'NONE'
1533: );
1534: End loop;
1535:
1536: hr_utility.set_location( l_proc, 80);
1537:
1538: hr_utility.set_location(' Leaving ' || l_proc, 100);
1539: Exception when others then
1540: --

Line 1538: hr_utility.set_location(' Leaving ' || l_proc, 100);

1534: End loop;
1535:
1536: hr_utility.set_location( l_proc, 80);
1537:
1538: hr_utility.set_location(' Leaving ' || l_proc, 100);
1539: Exception when others then
1540: --
1541: -- Reset IN OUT parameters and set OUT parameters
1542: --

Line 1581: hr_utility.set_location('entering : ' || l_proc, 10);

1577: Procedure Cancel_Correction_SF52 ( p_sf52_data in out nocopy ghr_pa_requests%rowtype) is
1578: l_proc varchar2(30):='Cancel_Correction_SF52';
1579: l_sf52_data ghr_pa_requests%rowtype;
1580: Begin
1581: hr_utility.set_location('entering : ' || l_proc, 10);
1582: l_sf52_data := p_sf52_data;
1583: Cancel_Other_Family_Sf52 (p_sf52_data);
1584: hr_utility.set_location('leaving : ' || l_proc, 20);
1585: exception when others then

Line 1584: hr_utility.set_location('leaving : ' || l_proc, 20);

1580: Begin
1581: hr_utility.set_location('entering : ' || l_proc, 10);
1582: l_sf52_data := p_sf52_data;
1583: Cancel_Other_Family_Sf52 (p_sf52_data);
1584: hr_utility.set_location('leaving : ' || l_proc, 20);
1585: exception when others then
1586: --
1587: -- Reset IN OUT parameters and set OUT parameters
1588: --

Line 1866: -- hr_utility.trace_on(null,'venkat');

1862:
1863: p_avl NUMBER;
1864:
1865: BEGIN
1866: -- hr_utility.trace_on(null,'venkat');
1867: hr_utility.set_location('Entering '|| l_proc,5);
1868: l_sf52_data_rec := p_sf52_data;
1869: -- Initialization
1870: --

Line 1867: hr_utility.set_location('Entering '|| l_proc,5);

1863: p_avl NUMBER;
1864:
1865: BEGIN
1866: -- hr_utility.trace_on(null,'venkat');
1867: hr_utility.set_location('Entering '|| l_proc,5);
1868: l_sf52_data_rec := p_sf52_data;
1869: -- Initialization
1870: --
1871: l_sf52_data_rec := p_sf52_data;

Line 1885: hr_utility.set_location('CAncel of conversion',1);

1881: for noa_family_rec in c_noa_family(p_sf52_data.second_noa_id) loop
1882: l_noa_family_code := noa_family_rec.noa_family_code;
1883: end loop;
1884: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' then
1885: hr_utility.set_location('CAncel of conversion',1);
1886: -- check to see if the person was an EX_EMP prior to the effective
1887: -- date of this action.
1888: for prior_person_type in c_prior_person_type loop
1889: l_prior_asg_id := prior_person_type.assignment_id; --Bug# 5442674

Line 1896: hr_utility.set_location('Family Code' || l_noa_family_code,1000);

1892: for prior_noa_code in c_prior_noa_code loop
1893: l_prior_noa_code := prior_noa_code.first_noa_code;
1894: end loop;
1895: End if;
1896: hr_utility.set_location('Family Code' || l_noa_family_code,1000);
1897: hr_utility.set_location('Second NOA Code' || p_sf52_data.second_noa_code,1000);
1898: hr_utility.set_location('Prior Assignment Id' || l_prior_asg_id,1001);
1899: hr_utility.set_location('Assignment Id' || l_sf52_data_rec.employee_assignment_id,1002);
1900: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' and

Line 1897: hr_utility.set_location('Second NOA Code' || p_sf52_data.second_noa_code,1000);

1893: l_prior_noa_code := prior_noa_code.first_noa_code;
1894: end loop;
1895: End if;
1896: hr_utility.set_location('Family Code' || l_noa_family_code,1000);
1897: hr_utility.set_location('Second NOA Code' || p_sf52_data.second_noa_code,1000);
1898: hr_utility.set_location('Prior Assignment Id' || l_prior_asg_id,1001);
1899: hr_utility.set_location('Assignment Id' || l_sf52_data_rec.employee_assignment_id,1002);
1900: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' and
1901: nvl(l_prior_asg_id,hr_api.g_number) <> l_sf52_data_rec.employee_assignment_id and --Bug# 5442674

Line 1898: hr_utility.set_location('Prior Assignment Id' || l_prior_asg_id,1001);

1894: end loop;
1895: End if;
1896: hr_utility.set_location('Family Code' || l_noa_family_code,1000);
1897: hr_utility.set_location('Second NOA Code' || p_sf52_data.second_noa_code,1000);
1898: hr_utility.set_location('Prior Assignment Id' || l_prior_asg_id,1001);
1899: hr_utility.set_location('Assignment Id' || l_sf52_data_rec.employee_assignment_id,1002);
1900: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' and
1901: nvl(l_prior_asg_id,hr_api.g_number) <> l_sf52_data_rec.employee_assignment_id and --Bug# 5442674
1902: nvl(l_prior_noa_code,hr_api.g_varchar2) <> '002' then

Line 1899: hr_utility.set_location('Assignment Id' || l_sf52_data_rec.employee_assignment_id,1002);

1895: End if;
1896: hr_utility.set_location('Family Code' || l_noa_family_code,1000);
1897: hr_utility.set_location('Second NOA Code' || p_sf52_data.second_noa_code,1000);
1898: hr_utility.set_location('Prior Assignment Id' || l_prior_asg_id,1001);
1899: hr_utility.set_location('Assignment Id' || l_sf52_data_rec.employee_assignment_id,1002);
1900: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' and
1901: nvl(l_prior_asg_id,hr_api.g_number) <> l_sf52_data_rec.employee_assignment_id and --Bug# 5442674
1902: nvl(l_prior_noa_code,hr_api.g_varchar2) <> '002' then
1903:

Line 1904: hr_utility.set_location('Cancel of Ex_EMP conversion',1);

1900: If nvl(l_noa_family_code,hr_api.g_varchar2) = 'CONV_APP' and
1901: nvl(l_prior_asg_id,hr_api.g_number) <> l_sf52_data_rec.employee_assignment_id and --Bug# 5442674
1902: nvl(l_prior_noa_code,hr_api.g_varchar2) <> '002' then
1903:
1904: hr_utility.set_location('Cancel of Ex_EMP conversion',1);
1905: ghr_corr_canc_sf52.cancel_appt_sf52(p_sf52_data);
1906: Else
1907: -- reinitialise session variables
1908: ghr_history_api.reinit_g_session_var;

Line 2143: hr_utility.set_location('Entering LOOP'|| l_proc,10);

2139: -- Bug#2347658 (End of fix)
2140:
2141: -- loop thru all history records for the NOA that is being cancelled.
2142: FOR l_hist_rec in c_history_info(p_sf52_data.altered_pa_request_id, p_sf52_data.second_noa_id) LOOP
2143: hr_utility.set_location('Entering LOOP'|| l_proc,10);
2144: l_pre_record := TRUE;
2145: l_datetrack_table := TRUE;
2146: -- initialize pre-record to all nulls
2147: l_hist_pre := l_hist_dummy;

Line 2157: hr_utility.set_location('after fetch history info',12345);

2153: p_table_pk_id => l_hist_rec.information1,
2154: p_person_id => l_hist_rec.person_id,
2155: p_date_effective => l_hist_rec.effective_date,
2156: p_result_code => l_return_status);
2157: hr_utility.set_location('after fetch history info',12345);
2158: hr_utility.set_location('status is'||l_return_status,12345);
2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);
2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);
2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);

Line 2158: hr_utility.set_location('status is'||l_return_status,12345);

2154: p_person_id => l_hist_rec.person_id,
2155: p_date_effective => l_hist_rec.effective_date,
2156: p_result_code => l_return_status);
2157: hr_utility.set_location('after fetch history info',12345);
2158: hr_utility.set_location('status is'||l_return_status,12345);
2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);
2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);
2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);
2162:

Line 2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);

2155: p_date_effective => l_hist_rec.effective_date,
2156: p_result_code => l_return_status);
2157: hr_utility.set_location('after fetch history info',12345);
2158: hr_utility.set_location('status is'||l_return_status,12345);
2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);
2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);
2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);
2162:
2163: if (l_return_status is not null) then

Line 2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);

2156: p_result_code => l_return_status);
2157: hr_utility.set_location('after fetch history info',12345);
2158: hr_utility.set_location('status is'||l_return_status,12345);
2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);
2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);
2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);
2162:
2163: if (l_return_status is not null) then
2164: -- there were no prevalues for this record

Line 2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);

2157: hr_utility.set_location('after fetch history info',12345);
2158: hr_utility.set_location('status is'||l_return_status,12345);
2159: hr_utility.set_location('hist id'||l_hist_rec.pa_history_id,12345);
2160: hr_utility.set_location('person id'||l_hist_rec.person_id,12345);
2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);
2162:
2163: if (l_return_status is not null) then
2164: -- there were no prevalues for this record
2165: hr_utility.set_location('no pre-values'|| l_proc,15);

Line 2165: hr_utility.set_location('no pre-values'|| l_proc,15);

2161: hr_utility.set_location('eff_date is '||l_hist_rec.effective_date,12345);
2162:
2163: if (l_return_status is not null) then
2164: -- there were no prevalues for this record
2165: hr_utility.set_location('no pre-values'|| l_proc,15);
2166: l_pre_record := FALSE;
2167: else
2168: -- Debug statements
2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);

Line 2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);

2165: hr_utility.set_location('no pre-values'|| l_proc,15);
2166: l_pre_record := FALSE;
2167: else
2168: -- Debug statements
2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);
2170: hr_utility.set_location('Pre Value - effective_date ' || l_hist_pre.effective_date, 17);
2171: hr_utility.set_location('Information1 : ' || l_hist_pre.information1, 18);
2172: hr_utility.set_location('Information2 : ' || l_hist_pre.information2, 19);
2173:

Line 2170: hr_utility.set_location('Pre Value - effective_date ' || l_hist_pre.effective_date, 17);

2166: l_pre_record := FALSE;
2167: else
2168: -- Debug statements
2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);
2170: hr_utility.set_location('Pre Value - effective_date ' || l_hist_pre.effective_date, 17);
2171: hr_utility.set_location('Information1 : ' || l_hist_pre.information1, 18);
2172: hr_utility.set_location('Information2 : ' || l_hist_pre.information2, 19);
2173:
2174: end if;

Line 2171: hr_utility.set_location('Information1 : ' || l_hist_pre.information1, 18);

2167: else
2168: -- Debug statements
2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);
2170: hr_utility.set_location('Pre Value - effective_date ' || l_hist_pre.effective_date, 17);
2171: hr_utility.set_location('Information1 : ' || l_hist_pre.information1, 18);
2172: hr_utility.set_location('Information2 : ' || l_hist_pre.information2, 19);
2173:
2174: end if;
2175: -- all mappings are such that information2 always corresponds to effective_start_date. If this

Line 2172: hr_utility.set_location('Information2 : ' || l_hist_pre.information2, 19);

2168: -- Debug statements
2169: hr_utility.set_location('Pre Value - pa_history_id ' || l_hist_pre.pa_history_id, 16);
2170: hr_utility.set_location('Pre Value - effective_date ' || l_hist_pre.effective_date, 17);
2171: hr_utility.set_location('Information1 : ' || l_hist_pre.information1, 18);
2172: hr_utility.set_location('Information2 : ' || l_hist_pre.information2, 19);
2173:
2174: end if;
2175: -- all mappings are such that information2 always corresponds to effective_start_date. If this
2176: -- column is null, then the row concerns a non-datetrack table. If it is not null, then this row

Line 2179: hr_utility.set_location('datetrack table'|| l_proc,20);

2175: -- all mappings are such that information2 always corresponds to effective_start_date. If this
2176: -- column is null, then the row concerns a non-datetrack table. If it is not null, then this row
2177: -- concerns a datetrack table.
2178: if (l_hist_rec.information2 is null) then
2179: hr_utility.set_location('datetrack table'|| l_proc,20);
2180: l_datetrack_table := FALSE;
2181: end if;
2182: -- PAY_ELEMENT_ENTRY needs to be handled differently
2183: if lower(l_hist_rec.table_name) = lower(ghr_history_api.g_eleent_table) then

Line 2184: hr_utility.set_location('Processing element entry record'|| l_proc,25);

2180: l_datetrack_table := FALSE;
2181: end if;
2182: -- PAY_ELEMENT_ENTRY needs to be handled differently
2183: if lower(l_hist_rec.table_name) = lower(ghr_history_api.g_eleent_table) then
2184: hr_utility.set_location('Processing element entry record'|| l_proc,25);
2185: if l_hist_rec.DML_operation = ghr_history_api.g_ins_operation then
2186: --6850492
2187: if to_date(l_hist_pre.information2, ghr_history_api.g_hist_date_format) = to_date(l_hist_rec.information2, ghr_history_api.g_hist_date_format) then
2188: ghr_history_api.fetch_history_info(

Line 2198: hr_utility.set_location('no pre-values'|| l_proc,15);

2194: p_date_effective => l_hist_rec.effective_date-1,
2195: p_result_code => l_return_status);
2196: if (l_return_status is not null) then
2197: -- there were no prevalues for this record
2198: hr_utility.set_location('no pre-values'|| l_proc,15);
2199: l_pre_record := FALSE;
2200: else
2201: null;
2202: end if;

Line 2206: hr_utility.set_location('Record was created'|| l_proc,30);

2202: end if;
2203: end if;
2204: --6850492
2205:
2206: hr_utility.set_location('Record was created'|| l_proc,30);
2207: -- Call Delete_element_entry;
2208: -- delete all entry values from history;
2209: -- VSM Changes made for BUG # 611161
2210: -- To be able to delete this entry we have to pass previous record and

Line 2217: hr_utility.set_location(' Call IF_ZAP_ELE_ENT' || l_proc, 31);

2213: -- the entry.
2214: l_result := FALSE;
2215: l_del_mode := hr_api.g_delete_next_change;
2216: if l_return_status is not null then
2217: hr_utility.set_location(' Call IF_ZAP_ELE_ENT' || l_proc, 31);
2218: If l_session_var.noa_id_correct is not null and l_sf52_data.first_noa_code = '866' then
2219: IF_ZAP_ELE_ENT(
2220: p_element_entry_id => l_hist_rec.information1,
2221: p_effective_start_date => l_hist_rec.effective_date + 1,

Line 2227: hr_utility.set_location(' ZAP Mode set ' || l_proc, 32);

2223: p_result => l_result);
2224: if l_result then
2225: -- ie can zap the element;
2226:
2227: hr_utility.set_location(' ZAP Mode set ' || l_proc, 32);
2228: l_del_mode := hr_api.g_zap;
2229: -- As there is no pre record. copy current row in pre record
2230: l_hist_pre := l_hist_rec;
2231: end if;

Line 2241: hr_utility.set_location(' ZAP Mode set ' || l_proc, 32);

2237: p_result => l_result);
2238: if l_result then
2239: -- ie can zap the element;
2240:
2241: hr_utility.set_location(' ZAP Mode set ' || l_proc, 32);
2242: l_del_mode := hr_api.g_zap;
2243: -- As there is no pre record. copy current row in pre record
2244: l_hist_pre := l_hist_rec;
2245: end if;

Line 2256: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);

2252: p_del_mode => l_del_mode,
2253: p_cannot_cancel => l_cannot_cancel);
2254: if l_cannot_cancel then
2255: -- raise error
2256: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2257: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2258: hr_utility.raise_error;
2259: else
2260: hr_utility.set_location('Delete rows.'|| l_proc,40);

Line 2257: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');

2253: p_cannot_cancel => l_cannot_cancel);
2254: if l_cannot_cancel then
2255: -- raise error
2256: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2257: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2258: hr_utility.raise_error;
2259: else
2260: hr_utility.set_location('Delete rows.'|| l_proc,40);
2261: delete_hist_row ( l_hist_rec.pa_history_id);

Line 2258: hr_utility.raise_error;

2254: if l_cannot_cancel then
2255: -- raise error
2256: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2257: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2258: hr_utility.raise_error;
2259: else
2260: hr_utility.set_location('Delete rows.'|| l_proc,40);
2261: delete_hist_row ( l_hist_rec.pa_history_id);
2262: delete_eleentval( l_hist_rec);

Line 2260: hr_utility.set_location('Delete rows.'|| l_proc,40);

2256: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2257: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2258: hr_utility.raise_error;
2259: else
2260: hr_utility.set_location('Delete rows.'|| l_proc,40);
2261: delete_hist_row ( l_hist_rec.pa_history_id);
2262: delete_eleentval( l_hist_rec);
2263: end if;
2264: else

Line 2271: hr_utility.set_location('element_name '||l_element_name,10);

2267: loop
2268: l_element_name := element_name_rec.element_name;
2269: exit;
2270: end loop;
2271: hr_utility.set_location('element_name '||l_element_name,10);
2272: delete_other_pay_entries(p_hist_rec => l_hist_rec,
2273: p_element_name => l_element_name);
2274: --Bug#2521744 testing
2275: end if;

Line 2277: hr_utility.set_location('Record was not created.'|| l_proc,45);

2273: p_element_name => l_element_name);
2274: --Bug#2521744 testing
2275: end if;
2276: else
2277: hr_utility.set_location('Record was not created.'|| l_proc,45);
2278: null;
2279: end if;
2280: -- Delete history record
2281: delete_hist_row ( l_hist_rec.pa_history_id);

Line 2286: hr_utility.set_location('Processing element entry value record'|| l_proc,47);

2282:
2283:
2284: -- PAY_ELEMENT_ENTRY_VALUE needs to be handled differently
2285: elsif lower(l_hist_rec.table_name) = lower (ghr_history_api.g_eleevl_table) then
2286: hr_utility.set_location('Processing element entry value record'|| l_proc,47);
2287: if l_hist_rec.DML_operation = ghr_history_api.g_upd_operation then
2288: hr_utility.set_location('Record was updated' || l_proc,48);
2289: if (l_pre_record = FALSE) then
2290: -- Bug#2521744 Added if condition

Line 2288: hr_utility.set_location('Record was updated' || l_proc,48);

2284: -- PAY_ELEMENT_ENTRY_VALUE needs to be handled differently
2285: elsif lower(l_hist_rec.table_name) = lower (ghr_history_api.g_eleevl_table) then
2286: hr_utility.set_location('Processing element entry value record'|| l_proc,47);
2287: if l_hist_rec.DML_operation = ghr_history_api.g_upd_operation then
2288: hr_utility.set_location('Record was updated' || l_proc,48);
2289: if (l_pre_record = FALSE) then
2290: -- Bug#2521744 Added if condition
2291: for element_name_rec1 in c_element_name1(l_hist_rec.information5)
2292: loop

Line 2300: hr_utility.set_location('element_name '||l_element_name1,10);

2296: fnd_profile.get('PER_BUSINESS_GROUP_ID',l_bus_group_id);
2297: l_element_name1 := pqp_fedhr_uspay_int_utils.return_old_element_name
2298: (l_element_name1,l_bus_group_id,l_hist_rec.effective_date);
2299:
2300: hr_utility.set_location('element_name '||l_element_name1,10);
2301: IF l_element_name1 IN ('Retention Allowance','Supervisory Differential',
2302: 'AUO','Availability Pay','Other Pay') then
2303: hr_utility.set_location('Inside Oth pay elt val condition',15);
2304: NULL;

Line 2303: hr_utility.set_location('Inside Oth pay elt val condition',15);

2299:
2300: hr_utility.set_location('element_name '||l_element_name1,10);
2301: IF l_element_name1 IN ('Retention Allowance','Supervisory Differential',
2302: 'AUO','Availability Pay','Other Pay') then
2303: hr_utility.set_location('Inside Oth pay elt val condition',15);
2304: NULL;
2305: Else
2306: -- raise error. Must have a pre in order to cancel.
2307: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);

Line 2307: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);

2303: hr_utility.set_location('Inside Oth pay elt val condition',15);
2304: NULL;
2305: Else
2306: -- raise error. Must have a pre in order to cancel.
2307: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2308: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2309: hr_utility.raise_error;
2310: End IF;
2311: -- End of Bug#2521744

Line 2308: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');

2304: NULL;
2305: Else
2306: -- raise error. Must have a pre in order to cancel.
2307: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2308: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2309: hr_utility.raise_error;
2310: End IF;
2311: -- End of Bug#2521744
2312: else

Line 2309: hr_utility.raise_error;

2305: Else
2306: -- raise error. Must have a pre in order to cancel.
2307: hr_utility.set_location('ERROR: Cannot Cancel'|| l_proc,35);
2308: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2309: hr_utility.raise_error;
2310: End IF;
2311: -- End of Bug#2521744
2312: else
2313: -- get date_effective row from table. See if it is different than the value of the

Line 2326: hr_utility.set_location( l_proc, 50);

2322: p_pa_history_id => l_pa_history_id);
2323: if l_result_code is not null then
2324: -- this should never be the case
2325: -- raise error.
2326: hr_utility.set_location( l_proc, 50);
2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');
2328: hr_utility.raise_error;
2329: end if;
2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);

Line 2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');

2323: if l_result_code is not null then
2324: -- this should never be the case
2325: -- raise error.
2326: hr_utility.set_location( l_proc, 50);
2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');
2328: hr_utility.raise_error;
2329: end if;
2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);
2331: hr_utility.set_location( 'l_pa_history_id: ' || l_pa_history_id || l_proc, 1250);

Line 2328: hr_utility.raise_error;

2324: -- this should never be the case
2325: -- raise error.
2326: hr_utility.set_location( l_proc, 50);
2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');
2328: hr_utility.raise_error;
2329: end if;
2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);
2331: hr_utility.set_location( 'l_pa_history_id: ' || l_pa_history_id || l_proc, 1250);
2332: if (l_hist_rec.pa_history_id = l_pa_history_id) then

Line 2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);

2326: hr_utility.set_location( l_proc, 50);
2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');
2328: hr_utility.raise_error;
2329: end if;
2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);
2331: hr_utility.set_location( 'l_pa_history_id: ' || l_pa_history_id || l_proc, 1250);
2332: if (l_hist_rec.pa_history_id = l_pa_history_id) then
2333:
2334: -- update element_entry_value here.

Line 2331: hr_utility.set_location( 'l_pa_history_id: ' || l_pa_history_id || l_proc, 1250);

2327: hr_utility.set_message(8301,'GHR_38361_ELEMENT_ROW_NFND');
2328: hr_utility.raise_error;
2329: end if;
2330: hr_utility.set_location( 'l_hist_rec.pa_history_id: ' || l_hist_rec.pa_history_id || l_proc, 1150);
2331: hr_utility.set_location( 'l_pa_history_id: ' || l_pa_history_id || l_proc, 1250);
2332: if (l_hist_rec.pa_history_id = l_pa_history_id) then
2333:
2334: -- update element_entry_value here.
2335: -- update application table with pre-values

Line 2343: hr_utility.set_location('Processing non element entry table'|| l_proc,50);

2339: end if;
2340: -- Delete history record
2341: delete_hist_row ( l_hist_rec.pa_history_id);
2342: else
2343: hr_utility.set_location('Processing non element entry table'|| l_proc,50);
2344: -- cascade changes thru history table
2345: ghr_history_cascade.cascade_history_data (
2346: p_table_name => l_hist_rec.table_name,
2347: p_person_id => l_hist_rec.person_id,

Line 2357: hr_utility.set_location('In Cancel - Date track table' ,1);

2353: p_hist_data_as_of_date => l_hist_data_as_of_date);
2354:
2355: -- Determine if this record was created or updated.
2356: if l_datetrack_table then
2357: hr_utility.set_location('In Cancel - Date track table' ,1);
2358: if l_hist_rec.DML_operation = ghr_history_api.g_ins_operation then
2359: hr_utility.set_location('in Cancel - DML - Ins' ,1);
2360: l_rec_created_flag := TRUE;
2361:

Line 2359: hr_utility.set_location('in Cancel - DML - Ins' ,1);

2355: -- Determine if this record was created or updated.
2356: if l_datetrack_table then
2357: hr_utility.set_location('In Cancel - Date track table' ,1);
2358: if l_hist_rec.DML_operation = ghr_history_api.g_ins_operation then
2359: hr_utility.set_location('in Cancel - DML - Ins' ,1);
2360: l_rec_created_flag := TRUE;
2361:
2362: -- if this sf50 updated the row, then the pre must have the same date.
2363: -- The triggers work such that we will only have update from sf50 operation

Line 2371: hr_utility.set_location('in Cancel - DML - Upd' ,1);

2367: -- by the sf52. So, we must set the rec_created_flag to true for this row. Note
2368: -- this stands true with date tracked tables only as with non-date tracked tables there
2369: -- is only one row in a record, so this case will never occur.
2370: elsif l_hist_rec.DML_operation = ghr_history_api.g_upd_operation then
2371: hr_utility.set_location('in Cancel - DML - Upd' ,1);
2372: if l_hist_rec.effective_date <> l_hist_pre.effective_date then
2373: l_rec_created_flag := TRUE;
2374: hr_utility.set_location('in Cancel - Created' ,1);
2375: else

Line 2374: hr_utility.set_location('in Cancel - Created' ,1);

2370: elsif l_hist_rec.DML_operation = ghr_history_api.g_upd_operation then
2371: hr_utility.set_location('in Cancel - DML - Upd' ,1);
2372: if l_hist_rec.effective_date <> l_hist_pre.effective_date then
2373: l_rec_created_flag := TRUE;
2374: hr_utility.set_location('in Cancel - Created' ,1);
2375: else
2376: l_rec_created_flag := FALSE;
2377: hr_utility.set_location('in Cancel - Not Created' ,1);
2378: end if;

Line 2377: hr_utility.set_location('in Cancel - Not Created' ,1);

2373: l_rec_created_flag := TRUE;
2374: hr_utility.set_location('in Cancel - Created' ,1);
2375: else
2376: l_rec_created_flag := FALSE;
2377: hr_utility.set_location('in Cancel - Not Created' ,1);
2378: end if;
2379: end if;
2380: else
2381: hr_utility.set_location('In Cancel - Not a Date track table' ,1);

Line 2381: hr_utility.set_location('In Cancel - Not a Date track table' ,1);

2377: hr_utility.set_location('in Cancel - Not Created' ,1);
2378: end if;
2379: end if;
2380: else
2381: hr_utility.set_location('In Cancel - Not a Date track table' ,1);
2382: l_rec_created_flag := (l_hist_rec.DML_operation = ghr_history_api.g_ins_operation);
2383: end if;
2384:
2385: what_to_do(

Line 2395: hr_utility.set_location('what to do' || ' interv on table',1);

2391: p_can_delete => l_can_delete,
2392: p_last_row => l_last_row,
2393: p_cannot_cancel => l_cannot_cancel);
2394: If l_interv_on_table then
2395: hr_utility.set_location('what to do' || ' interv on table',1);
2396: else
2397: hr_utility.set_location('what to do ' || 'no interv on table',1);
2398: end if;
2399: If l_interv_on_eff_date then

Line 2397: hr_utility.set_location('what to do ' || 'no interv on table',1);

2393: p_cannot_cancel => l_cannot_cancel);
2394: If l_interv_on_table then
2395: hr_utility.set_location('what to do' || ' interv on table',1);
2396: else
2397: hr_utility.set_location('what to do ' || 'no interv on table',1);
2398: end if;
2399: If l_interv_on_eff_date then
2400: hr_utility.set_location('what to do' || ' interv on eff',1);
2401: else

Line 2400: hr_utility.set_location('what to do' || ' interv on eff',1);

2396: else
2397: hr_utility.set_location('what to do ' || 'no interv on table',1);
2398: end if;
2399: If l_interv_on_eff_date then
2400: hr_utility.set_location('what to do' || ' interv on eff',1);
2401: else
2402: hr_utility.set_location('what to do ' || 'no interv on eff' ,1);
2403: end if;
2404:

Line 2402: hr_utility.set_location('what to do ' || 'no interv on eff' ,1);

2398: end if;
2399: If l_interv_on_eff_date then
2400: hr_utility.set_location('what to do' || ' interv on eff',1);
2401: else
2402: hr_utility.set_location('what to do ' || 'no interv on eff' ,1);
2403: end if;
2404:
2405: if (l_cannot_cancel = TRUE) then
2406: hr_utility.set_location('ERROR: Cannot cancel'|| l_proc,55);

Line 2406: hr_utility.set_location('ERROR: Cannot cancel'|| l_proc,55);

2402: hr_utility.set_location('what to do ' || 'no interv on eff' ,1);
2403: end if;
2404:
2405: if (l_cannot_cancel = TRUE) then
2406: hr_utility.set_location('ERROR: Cannot cancel'|| l_proc,55);
2407: -- error, cannot cancel
2408: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2409: hr_utility.raise_error;
2410: end if;

Line 2408: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');

2404:
2405: if (l_cannot_cancel = TRUE) then
2406: hr_utility.set_location('ERROR: Cannot cancel'|| l_proc,55);
2407: -- error, cannot cancel
2408: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2409: hr_utility.raise_error;
2410: end if;
2411:
2412: -- use flags to determine datetrack_mode, if needed.

Line 2409: hr_utility.raise_error;

2405: if (l_cannot_cancel = TRUE) then
2406: hr_utility.set_location('ERROR: Cannot cancel'|| l_proc,55);
2407: -- error, cannot cancel
2408: hr_utility.set_message(8301,'GHR_38212_CANNOT_CANCEL');
2409: hr_utility.raise_error;
2410: end if;
2411:
2412: -- use flags to determine datetrack_mode, if needed.
2413: -- delete row under conditions outlined below.

Line 2417: hr_utility.set_location('CAN delete'|| l_proc,60);

2413: -- delete row under conditions outlined below.
2414: l_deleted := FALSE;
2415: l_datetrack_mode := null;
2416: if (l_can_delete = TRUE) then
2417: hr_utility.set_location('CAN delete'|| l_proc,60);
2418: if (l_datetrack_table = TRUE) then
2419: hr_utility.set_location('Datetrack table'|| l_proc,65);
2420: if (l_pre_record = FALSE and l_last_row = TRUE) then
2421: hr_utility.set_location('Only Row'|| l_proc,70);

Line 2419: hr_utility.set_location('Datetrack table'|| l_proc,65);

2415: l_datetrack_mode := null;
2416: if (l_can_delete = TRUE) then
2417: hr_utility.set_location('CAN delete'|| l_proc,60);
2418: if (l_datetrack_table = TRUE) then
2419: hr_utility.set_location('Datetrack table'|| l_proc,65);
2420: if (l_pre_record = FALSE and l_last_row = TRUE) then
2421: hr_utility.set_location('Only Row'|| l_proc,70);
2422: l_datetrack_mode := hr_api.g_zap;
2423: else

Line 2421: hr_utility.set_location('Only Row'|| l_proc,70);

2417: hr_utility.set_location('CAN delete'|| l_proc,60);
2418: if (l_datetrack_table = TRUE) then
2419: hr_utility.set_location('Datetrack table'|| l_proc,65);
2420: if (l_pre_record = FALSE and l_last_row = TRUE) then
2421: hr_utility.set_location('Only Row'|| l_proc,70);
2422: l_datetrack_mode := hr_api.g_zap;
2423: else
2424: hr_utility.set_location('Not Only Row'|| l_proc,75);
2425: l_datetrack_mode := hr_api.g_delete_next_change;

Line 2424: hr_utility.set_location('Not Only Row'|| l_proc,75);

2420: if (l_pre_record = FALSE and l_last_row = TRUE) then
2421: hr_utility.set_location('Only Row'|| l_proc,70);
2422: l_datetrack_mode := hr_api.g_zap;
2423: else
2424: hr_utility.set_location('Not Only Row'|| l_proc,75);
2425: l_datetrack_mode := hr_api.g_delete_next_change;
2426:
2427: end if;
2428: end if;

Line 2429: hr_utility.set_location('after what to do Del Mode ' || l_datetrack_mode,1);

2425: l_datetrack_mode := hr_api.g_delete_next_change;
2426:
2427: end if;
2428: end if;
2429: hr_utility.set_location('after what to do Del Mode ' || l_datetrack_mode,1);
2430: -- only do the delete if this is a datetrack table or if it is the only row of a
2431: -- non datetrack table. In all other cases, cascade will properly handle it.
2432:
2433: if (l_datetrack_table = TRUE or (l_last_row = TRUE and l_pre_record = FALSE)) then

Line 2434: hr_utility.set_location('Deleting Application row'|| l_proc,80);

2430: -- only do the delete if this is a datetrack table or if it is the only row of a
2431: -- non datetrack table. In all other cases, cascade will properly handle it.
2432:
2433: if (l_datetrack_table = TRUE or (l_last_row = TRUE and l_pre_record = FALSE)) then
2434: hr_utility.set_location('Deleting Application row'|| l_proc,80);
2435: l_deleted := TRUE;
2436: delete_appl_row( p_table_name => l_hist_rec.table_name,
2437: p_table_pk_id => l_hist_rec.information1,
2438: p_dt_mode => l_datetrack_mode,

Line 2440: hr_utility.set_location('Hist Rec Eff . Date ' || l_hist_rec.effective_date,1);

2436: delete_appl_row( p_table_name => l_hist_rec.table_name,
2437: p_table_pk_id => l_hist_rec.information1,
2438: p_dt_mode => l_datetrack_mode,
2439: p_date_effective => l_hist_rec.effective_date);
2440: hr_utility.set_location('Hist Rec Eff . Date ' || l_hist_rec.effective_date,1);
2441:
2442: end if;
2443: end if;
2444: -- Delete history record

Line 2450: hr_utility.set_location('deleted is false : Bef cascade appl_table',1);

2446: -- cascade changes thru application table, if the application table record was not already deleted above.
2447: if (l_deleted = FALSE)
2448: or (l_datetrack_mode = hr_api.g_delete_next_change) then
2449: if (l_deleted = FALSE) then
2450: hr_utility.set_location('deleted is false : Bef cascade appl_table',1);
2451: else
2452:
2453: hr_utility.set_location('delete next change : Bef cascade appl_table',1);
2454: end if;

Line 2453: hr_utility.set_location('delete next change : Bef cascade appl_table',1);

2449: if (l_deleted = FALSE) then
2450: hr_utility.set_location('deleted is false : Bef cascade appl_table',1);
2451: else
2452:
2453: hr_utility.set_location('delete next change : Bef cascade appl_table',1);
2454: end if;
2455: -- Sundar Bug#2872298 Cascade should not occur if records are already deleted and
2456: -- delete mode in DELETE_NEXT_CHANGE
2457: IF (l_deleted = TRUE) AND (l_datetrack_mode = hr_api.g_delete_next_change) --AND (p_sf52_data.second_noa_code = '790')

Line 2464: hr_utility.set_location('In per_person_analyses record checking',997);

2460: ELSE
2461: --5900178
2462: l_rec_exists := TRUE;
2463: IF l_hist_rec.table_name = 'PER_PERSON_ANALYSES' THEN
2464: hr_utility.set_location('In per_person_analyses record checking',997);
2465: OPEN chk_perana_exists(p_person_analysis_id => l_hist_rec.information1);
2466: FETCH chk_perana_exists into m_perana;
2467: IF chk_perana_exists%NOTFOUND THEN
2468: hr_utility.set_location('In per_person_analyses record checking--notfound',996);

Line 2468: hr_utility.set_location('In per_person_analyses record checking--notfound',996);

2464: hr_utility.set_location('In per_person_analyses record checking',997);
2465: OPEN chk_perana_exists(p_person_analysis_id => l_hist_rec.information1);
2466: FETCH chk_perana_exists into m_perana;
2467: IF chk_perana_exists%NOTFOUND THEN
2468: hr_utility.set_location('In per_person_analyses record checking--notfound',996);
2469: l_rec_exists := FALSE;
2470: END IF;
2471: CLOSE chk_perana_exists;
2472: END IF;

Line 2524: hr_utility.set_location('Exited Loop'|| l_proc,85);

2520:
2521: end if;
2522: end if;
2523: END LOOP;
2524: hr_utility.set_location('Exited Loop'|| l_proc,85);
2525:
2526: ghr_agency_update.ghr_agency_upd(
2527: p_pa_request_rec => l_sf52_data,
2528: p_asg_sf52 => l_imm_asg_sf52,

Line 2594: hr_utility.set_location( l_proc, 90);

2590: p_from_position_id => p_sf52_data.from_position_id,
2591: p_to_position_id => p_sf52_data.to_position_id,
2592: p_agency_code => p_sf52_data.agency_code);
2593:
2594: hr_utility.set_location( l_proc, 90);
2595: Undo_Mark_Cancel ( p_sf52_data => p_sf52_data);
2596: hr_utility.set_location( 'Leaving ' || l_proc, 100);
2597: End if;
2598: Exception when others then

Line 2596: hr_utility.set_location( 'Leaving ' || l_proc, 100);

2592: p_agency_code => p_sf52_data.agency_code);
2593:
2594: hr_utility.set_location( l_proc, 90);
2595: Undo_Mark_Cancel ( p_sf52_data => p_sf52_data);
2596: hr_utility.set_location( 'Leaving ' || l_proc, 100);
2597: End if;
2598: Exception when others then
2599: --
2600: -- Reset IN OUT parameters and set OUT parameters

Line 2726: hr_utility.set_location( 'Entering ' || l_proc, 10);

2722: l_sf52_rec ghr_pa_requests%rowtype;
2723: l_shadow_rec ghr_pa_request_shadow%rowtype;
2724: Begin
2725:
2726: hr_utility.set_location( 'Entering ' || l_proc, 10);
2727: l_sf52_rec := p_sf52_rec;
2728: l_shadow_rec := p_shadow_rec;
2729:
2730: open get_hist;

Line 2733: hr_utility.set_location( 'Fetched Hist id' || l_proc, 15);

2729:
2730: open get_hist;
2731: fetch get_hist into l_hist_id;
2732: close get_hist;
2733: hr_utility.set_location( 'Fetched Hist id' || l_proc, 15);
2734:
2735: ghr_history_fetch.fetch_people(
2736: p_person_id => p_sf52_data.person_id,
2737: p_date_effective => p_sf52_data.effective_date,

Line 2746: hr_utility.set_location( 'People Data Found' || l_proc, 20);

2742: p_result_code => l_result_code
2743: );
2744:
2745: if l_result_code is NULL then
2746: hr_utility.set_location( 'People Data Found' || l_proc, 20);
2747:
2748: if nvl(p_sf52_rec.employee_first_name, hr_api.g_varchar2) = nvl(p_shadow_rec.employee_first_name , hr_api.g_varchar2) and
2749: nvl(p_sf52_rec.employee_last_name , hr_api.g_varchar2) = nvl(p_shadow_rec.employee_last_name , hr_api.g_varchar2) and
2750: nvl(p_sf52_rec.employee_middle_names,hr_api.g_varchar2) = nvl(p_shadow_rec.employee_middle_names, hr_api.g_varchar2) then

Line 2752: hr_utility.set_location( 'Refresh Name ' || l_proc, 30);

2748: if nvl(p_sf52_rec.employee_first_name, hr_api.g_varchar2) = nvl(p_shadow_rec.employee_first_name , hr_api.g_varchar2) and
2749: nvl(p_sf52_rec.employee_last_name , hr_api.g_varchar2) = nvl(p_shadow_rec.employee_last_name , hr_api.g_varchar2) and
2750: nvl(p_sf52_rec.employee_middle_names,hr_api.g_varchar2) = nvl(p_shadow_rec.employee_middle_names, hr_api.g_varchar2) then
2751:
2752: hr_utility.set_location( 'Refresh Name ' || l_proc, 30);
2753: p_sf52_rec.employee_first_name := l_people_data.first_name;
2754: p_sf52_rec.employee_last_name := l_people_data.last_name;
2755: p_sf52_rec.employee_middle_names := l_people_data.middle_names;
2756:

Line 2762: hr_utility.set_location( 'Check SSN ' || l_proc, 35);

2758: p_shadow_rec.employee_last_name := l_people_data.last_name;
2759: p_shadow_rec.employee_middle_names := l_people_data.middle_names;
2760: end if;
2761:
2762: hr_utility.set_location( 'Check SSN ' || l_proc, 35);
2763: if nvl(p_sf52_rec.employee_national_identifier, hr_api.g_varchar2) = nvl(p_shadow_rec.employee_national_identifier, hr_api.g_varchar2) then
2764: hr_utility.set_location( 'Refresh SSN ' || l_proc, 40);
2765: p_sf52_rec.employee_national_identifier := l_people_data.national_identifier;
2766: hr_utility.set_location( 'Refresh SSN ' || l_proc, 41);

Line 2764: hr_utility.set_location( 'Refresh SSN ' || l_proc, 40);

2760: end if;
2761:
2762: hr_utility.set_location( 'Check SSN ' || l_proc, 35);
2763: if nvl(p_sf52_rec.employee_national_identifier, hr_api.g_varchar2) = nvl(p_shadow_rec.employee_national_identifier, hr_api.g_varchar2) then
2764: hr_utility.set_location( 'Refresh SSN ' || l_proc, 40);
2765: p_sf52_rec.employee_national_identifier := l_people_data.national_identifier;
2766: hr_utility.set_location( 'Refresh SSN ' || l_proc, 41);
2767: p_shadow_rec.employee_national_identifier := l_people_data.national_identifier;
2768: end if;

Line 2766: hr_utility.set_location( 'Refresh SSN ' || l_proc, 41);

2762: hr_utility.set_location( 'Check SSN ' || l_proc, 35);
2763: if nvl(p_sf52_rec.employee_national_identifier, hr_api.g_varchar2) = nvl(p_shadow_rec.employee_national_identifier, hr_api.g_varchar2) then
2764: hr_utility.set_location( 'Refresh SSN ' || l_proc, 40);
2765: p_sf52_rec.employee_national_identifier := l_people_data.national_identifier;
2766: hr_utility.set_location( 'Refresh SSN ' || l_proc, 41);
2767: p_shadow_rec.employee_national_identifier := l_people_data.national_identifier;
2768: end if;
2769:
2770: hr_utility.set_location( 'check DOB ' || l_proc, 45);

Line 2770: hr_utility.set_location( 'check DOB ' || l_proc, 45);

2766: hr_utility.set_location( 'Refresh SSN ' || l_proc, 41);
2767: p_shadow_rec.employee_national_identifier := l_people_data.national_identifier;
2768: end if;
2769:
2770: hr_utility.set_location( 'check DOB ' || l_proc, 45);
2771: if nvl(p_sf52_rec.employee_date_of_birth, hr_api.g_date) = nvl(p_shadow_rec.employee_date_of_birth, hr_api.g_date) then
2772: hr_utility.set_location( 'Refresh DOB ' || l_proc, 50);
2773: p_sf52_rec.employee_date_of_birth := l_people_data.date_of_birth;
2774: hr_utility.set_location( 'Refresh DOB ' || l_proc, 51);

Line 2772: hr_utility.set_location( 'Refresh DOB ' || l_proc, 50);

2768: end if;
2769:
2770: hr_utility.set_location( 'check DOB ' || l_proc, 45);
2771: if nvl(p_sf52_rec.employee_date_of_birth, hr_api.g_date) = nvl(p_shadow_rec.employee_date_of_birth, hr_api.g_date) then
2772: hr_utility.set_location( 'Refresh DOB ' || l_proc, 50);
2773: p_sf52_rec.employee_date_of_birth := l_people_data.date_of_birth;
2774: hr_utility.set_location( 'Refresh DOB ' || l_proc, 51);
2775: p_shadow_rec.employee_date_of_birth := l_people_data.date_of_birth;
2776: end if;

Line 2774: hr_utility.set_location( 'Refresh DOB ' || l_proc, 51);

2770: hr_utility.set_location( 'check DOB ' || l_proc, 45);
2771: if nvl(p_sf52_rec.employee_date_of_birth, hr_api.g_date) = nvl(p_shadow_rec.employee_date_of_birth, hr_api.g_date) then
2772: hr_utility.set_location( 'Refresh DOB ' || l_proc, 50);
2773: p_sf52_rec.employee_date_of_birth := l_people_data.date_of_birth;
2774: hr_utility.set_location( 'Refresh DOB ' || l_proc, 51);
2775: p_shadow_rec.employee_date_of_birth := l_people_data.date_of_birth;
2776: end if;
2777:
2778: end if;

Line 2779: hr_utility.set_location( 'Leaving ' || l_proc, 100);

2775: p_shadow_rec.employee_date_of_birth := l_people_data.date_of_birth;
2776: end if;
2777:
2778: end if;
2779: hr_utility.set_location( 'Leaving ' || l_proc, 100);
2780: Exception when others then
2781: --
2782: -- Reset IN OUT parameters and set OUT parameters
2783: --

Line 2792: hr_utility.set_location('Entering:'|| l_proc, 5);

2788: End;
2789:
2790: begin
2791:
2792: hr_utility.set_location('Entering:'|| l_proc, 5);
2793: -- reinitialise session variables
2794: ghr_history_api.reinit_g_session_var;
2795:
2796: -- set values of session variables

Line 2830: hr_utility.set_location(l_proc, 102);

2826: -- .47
2827:
2828: /* .47
2829: -- get root sf52 for this correction
2830: hr_utility.set_location(l_proc, 102);
2831: open c_get_root (p_sf52_data.altered_pa_request_id);
2832: fetch c_get_root into l_root_sf52;
2833: if c_get_root%notfound then
2834: hr_utility.set_location(l_proc, 103);

Line 2834: hr_utility.set_location(l_proc, 103);

2830: hr_utility.set_location(l_proc, 102);
2831: open c_get_root (p_sf52_data.altered_pa_request_id);
2832: fetch c_get_root into l_root_sf52;
2833: if c_get_root%notfound then
2834: hr_utility.set_location(l_proc, 103);
2835: close c_get_root ;
2836: hr_utility.set_message(8301,'GHR_38493_ROOT_SF52_NFND');
2837: hr_utility.raise_error;
2838: else

Line 2836: hr_utility.set_message(8301,'GHR_38493_ROOT_SF52_NFND');

2832: fetch c_get_root into l_root_sf52;
2833: if c_get_root%notfound then
2834: hr_utility.set_location(l_proc, 103);
2835: close c_get_root ;
2836: hr_utility.set_message(8301,'GHR_38493_ROOT_SF52_NFND');
2837: hr_utility.raise_error;
2838: else
2839: close c_get_root ;
2840: end if;

Line 2837: hr_utility.raise_error;

2833: if c_get_root%notfound then
2834: hr_utility.set_location(l_proc, 103);
2835: close c_get_root ;
2836: hr_utility.set_message(8301,'GHR_38493_ROOT_SF52_NFND');
2837: hr_utility.raise_error;
2838: else
2839: close c_get_root ;
2840: end if;
2841:

Line 2878: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');

2874: open c_fam(l_sf52_data.second_noa_id);
2875: fetch c_fam into l_sf52_data.noa_family_code;
2876: if c_fam%NOTFOUND then
2877: close c_fam;
2878: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');
2879: hr_utility.raise_error;
2880: end if;
2881: close c_fam;
2882:

Line 2879: hr_utility.raise_error;

2875: fetch c_fam into l_sf52_data.noa_family_code;
2876: if c_fam%NOTFOUND then
2877: close c_fam;
2878: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');
2879: hr_utility.raise_error;
2880: end if;
2881: close c_fam;
2882:
2883:

Line 2888: hr_utility.set_location('from_step_or_rate right before apply_noa_corrections: '|| l_sf52_data.from_step_or_rate || l_proc, 915);

2884: -- build up the sf52_data record by calling apply_noa_corrections.
2885: -- when this completes, l_sf52_data_result will contain the data of the original
2886: -- sf52, with all corrections in the correction chain applied onto it.
2887: -- apply_noa_corrections ensures that name/dob/ssn are retained from the last correction ie the one being processed.
2888: hr_utility.set_location('from_step_or_rate right before apply_noa_corrections: '|| l_sf52_data.from_step_or_rate || l_proc, 915);
2889: ghr_process_sf52.print_sf52(' l_sf52_data before apply_noa ',l_sf52_data);
2890: ghr_process_sf52.print_sf52(' l_sf52_data_result before apply_noa ',l_sf52_data_result);
2891: -- Bug # 6850492 added the following if condition to call seperate correction
2892: -- procedure for dual actions.

Line 2893: hr_utility.set_location('l_root_sf52.second_noa_code'||l_root_sf52.second_noa_code,100);

2889: ghr_process_sf52.print_sf52(' l_sf52_data before apply_noa ',l_sf52_data);
2890: ghr_process_sf52.print_sf52(' l_sf52_data_result before apply_noa ',l_sf52_data_result);
2891: -- Bug # 6850492 added the following if condition to call seperate correction
2892: -- procedure for dual actions.
2893: hr_utility.set_location('l_root_sf52.second_noa_code'||l_root_sf52.second_noa_code,100);
2894: hr_utility.set_location('l_root_sf52.first_noa_code'||l_root_sf52.first_noa_code,100);
2895: hr_utility.set_location('l_sf52_data.mass_action_id'||l_sf52_data.mass_action_id,100);
2896: hr_utility.set_location('l_sf52_data.rpa_type'||l_sf52_data.rpa_type,100);
2897: l_dual_flag_yn :='N';

Line 2894: hr_utility.set_location('l_root_sf52.first_noa_code'||l_root_sf52.first_noa_code,100);

2890: ghr_process_sf52.print_sf52(' l_sf52_data_result before apply_noa ',l_sf52_data_result);
2891: -- Bug # 6850492 added the following if condition to call seperate correction
2892: -- procedure for dual actions.
2893: hr_utility.set_location('l_root_sf52.second_noa_code'||l_root_sf52.second_noa_code,100);
2894: hr_utility.set_location('l_root_sf52.first_noa_code'||l_root_sf52.first_noa_code,100);
2895: hr_utility.set_location('l_sf52_data.mass_action_id'||l_sf52_data.mass_action_id,100);
2896: hr_utility.set_location('l_sf52_data.rpa_type'||l_sf52_data.rpa_type,100);
2897: l_dual_flag_yn :='N';
2898: open chk_dual_action(l_sf52_data.pa_request_id);

Line 2895: hr_utility.set_location('l_sf52_data.mass_action_id'||l_sf52_data.mass_action_id,100);

2891: -- Bug # 6850492 added the following if condition to call seperate correction
2892: -- procedure for dual actions.
2893: hr_utility.set_location('l_root_sf52.second_noa_code'||l_root_sf52.second_noa_code,100);
2894: hr_utility.set_location('l_root_sf52.first_noa_code'||l_root_sf52.first_noa_code,100);
2895: hr_utility.set_location('l_sf52_data.mass_action_id'||l_sf52_data.mass_action_id,100);
2896: hr_utility.set_location('l_sf52_data.rpa_type'||l_sf52_data.rpa_type,100);
2897: l_dual_flag_yn :='N';
2898: open chk_dual_action(l_sf52_data.pa_request_id);
2899: fetch chk_dual_action into l_dual_flag_yn;

Line 2896: hr_utility.set_location('l_sf52_data.rpa_type'||l_sf52_data.rpa_type,100);

2892: -- procedure for dual actions.
2893: hr_utility.set_location('l_root_sf52.second_noa_code'||l_root_sf52.second_noa_code,100);
2894: hr_utility.set_location('l_root_sf52.first_noa_code'||l_root_sf52.first_noa_code,100);
2895: hr_utility.set_location('l_sf52_data.mass_action_id'||l_sf52_data.mass_action_id,100);
2896: hr_utility.set_location('l_sf52_data.rpa_type'||l_sf52_data.rpa_type,100);
2897: l_dual_flag_yn :='N';
2898: open chk_dual_action(l_sf52_data.pa_request_id);
2899: fetch chk_dual_action into l_dual_flag_yn;
2900: close chk_dual_action;

Line 2903: hr_utility.set_location('Calling dual noa_corrections',1000);

2899: fetch chk_dual_action into l_dual_flag_yn;
2900: close chk_dual_action;
2901: if NVL(l_dual_flag_yn,'N') = 'Y' and l_sf52_data.mass_action_id is not null and
2902: l_sf52_data.rpa_type = 'DUAL' then
2903: hr_utility.set_location('Calling dual noa_corrections',1000);
2904: apply_dual_noa_corrections(l_sf52_data, l_sf52_data_result);
2905: else
2906: apply_noa_corrections( l_sf52_data, l_sf52_data_result );
2907: end if;

Line 2925: hr_utility.set_location('national_identifier right before update sf52: '|| l_sf52_data_result.employee_national_identifier || l_proc, 915);

2921: p_sf52_ei_data => l_agency_ei_data,
2922: p_result => l_result);
2923:
2924: -- check for future action
2925: hr_utility.set_location('national_identifier right before update sf52: '|| l_sf52_data_result.employee_national_identifier || l_proc, 915);
2926: hr_utility.set_location('from_step_or_rate right before update sf52: '|| l_sf52_data_result.from_step_or_rate || l_proc, 915);
2927: hr_utility.set_location('to_step_or_rate right before update sf52: '|| l_sf52_data_result.to_step_or_rate || l_proc, 915);
2928:
2929: ghr_history_api.display_g_session_var;

Line 2926: hr_utility.set_location('from_step_or_rate right before update sf52: '|| l_sf52_data_result.from_step_or_rate || l_proc, 915);

2922: p_result => l_result);
2923:
2924: -- check for future action
2925: hr_utility.set_location('national_identifier right before update sf52: '|| l_sf52_data_result.employee_national_identifier || l_proc, 915);
2926: hr_utility.set_location('from_step_or_rate right before update sf52: '|| l_sf52_data_result.from_step_or_rate || l_proc, 915);
2927: hr_utility.set_location('to_step_or_rate right before update sf52: '|| l_sf52_data_result.to_step_or_rate || l_proc, 915);
2928:
2929: ghr_history_api.display_g_session_var;
2930: -- Check if atleast the min. required items exist in the pa_request

Line 2927: hr_utility.set_location('to_step_or_rate right before update sf52: '|| l_sf52_data_result.to_step_or_rate || l_proc, 915);

2923:
2924: -- check for future action
2925: hr_utility.set_location('national_identifier right before update sf52: '|| l_sf52_data_result.employee_national_identifier || l_proc, 915);
2926: hr_utility.set_location('from_step_or_rate right before update sf52: '|| l_sf52_data_result.from_step_or_rate || l_proc, 915);
2927: hr_utility.set_location('to_step_or_rate right before update sf52: '|| l_sf52_data_result.to_step_or_rate || l_proc, 915);
2928:
2929: ghr_history_api.display_g_session_var;
2930: -- Check if atleast the min. required items exist in the pa_request
2931: ghr_sf52_validn_pkg.prelim_req_chk_for_update_hr(p_pa_request_rec => l_sf52_data_result);

Line 2948: hr_utility.set_location('to_position_id right before update sf52: '|| l_sf52_data_result.to_position_id || l_proc, 915);

2944: ghr_sf52_update.main( p_pa_request_rec => l_sf52_data_result,
2945: p_pa_request_ei_rec => l_sf52_ei_data,
2946: p_generic_ei_rec => l_agency_ei_data,
2947: p_capped_other_pay => p_capped_other_pay);
2948: hr_utility.set_location('to_position_id right before update sf52: '|| l_sf52_data_result.to_position_id || l_proc, 915);
2949: hr_utility.set_location('After main update :'|| l_proc, 20);
2950: ghr_sf52_post_update.Post_sf52_process(
2951: p_pa_request_id => p_sf52_data.pa_request_id,
2952: p_effective_date => l_session_var.date_effective,

Line 2949: hr_utility.set_location('After main update :'|| l_proc, 20);

2945: p_pa_request_ei_rec => l_sf52_ei_data,
2946: p_generic_ei_rec => l_agency_ei_data,
2947: p_capped_other_pay => p_capped_other_pay);
2948: hr_utility.set_location('to_position_id right before update sf52: '|| l_sf52_data_result.to_position_id || l_proc, 915);
2949: hr_utility.set_location('After main update :'|| l_proc, 20);
2950: ghr_sf52_post_update.Post_sf52_process(
2951: p_pa_request_id => p_sf52_data.pa_request_id,
2952: p_effective_date => l_session_var.date_effective,
2953: p_object_version_number => l_sf52_data1.object_version_number,

Line 2962: hr_utility.set_location(' Leaving:'||l_proc, 10);

2958: p_called_from => 'CORRECTION_SF52'
2959: );
2960:
2961: end if;
2962: hr_utility.set_location(' Leaving:'||l_proc, 10);
2963: end correction_sf52;
2964:
2965: -- ---------------------------------------------------------------------------
2966: -- |--------------------------< delete_hist_row>------------------------------|

Line 2997: hr_utility.set_location( 'Entering : ' || l_proc, 10);

2993:
2994: Procedure delete_hist_row ( p_row_id in rowid) is
2995: l_proc varchar2(30):='delete_hist_row';
2996: Begin
2997: hr_utility.set_location( 'Entering : ' || l_proc, 10);
2998: delete ghr_pa_history
2999: where rowid = p_row_id;
3000: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
3001: End delete_hist_row;

Line 3000: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

2996: Begin
2997: hr_utility.set_location( 'Entering : ' || l_proc, 10);
2998: delete ghr_pa_history
2999: where rowid = p_row_id;
3000: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
3001: End delete_hist_row;
3002:
3003: -- ---------------------------------------------------------------------------
3004: -- |--------------------------< delete_hist_row>------------------------------|

Line 3035: hr_utility.set_location( 'Entering : ' || l_proc, 30);

3031:
3032: Procedure delete_hist_row ( p_pa_history_id in ghr_pa_history.pa_history_id%type) is
3033: l_proc varchar2(30):='delete_hist_row';
3034: Begin
3035: hr_utility.set_location( 'Entering : ' || l_proc, 30);
3036: delete ghr_pa_history
3037: where pa_history_id = p_pa_history_id;
3038: hr_utility.set_location( 'Leaving : ' || l_proc, 40);
3039: End delete_hist_row;

Line 3038: hr_utility.set_location( 'Leaving : ' || l_proc, 40);

3034: Begin
3035: hr_utility.set_location( 'Entering : ' || l_proc, 30);
3036: delete ghr_pa_history
3037: where pa_history_id = p_pa_history_id;
3038: hr_utility.set_location( 'Leaving : ' || l_proc, 40);
3039: End delete_hist_row;
3040:
3041: -- ---------------------------------------------------------------------------
3042: -- |--------------------------< apply_correction>-----------------------------|

Line 3096: hr_utility.set_location('Entering:'|| l_proc, 5);

3092: -- End Bug# 5014663
3093:
3094:
3095: BEGIN
3096: hr_utility.set_location('Entering:'|| l_proc, 5);
3097: l_sf52rec := p_sf52rec;
3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3100: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_request_id , p_sf52rec.pa_request_id );

Line 3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);

3094:
3095: BEGIN
3096: hr_utility.set_location('Entering:'|| l_proc, 5);
3097: l_sf52rec := p_sf52rec;
3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3100: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_request_id , p_sf52rec.pa_request_id );
3101: hr_utility.set_location('post par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3102: hr_utility.set_location('post par: rec pa_request id=' || p_sf52rec.pa_request_id,7);

Line 3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);

3095: BEGIN
3096: hr_utility.set_location('Entering:'|| l_proc, 5);
3097: l_sf52rec := p_sf52rec;
3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3100: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_request_id , p_sf52rec.pa_request_id );
3101: hr_utility.set_location('post par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3102: hr_utility.set_location('post par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3103: -- the following two fields are not filled in because they are derived.

Line 3101: hr_utility.set_location('post par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);

3097: l_sf52rec := p_sf52rec;
3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3100: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_request_id , p_sf52rec.pa_request_id );
3101: hr_utility.set_location('post par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3102: hr_utility.set_location('post par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3103: -- the following two fields are not filled in because they are derived.
3104: -- ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_notification_id , p_sf52rec.pa_notification_id );
3105: -- ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.noa_family_code , p_sf52rec.noa_family_code );

Line 3102: hr_utility.set_location('post par: rec pa_request id=' || p_sf52rec.pa_request_id,7);

3098: hr_utility.set_location('pre par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3099: hr_utility.set_location('pre par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3100: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_request_id , p_sf52rec.pa_request_id );
3101: hr_utility.set_location('post par: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3102: hr_utility.set_location('post par: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3103: -- the following two fields are not filled in because they are derived.
3104: -- ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.pa_notification_id , p_sf52rec.pa_notification_id );
3105: -- ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.noa_family_code , p_sf52rec.noa_family_code );
3106: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.academic_discipline , p_sf52rec.academic_discipline );

Line 3124: hr_utility.set_location('pre: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,6);

3120: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.duty_station_id , p_sf52rec.duty_station_id );
3121: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.duty_station_location_id , p_sf52rec.duty_station_location_id );
3122: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.education_level , p_sf52rec.education_level );
3123: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.effective_date , p_sf52rec.effective_date );
3124: hr_utility.set_location('pre: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,6);
3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);
3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );

Line 3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);

3121: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.duty_station_location_id , p_sf52rec.duty_station_location_id );
3122: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.education_level , p_sf52rec.education_level );
3123: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.effective_date , p_sf52rec.effective_date );
3124: hr_utility.set_location('pre: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,6);
3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);
3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);

Line 3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);

3122: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.education_level , p_sf52rec.education_level );
3123: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.effective_date , p_sf52rec.effective_date );
3124: hr_utility.set_location('pre: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,6);
3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);
3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);

Line 3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);

3123: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.effective_date , p_sf52rec.effective_date );
3124: hr_utility.set_location('pre: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,6);
3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);
3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);

Line 3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);

3125: hr_utility.set_location('pre: rec assignment id=' || p_sf52rec.employee_assignment_id,7);
3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);

Line 3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);

3126: hr_utility.set_location('pre: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);
3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);

Line 3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);

3127: hr_utility.set_location('pre: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);
3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);
3135: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_date_of_birth , p_sf52rec.employee_date_of_birth );

Line 3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);

3128: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_assignment_id , p_sf52rec.employee_assignment_id );
3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);
3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);
3135: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_date_of_birth , p_sf52rec.employee_date_of_birth );
3136: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_dept_or_agency , p_sf52rec.employee_dept_or_agency );

Line 3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);

3129: hr_utility.set_location('post: rec_correct assignment id=' || p_sf52rec_correct.employee_assignment_id,8);
3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);
3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);
3135: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_date_of_birth , p_sf52rec.employee_date_of_birth );
3136: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_dept_or_agency , p_sf52rec.employee_dept_or_agency );
3137: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_first_name , p_sf52rec.employee_first_name );

Line 3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);

3130: hr_utility.set_location('post: rec assignment id=' || p_sf52rec.employee_assignment_id,9);
3131: hr_utility.set_location('post: rec_correct pa_request id=' || p_sf52rec_correct.pa_request_id,6);
3132: hr_utility.set_location('post: rec pa_request id=' || p_sf52rec.pa_request_id,7);
3133: hr_utility.set_location('post: national_identifier=' || p_sf52rec.employee_national_identifier,7);
3134: hr_utility.set_location('post: reccorrect national_identifier =' || p_sf52rec_correct.employee_national_identifier,7);
3135: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_date_of_birth , p_sf52rec.employee_date_of_birth );
3136: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_dept_or_agency , p_sf52rec.employee_dept_or_agency );
3137: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_first_name , p_sf52rec.employee_first_name );
3138: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.employee_last_name , p_sf52rec.employee_last_name );

Line 3172: hr_utility.set_location('correct ' || p_sf52rec_correct.from_pay_plan,1);

3168: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_occ_code , p_sf52rec.from_occ_code );
3169: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_office_symbol , p_sf52rec.from_office_symbol );
3170: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_other_pay_amount , p_sf52rec.from_other_pay_amount );
3171: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_pay_basis , p_sf52rec.from_pay_basis );
3172: hr_utility.set_location('correct ' || p_sf52rec_correct.from_pay_plan,1);
3173: hr_utility.set_location('sf52rec ' || p_sf52rec.from_pay_plan,1);
3174: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_pay_plan , p_sf52rec.from_pay_plan );
3175: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_position_id , p_sf52rec.from_position_id );
3176: -- this is informational only and is not needed

Line 3173: hr_utility.set_location('sf52rec ' || p_sf52rec.from_pay_plan,1);

3169: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_office_symbol , p_sf52rec.from_office_symbol );
3170: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_other_pay_amount , p_sf52rec.from_other_pay_amount );
3171: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_pay_basis , p_sf52rec.from_pay_basis );
3172: hr_utility.set_location('correct ' || p_sf52rec_correct.from_pay_plan,1);
3173: hr_utility.set_location('sf52rec ' || p_sf52rec.from_pay_plan,1);
3174: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_pay_plan , p_sf52rec.from_pay_plan );
3175: ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_position_id , p_sf52rec.from_position_id );
3176: -- this is informational only and is not needed
3177: -- ghr_history_conv_rg.copy_field_value( p_sf52rec_correct.from_position_name , p_sf52rec.from_position_name );

Line 3276: hr_utility.set_location(' Position id changed :'||l_proc, 20);

3272:
3273: -- the following fields should only be copied if the position_id changed, otherwise original values should be
3274: -- retained.
3275: if ( p_sf52rec_correct.to_position_id is not null ) then
3276: hr_utility.set_location(' Position id changed :'||l_proc, 20);
3277: p_sf52rec.to_position_id := p_sf52rec_correct.to_position_id ;
3278: p_sf52rec.to_organization_id := p_sf52rec_correct.to_organization_id ;
3279: p_sf52rec.to_pay_plan := p_sf52rec_correct.to_pay_plan ;
3280: p_sf52rec.to_position_title := p_sf52rec_correct.to_position_title ;

Line 3324: hr_utility.set_location(' Work Schedule changed :'||l_proc, 30);

3320: -- work_schedule and part_time_hours are interdependent, part_time_hours should also
3321: -- be copied when work_schedule changes.
3322: if ( p_sf52rec_correct.work_schedule <> p_sf52rec.work_schedule
3323: AND p_sf52rec_correct.work_schedule is not null ) then
3324: hr_utility.set_location(' Work Schedule changed :'||l_proc, 30);
3325: p_sf52rec.work_schedule := p_sf52rec_correct.work_schedule ;
3326: p_sf52rec.part_time_hours := p_sf52rec_correct.part_time_hours ;
3327: elsif (p_sf52rec_correct.part_time_hours <> p_sf52rec.part_time_hours) then
3328: hr_utility.set_location(' Part Time hours changed :'||l_proc, 30);

Line 3328: hr_utility.set_location(' Part Time hours changed :'||l_proc, 30);

3324: hr_utility.set_location(' Work Schedule changed :'||l_proc, 30);
3325: p_sf52rec.work_schedule := p_sf52rec_correct.work_schedule ;
3326: p_sf52rec.part_time_hours := p_sf52rec_correct.part_time_hours ;
3327: elsif (p_sf52rec_correct.part_time_hours <> p_sf52rec.part_time_hours) then
3328: hr_utility.set_location(' Part Time hours changed :'||l_proc, 30);
3329: p_sf52rec.part_time_hours := p_sf52rec_correct.part_time_hours ;
3330: end if;
3331:
3332: if (p_corr_pa_request_id = p_sf52rec_correct.pa_request_id) then

Line 3335: hr_utility.set_location(' Last correction :'||l_proc, 35);

3331:
3332: if (p_corr_pa_request_id = p_sf52rec_correct.pa_request_id) then
3333: -- these fields should retain value of correction currently being processed. Any values from previous
3334: -- corrections are ignored.
3335: hr_utility.set_location(' Last correction :'||l_proc, 35);
3336: p_sf52rec.routing_group_id := p_sf52rec_correct.routing_group_id ;
3337: p_sf52rec.proposed_effective_asap_flag := p_sf52rec_correct.proposed_effective_asap_flag ;
3338: p_sf52rec.additional_info_person_id := p_sf52rec_correct.additional_info_person_id ;
3339: p_sf52rec.additional_info_tel_number := p_sf52rec_correct.additional_info_tel_number ;

Line 3429: hr_utility.set_location(' Leaving:'||l_proc, 40);

3425: ghr_history_conv_rg.copy_field_value(p_sf52rec_correct.to_staffing_diff_percentage,
3426: p_sf52rec.to_staffing_diff_percentage);
3427: end if;
3428:
3429: hr_utility.set_location(' Leaving:'||l_proc, 40);
3430: Exception when others then
3431: --
3432: -- Reset IN OUT parameters and set OUT parameters
3433: --

Line 3554: hr_utility.set_location('Entering:'|| l_proc, 5);

3550:
3551: l_shadow_data ghr_pa_request_shadow%rowtype;
3552: l_proc varchar2(30):='apply_noa_corrections';
3553: begin
3554: hr_utility.set_location('Entering:'|| l_proc, 5);
3555: l_sf52_data_result := p_sf52_data_result;
3556: ghr_history_api.get_g_session_var(l_session_var);
3557: -- loop through all corrections in the correction chain, incrementally applying them by
3558: -- calling apply_corrections procedure.

Line 3573: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);

3569: if ( l_sf52_cursor_step_indx = 1) then
3570: --Bug # 6356058 start
3571: l_prev_request_id := l_sf52_data_step.pa_request_id;
3572: --Bug # 6356058 end
3573: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
3574: l_sf52_data_orig := l_sf52_data_step;
3575: p_sf52_data_result := l_sf52_data_step;
3576: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
3577: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);

Line 3576: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);

3572: --Bug # 6356058 end
3573: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
3574: l_sf52_data_orig := l_sf52_data_step;
3575: p_sf52_data_result := l_sf52_data_step;
3576: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
3577: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
3578:
3579: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
3580: -- .47

Line 3577: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);

3573: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
3574: l_sf52_data_orig := l_sf52_data_step;
3575: p_sf52_data_result := l_sf52_data_step;
3576: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
3577: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
3578:
3579: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
3580: -- .47
3581: -- refresh root sf52 and its correction

Line 3579: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);

3575: p_sf52_data_result := l_sf52_data_step;
3576: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
3577: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
3578:
3579: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
3580: -- .47
3581: -- refresh root sf52 and its correction
3582: -- get pa_history_id for the root pa_request_id
3583: open c_get_hist_id( l_sf52_data_step.pa_request_id);

Line 3623: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);

3619: -- check if original action in correction chain was a dual action. If so, determine which of
3620: -- the two actions this correction is for and call ghr_process_sf52.assign_new_rg to null out columns not having
3621: -- to do with the noa we are correcting.
3622: if (p_sf52_data_result.second_noa_id is not null) then
3623: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);
3624: if (p_sf52_data.second_noa_id = p_sf52_data_result.second_noa_id) then
3625: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);
3626: ghr_process_sf52.assign_new_rg(p_action_num => 2,
3627: p_pa_req => p_sf52_data_result);

Line 3625: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);

3621: -- to do with the noa we are correcting.
3622: if (p_sf52_data_result.second_noa_id is not null) then
3623: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);
3624: if (p_sf52_data.second_noa_id = p_sf52_data_result.second_noa_id) then
3625: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);
3626: ghr_process_sf52.assign_new_rg(p_action_num => 2,
3627: p_pa_req => p_sf52_data_result);
3628: else
3629: hr_utility.set_location('Correcting first action in dual action:'|| l_proc, 13);

Line 3629: hr_utility.set_location('Correcting first action in dual action:'|| l_proc, 13);

3625: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);
3626: ghr_process_sf52.assign_new_rg(p_action_num => 2,
3627: p_pa_req => p_sf52_data_result);
3628: else
3629: hr_utility.set_location('Correcting first action in dual action:'|| l_proc, 13);
3630: ghr_process_sf52.assign_new_rg(p_action_num => 1,
3631: p_pa_req => p_sf52_data_result);
3632: -- if first action is 893, then we need to derive to_columns as both actions of
3633: -- the dual action potentially could have changed the to fields (in particular,

Line 3653: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);

3649: p_sf52_data_result.personnel_office_id := NULL;
3650: p_sf52_data_result.to_office_symbol := NULL;
3651: else
3652: l_retro_pa_request_id := NULL;
3653: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);
3654: -- all corrections will have the original sf52 information in the 2nd noa columns, so
3655: -- copy that information to 1st noa columns.
3656: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3657: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);

Line 3656: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);

3652: l_retro_pa_request_id := NULL;
3653: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);
3654: -- all corrections will have the original sf52 information in the 2nd noa columns, so
3655: -- copy that information to 1st noa columns.
3656: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3657: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
3658: -- null the second noa columns since we don't want anything to be done with these now.
3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);

Line 3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);

3655: -- copy that information to 1st noa columns.
3656: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3657: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
3658: -- null the second noa columns since we don't want anything to be done with these now.
3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);

Line 3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);

3657: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
3658: -- null the second noa columns since we don't want anything to be done with these now.
3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
3664: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
3665: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',

Line 3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);

3658: -- null the second noa columns since we don't want anything to be done with these now.
3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
3664: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
3665: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
3666: l_sf52_data_step );

Line 3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);

3659: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
3664: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
3665: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
3666: l_sf52_data_step );
3667: ghr_process_sf52.print_sf52('result bef copy_ia_rec_on_result',

Line 3664: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);

3660: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
3661: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
3662: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
3663: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
3664: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
3665: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
3666: l_sf52_data_step );
3667: ghr_process_sf52.print_sf52('result bef copy_ia_rec_on_result',
3668: p_sf52_data_result );

Line 3676: hr_utility.set_location('Inside the orig_details for loop' ,15);

3672: -- Original action from position_id = to position id
3673: -- Fetch the original action details
3674: FOR c_orig_det_rec in c_orig_details_for_ia
3675: LOOP
3676: hr_utility.set_location('Inside the orig_details for loop' ,15);
3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

Line 3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);

3673: -- Fetch the original action details
3674: FOR c_orig_det_rec in c_orig_details_for_ia
3675: LOOP
3676: hr_utility.set_location('Inside the orig_details for loop' ,15);
3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

Line 3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);

3674: FOR c_orig_det_rec in c_orig_details_for_ia
3675: LOOP
3676: hr_utility.set_location('Inside the orig_details for loop' ,15);
3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

Line 3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);

3675: LOOP
3676: hr_utility.set_location('Inside the orig_details for loop' ,15);
3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
3683: --BUG #7216635 added the parameter p_noa_id_correct

Line 3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

3676: hr_utility.set_location('Inside the orig_details for loop' ,15);
3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
3683: --BUG #7216635 added the parameter p_noa_id_correct
3684: GHR_APPROVED_PA_REQUESTS.determine_ia(

Line 3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

3677: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
3683: --BUG #7216635 added the parameter p_noa_id_correct
3684: GHR_APPROVED_PA_REQUESTS.determine_ia(
3685: p_pa_request_id => c_orig_det_rec.pa_request_id,

Line 3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

3678: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
3679: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
3680: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
3681: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
3682: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
3683: --BUG #7216635 added the parameter p_noa_id_correct
3684: GHR_APPROVED_PA_REQUESTS.determine_ia(
3685: p_pa_request_id => c_orig_det_rec.pa_request_id,
3686: p_pa_notification_id => c_orig_det_rec.pa_notification_id,

Line 3694: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);

3690: p_retro_pa_request_id => l_retro_pa_request_id,
3691: p_retro_eff_date => l_retro_eff_date,
3692: p_retro_first_noa => l_retro_first_noa,
3693: p_retro_second_noa => l_retro_second_noa);
3694: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);
3695: -- Bug#2521744 Splitting the single if condition into 2 separate if conditions.
3696: IF l_retro_eff_date is NOT NULL THEN
3697: IF c_orig_det_rec.from_position_id
3698: = c_orig_det_rec.to_position_id THEN

Line 3700: hr_utility.set_location('Its a Intervening Action ' ,16);

3696: IF l_retro_eff_date is NOT NULL THEN
3697: IF c_orig_det_rec.from_position_id
3698: = c_orig_det_rec.to_position_id THEN
3699: -- copy the from details
3700: hr_utility.set_location('Its a Intervening Action ' ,16);
3701: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);
3702:
3703: get_sf52_to_details_for_ia
3704: (p_pa_request_id => p_sf52_data.pa_request_id,

Line 3701: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);

3697: IF c_orig_det_rec.from_position_id
3698: = c_orig_det_rec.to_position_id THEN
3699: -- copy the from details
3700: hr_utility.set_location('Its a Intervening Action ' ,16);
3701: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);
3702:
3703: get_sf52_to_details_for_ia
3704: (p_pa_request_id => p_sf52_data.pa_request_id,
3705: p_retro_eff_date => l_retro_eff_date,

Line 3760: hr_utility.set_location('Out side the orig_details for loop' ,17);

3756: --bug #6356058 end
3757: END LOOP;
3758: --bug #6356058
3759: l_prev_request_id := l_sf52_data_step.pa_request_id;
3760: hr_utility.set_location('Out side the orig_details for loop' ,17);
3761: -- End Intervening Actions Processing
3762:
3763: apply_correction( p_sf52rec_correct => l_sf52_data_step,
3764: p_corr_pa_request_id => p_sf52_data.pa_request_id,

Line 3794: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);

3790: if p_sf52_data_result.to_other_pay_amount = 0 then
3791: p_sf52_data_result.to_other_pay_amount := null;
3792: end if;
3793: end if;
3794: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
3795: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
3796: end if;
3797: end loop;
3798: close l_sf52_cursor;

Line 3795: hr_utility.set_location('Applied corrections :'|| l_proc, 20);

3791: p_sf52_data_result.to_other_pay_amount := null;
3792: end if;
3793: end if;
3794: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
3795: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
3796: end if;
3797: end loop;
3798: close l_sf52_cursor;
3799:

Line 3827: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);

3823: ghr_history_api.reinit_g_session_var;
3824: ghr_history_api.set_g_session_var(l_session_var);
3825:
3826: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
3827: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
3828: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
3829: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
3830: --Bug# 5638869
3831: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;

Line 3828: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);

3824: ghr_history_api.set_g_session_var(l_session_var);
3825:
3826: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
3827: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
3828: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
3829: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
3830: --Bug# 5638869
3831: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;
3832: l_pos_ei_grade_data.poei_information3 := p_sf52_data_result.to_grade_id;

Line 3836: hr_utility.set_location('GL: Inside setting pay plan grade',60);

3832: l_pos_ei_grade_data.poei_information3 := p_sf52_data_result.to_grade_id;
3833: --Bug# 5638869
3834: FOR c_grade_kff_rec IN c_grade_kff (p_sf52_data_result.to_grade_id)
3835: LOOP
3836: hr_utility.set_location('GL: Inside setting pay plan grade',60);
3837: p_sf52_data_result.to_pay_plan := c_grade_kff_rec.segment1 ;
3838: p_sf52_data_result.to_grade_or_level := c_grade_kff_rec.segment2;
3839: EXIT;
3840: END LOOP;

Line 3846: hr_utility.set_location(' Leaving:'||l_proc, 25);

3842: END IF;
3843: END IF;
3844: -- Bug#5435374 End of the fix.
3845:
3846: hr_utility.set_location(' Leaving:'||l_proc, 25);
3847: Exception when others then
3848: --
3849: -- Reset IN OUT parameters and set OUT parameters
3850: --

Line 3904: hr_utility.set_location('Entering '|| l_proc,5);

3900: p_last_row out nocopy boolean,
3901: p_cannot_cancel out nocopy boolean) IS
3902: l_proc varchar2(72) := 'what_to_do?';
3903: BEGIN
3904: hr_utility.set_location('Entering '|| l_proc,5);
3905: -- initialize output parms.
3906: p_can_delete := FALSE;
3907: p_last_row := FALSE;
3908: p_cannot_cancel := FALSE;

Line 3910: hr_utility.set_location('Datetrack table '|| l_proc,10);

3906: p_can_delete := FALSE;
3907: p_last_row := FALSE;
3908: p_cannot_cancel := FALSE;
3909: if (p_datetrack_table = TRUE) then
3910: hr_utility.set_location('Datetrack table '|| l_proc,10);
3911: -- this is a datetrack table
3912: if (p_pre_record_exists = FALSE) then
3913: hr_utility.set_location('no pre'|| l_proc,15);
3914: if (p_interv_on_eff_date = FALSE) then

Line 3913: hr_utility.set_location('no pre'|| l_proc,15);

3909: if (p_datetrack_table = TRUE) then
3910: hr_utility.set_location('Datetrack table '|| l_proc,10);
3911: -- this is a datetrack table
3912: if (p_pre_record_exists = FALSE) then
3913: hr_utility.set_location('no pre'|| l_proc,15);
3914: if (p_interv_on_eff_date = FALSE) then
3915: hr_utility.set_location('no following records on same date'|| l_proc,20);
3916: if (p_interv_on_table = TRUE) then
3917: -- datetrack tables with no pre cannot be cancelled if they have following records in history.

Line 3915: hr_utility.set_location('no following records on same date'|| l_proc,20);

3911: -- this is a datetrack table
3912: if (p_pre_record_exists = FALSE) then
3913: hr_utility.set_location('no pre'|| l_proc,15);
3914: if (p_interv_on_eff_date = FALSE) then
3915: hr_utility.set_location('no following records on same date'|| l_proc,20);
3916: if (p_interv_on_table = TRUE) then
3917: -- datetrack tables with no pre cannot be cancelled if they have following records in history.
3918: hr_utility.set_location(' Following records on later date'|| l_proc,45);
3919: p_cannot_cancel := TRUE;

Line 3918: hr_utility.set_location(' Following records on later date'|| l_proc,45);

3914: if (p_interv_on_eff_date = FALSE) then
3915: hr_utility.set_location('no following records on same date'|| l_proc,20);
3916: if (p_interv_on_table = TRUE) then
3917: -- datetrack tables with no pre cannot be cancelled if they have following records in history.
3918: hr_utility.set_location(' Following records on later date'|| l_proc,45);
3919: p_cannot_cancel := TRUE;
3920: else
3921: hr_utility.set_location('NO Following records on later date'|| l_proc,70);
3922: -- there is no pre and no following records, so we CAN cancel and we CAN delete. And this is

Line 3921: hr_utility.set_location('NO Following records on later date'|| l_proc,70);

3917: -- datetrack tables with no pre cannot be cancelled if they have following records in history.
3918: hr_utility.set_location(' Following records on later date'|| l_proc,45);
3919: p_cannot_cancel := TRUE;
3920: else
3921: hr_utility.set_location('NO Following records on later date'|| l_proc,70);
3922: -- there is no pre and no following records, so we CAN cancel and we CAN delete. And this is
3923: -- the last row in history.
3924: p_can_delete := TRUE;
3925: p_last_row := TRUE;

Line 3928: hr_utility.set_location('Following records on same date'|| l_proc,75);

3924: p_can_delete := TRUE;
3925: p_last_row := TRUE;
3926: end if;
3927: else
3928: hr_utility.set_location('Following records on same date'|| l_proc,75);
3929: -- datetrack tables with no pre cannot be cancelled if they have following records in history.
3930: p_cannot_cancel := TRUE;
3931: end if;
3932: else

Line 3934: hr_utility.set_location('has pre'|| l_proc,25);

3930: p_cannot_cancel := TRUE;
3931: end if;
3932: else
3933: -- there is a pre_record
3934: hr_utility.set_location('has pre'|| l_proc,25);
3935: if (p_interv_on_eff_date = FALSE) then
3936: hr_utility.set_location(' no following recs on same date'|| l_proc,30);
3937: if (p_rec_created_flag = TRUE) then
3938: hr_utility.set_location('record created = TRUE'|| l_proc,35);

Line 3936: hr_utility.set_location(' no following recs on same date'|| l_proc,30);

3932: else
3933: -- there is a pre_record
3934: hr_utility.set_location('has pre'|| l_proc,25);
3935: if (p_interv_on_eff_date = FALSE) then
3936: hr_utility.set_location(' no following recs on same date'|| l_proc,30);
3937: if (p_rec_created_flag = TRUE) then
3938: hr_utility.set_location('record created = TRUE'|| l_proc,35);
3939: p_can_delete := TRUE;
3940: end if;

Line 3938: hr_utility.set_location('record created = TRUE'|| l_proc,35);

3934: hr_utility.set_location('has pre'|| l_proc,25);
3935: if (p_interv_on_eff_date = FALSE) then
3936: hr_utility.set_location(' no following recs on same date'|| l_proc,30);
3937: if (p_rec_created_flag = TRUE) then
3938: hr_utility.set_location('record created = TRUE'|| l_proc,35);
3939: p_can_delete := TRUE;
3940: end if;
3941: if (p_interv_on_table = FALSE) then
3942: hr_utility.set_location(' no following recs at all'|| l_proc,40);

Line 3942: hr_utility.set_location(' no following recs at all'|| l_proc,40);

3938: hr_utility.set_location('record created = TRUE'|| l_proc,35);
3939: p_can_delete := TRUE;
3940: end if;
3941: if (p_interv_on_table = FALSE) then
3942: hr_utility.set_location(' no following recs at all'|| l_proc,40);
3943: p_last_row := TRUE;
3944: end if;
3945: end if;
3946: end if;

Line 3949: hr_utility.set_location(' non datetrack table'|| l_proc,50);

3945: end if;
3946: end if;
3947: else
3948: -- this is a non datetrack table
3949: hr_utility.set_location(' non datetrack table'|| l_proc,50);
3950: -- assume there is always a pre-record for datetrack tables. It is just all nulls.
3951: if (p_interv_on_table = FALSE) then
3952: hr_utility.set_location('no following recs '|| l_proc,60);
3953: if (p_rec_created_flag = TRUE) then

Line 3952: hr_utility.set_location('no following recs '|| l_proc,60);

3948: -- this is a non datetrack table
3949: hr_utility.set_location(' non datetrack table'|| l_proc,50);
3950: -- assume there is always a pre-record for datetrack tables. It is just all nulls.
3951: if (p_interv_on_table = FALSE) then
3952: hr_utility.set_location('no following recs '|| l_proc,60);
3953: if (p_rec_created_flag = TRUE) then
3954: hr_utility.set_location('record created = Y '|| l_proc,65);
3955: p_can_delete := TRUE;
3956: p_last_row := TRUE;

Line 3954: hr_utility.set_location('record created = Y '|| l_proc,65);

3950: -- assume there is always a pre-record for datetrack tables. It is just all nulls.
3951: if (p_interv_on_table = FALSE) then
3952: hr_utility.set_location('no following recs '|| l_proc,60);
3953: if (p_rec_created_flag = TRUE) then
3954: hr_utility.set_location('record created = Y '|| l_proc,65);
3955: p_can_delete := TRUE;
3956: p_last_row := TRUE;
3957: end if;
3958: end if;

Line 4019: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4015: l_eff_start_date date;
4016: l_eff_end_date date;
4017: l_proc varchar2(30):='delete_element_entry';
4018: Begin
4019: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4020: hr_utility.set_location( ' info 1 : ' || p_hist_rec.information1 || l_proc, 11);
4021: hr_utility.set_location( ' info 2 : ' || p_hist_rec.information2 || l_proc, 12);
4022:
4023: p_cannot_cancel := FALSE;

Line 4020: hr_utility.set_location( ' info 1 : ' || p_hist_rec.information1 || l_proc, 11);

4016: l_eff_end_date date;
4017: l_proc varchar2(30):='delete_element_entry';
4018: Begin
4019: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4020: hr_utility.set_location( ' info 1 : ' || p_hist_rec.information1 || l_proc, 11);
4021: hr_utility.set_location( ' info 2 : ' || p_hist_rec.information2 || l_proc, 12);
4022:
4023: p_cannot_cancel := FALSE;
4024: open c_elmt (p_hist_rec.information1,

Line 4021: hr_utility.set_location( ' info 2 : ' || p_hist_rec.information2 || l_proc, 12);

4017: l_proc varchar2(30):='delete_element_entry';
4018: Begin
4019: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4020: hr_utility.set_location( ' info 1 : ' || p_hist_rec.information1 || l_proc, 11);
4021: hr_utility.set_location( ' info 2 : ' || p_hist_rec.information2 || l_proc, 12);
4022:
4023: p_cannot_cancel := FALSE;
4024: open c_elmt (p_hist_rec.information1,
4025: to_date(p_hist_rec.information2, ghr_history_conv_rg.g_hist_date_format));

Line 4028: hr_utility.set_location( l_proc, 20);

4024: open c_elmt (p_hist_rec.information1,
4025: to_date(p_hist_rec.information2, ghr_history_conv_rg.g_hist_date_format));
4026: fetch c_elmt into l_c_elmt;
4027: if c_elmt%notfound then
4028: hr_utility.set_location( l_proc, 20);
4029: close c_elmt;
4030: p_cannot_cancel := TRUE;
4031: else
4032: close c_elmt;

Line 4033: hr_utility.set_location( l_proc, 30);

4029: close c_elmt;
4030: p_cannot_cancel := TRUE;
4031: else
4032: close c_elmt;
4033: hr_utility.set_location( l_proc, 30);
4034:
4035: hr_utility.set_location( 'effective date ' || p_hist_rec.information2, 31);
4036: hr_utility.set_location( 'element entry id ' || l_c_elmt.element_entry_id, 32);
4037: hr_utility.set_location( 'ovn ' || l_c_elmt.object_version_number, 33);

Line 4035: hr_utility.set_location( 'effective date ' || p_hist_rec.information2, 31);

4031: else
4032: close c_elmt;
4033: hr_utility.set_location( l_proc, 30);
4034:
4035: hr_utility.set_location( 'effective date ' || p_hist_rec.information2, 31);
4036: hr_utility.set_location( 'element entry id ' || l_c_elmt.element_entry_id, 32);
4037: hr_utility.set_location( 'ovn ' || l_c_elmt.object_version_number, 33);
4038:
4039: PY_element_entry_api.delete_element_entry(

Line 4036: hr_utility.set_location( 'element entry id ' || l_c_elmt.element_entry_id, 32);

4032: close c_elmt;
4033: hr_utility.set_location( l_proc, 30);
4034:
4035: hr_utility.set_location( 'effective date ' || p_hist_rec.information2, 31);
4036: hr_utility.set_location( 'element entry id ' || l_c_elmt.element_entry_id, 32);
4037: hr_utility.set_location( 'ovn ' || l_c_elmt.object_version_number, 33);
4038:
4039: PY_element_entry_api.delete_element_entry(
4040: p_datetrack_delete_mode => nvl(p_del_mode, hr_api.g_delete_next_change),

Line 4037: hr_utility.set_location( 'ovn ' || l_c_elmt.object_version_number, 33);

4033: hr_utility.set_location( l_proc, 30);
4034:
4035: hr_utility.set_location( 'effective date ' || p_hist_rec.information2, 31);
4036: hr_utility.set_location( 'element entry id ' || l_c_elmt.element_entry_id, 32);
4037: hr_utility.set_location( 'ovn ' || l_c_elmt.object_version_number, 33);
4038:
4039: PY_element_entry_api.delete_element_entry(
4040: p_datetrack_delete_mode => nvl(p_del_mode, hr_api.g_delete_next_change),
4041: p_effective_date => to_date(p_hist_rec.information2, ghr_history_conv_rg.g_hist_date_format),

Line 4048: hr_utility.set_location( 'Warning ' || l_proc, 39);

4044: p_effective_start_date => l_eff_start_date,
4045: p_effective_end_date => l_eff_end_date,
4046: p_delete_warning => l_del_warning);
4047: if l_del_warning then
4048: hr_utility.set_location( 'Warning ' || l_proc, 39);
4049: end if;
4050:
4051: --added
4052: end if;

Line 4053: hr_utility.set_location( 'Leaving : ' || l_proc, 40);

4049: end if;
4050:
4051: --added
4052: end if;
4053: hr_utility.set_location( 'Leaving : ' || l_proc, 40);
4054: exception when others then
4055: --
4056: -- Reset IN OUT parameters and set OUT parameters
4057: --

Line 4194: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4190: --*****************************************************************************
4191: --
4192: BEGIN
4193: --
4194: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4195: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4196: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4197: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4198: --

Line 4195: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);

4191: --
4192: BEGIN
4193: --
4194: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4195: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4196: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4197: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4198: --
4199: --Payroll Integration Changes

Line 4196: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);

4192: BEGIN
4193: --
4194: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4195: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4196: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4197: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4198: --
4199: --Payroll Integration Changes
4200: --

Line 4197: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);

4193: --
4194: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4195: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4196: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4197: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4198: --
4199: --Payroll Integration Changes
4200: --
4201: FOR bg_rec IN Cur_bg(p_hist_pre.person_id,

Line 4212: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);

4208: ll_bg_id := fnd_profile.value('PER_BUSINESS_GROUP_ID');
4209: END IF;
4210:
4211:
4212: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4213: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4214: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4215:
4216: l_eff_date := to_date(p_hist_pre.information2, ghr_history_api.g_hist_date_format);

Line 4213: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);

4209: END IF;
4210:
4211:
4212: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4213: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4214: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4215:
4216: l_eff_date := to_date(p_hist_pre.information2, ghr_history_api.g_hist_date_format);
4217: hr_utility.set_location('Converted eff Date: ' || l_eff_date || l_proc,18);

Line 4214: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);

4210:
4211:
4212: hr_utility.set_location( 'information4 : ' || p_hist_pre.information4 || l_proc, 11);
4213: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4214: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4215:
4216: l_eff_date := to_date(p_hist_pre.information2, ghr_history_api.g_hist_date_format);
4217: hr_utility.set_location('Converted eff Date: ' || l_eff_date || l_proc,18);
4218: -- get input value name.

Line 4217: hr_utility.set_location('Converted eff Date: ' || l_eff_date || l_proc,18);

4213: hr_utility.set_location( 'Effective Date : ' || p_hist_pre.information2 || l_proc, 12);
4214: hr_utility.set_location( 'Business Group id : ' || ll_bg_id, 100000002);
4215:
4216: l_eff_date := to_date(p_hist_pre.information2, ghr_history_api.g_hist_date_format);
4217: hr_utility.set_location('Converted eff Date: ' || l_eff_date || l_proc,18);
4218: -- get input value name.
4219: open c_input_value( cp_input_value_id => p_hist_pre.information4,
4220: cp_eff_date => l_eff_date,
4221: p_bg_id => ll_bg_id);

Line 4222: hr_utility.set_location('After open cursor: ' || l_proc,19);

4218: -- get input value name.
4219: open c_input_value( cp_input_value_id => p_hist_pre.information4,
4220: cp_eff_date => l_eff_date,
4221: p_bg_id => ll_bg_id);
4222: hr_utility.set_location('After open cursor: ' || l_proc,19);
4223: fetch c_input_value into l_ipv_name;
4224: hr_utility.set_location('After fetch cursor: ' || l_proc,21);
4225: if c_input_value%NOTFOUND then
4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);

Line 4224: hr_utility.set_location('After fetch cursor: ' || l_proc,21);

4220: cp_eff_date => l_eff_date,
4221: p_bg_id => ll_bg_id);
4222: hr_utility.set_location('After open cursor: ' || l_proc,19);
4223: fetch c_input_value into l_ipv_name;
4224: hr_utility.set_location('After fetch cursor: ' || l_proc,21);
4225: if c_input_value%NOTFOUND then
4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);
4227: close c_input_value;
4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');

Line 4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);

4222: hr_utility.set_location('After open cursor: ' || l_proc,19);
4223: fetch c_input_value into l_ipv_name;
4224: hr_utility.set_location('After fetch cursor: ' || l_proc,21);
4225: if c_input_value%NOTFOUND then
4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);
4227: close c_input_value;
4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');
4229: hr_utility.raise_error;
4230: end if;

Line 4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');

4224: hr_utility.set_location('After fetch cursor: ' || l_proc,21);
4225: if c_input_value%NOTFOUND then
4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);
4227: close c_input_value;
4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');
4229: hr_utility.raise_error;
4230: end if;
4231: close c_input_value;
4232: hr_utility.set_location( 'Open element name cursor: ' || l_proc, 30);

Line 4229: hr_utility.raise_error;

4225: if c_input_value%NOTFOUND then
4226: hr_utility.set_location( 'input_value_name notfound : ' || l_proc, 20);
4227: close c_input_value;
4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');
4229: hr_utility.raise_error;
4230: end if;
4231: close c_input_value;
4232: hr_utility.set_location( 'Open element name cursor: ' || l_proc, 30);
4233: -- get element name.

Line 4232: hr_utility.set_location( 'Open element name cursor: ' || l_proc, 30);

4228: hr_utility.set_message(8301,'GHR_38270_INPUT_VALUE_NAME_NF');
4229: hr_utility.raise_error;
4230: end if;
4231: close c_input_value;
4232: hr_utility.set_location( 'Open element name cursor: ' || l_proc, 30);
4233: -- get element name.
4234: open c_element_name( cp_element_entry_id => p_hist_pre.information5,
4235: cp_eff_date => l_eff_date,
4236: p_bg_id => ll_bg_id);

Line 4237: hr_utility.set_location('Fetch element name cursor: ' || l_proc, 31);

4233: -- get element name.
4234: open c_element_name( cp_element_entry_id => p_hist_pre.information5,
4235: cp_eff_date => l_eff_date,
4236: p_bg_id => ll_bg_id);
4237: hr_utility.set_location('Fetch element name cursor: ' || l_proc, 31);
4238: fetch c_element_name into l_element_name;
4239: hr_utility.set_location('After Fetch element name cursor: ' || l_proc, 32);
4240: if c_element_name%NOTFOUND then
4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);

Line 4239: hr_utility.set_location('After Fetch element name cursor: ' || l_proc, 32);

4235: cp_eff_date => l_eff_date,
4236: p_bg_id => ll_bg_id);
4237: hr_utility.set_location('Fetch element name cursor: ' || l_proc, 31);
4238: fetch c_element_name into l_element_name;
4239: hr_utility.set_location('After Fetch element name cursor: ' || l_proc, 32);
4240: if c_element_name%NOTFOUND then
4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);
4242: close c_element_name;
4243: hr_utility.set_message(8301,'GHR_38271_ELEMENT_NAME_NOTFND');

Line 4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);

4237: hr_utility.set_location('Fetch element name cursor: ' || l_proc, 31);
4238: fetch c_element_name into l_element_name;
4239: hr_utility.set_location('After Fetch element name cursor: ' || l_proc, 32);
4240: if c_element_name%NOTFOUND then
4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);
4242: close c_element_name;
4243: hr_utility.set_message(8301,'GHR_38271_ELEMENT_NAME_NOTFND');
4244: hr_utility.raise_error;
4245: end if;

Line 4243: hr_utility.set_message(8301,'GHR_38271_ELEMENT_NAME_NOTFND');

4239: hr_utility.set_location('After Fetch element name cursor: ' || l_proc, 32);
4240: if c_element_name%NOTFOUND then
4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);
4242: close c_element_name;
4243: hr_utility.set_message(8301,'GHR_38271_ELEMENT_NAME_NOTFND');
4244: hr_utility.raise_error;
4245: end if;
4246: close c_element_name;
4247: -- get assignment id.

Line 4244: hr_utility.raise_error;

4240: if c_element_name%NOTFOUND then
4241: hr_utility.set_location( 'element_name notfound : ' || l_proc, 40);
4242: close c_element_name;
4243: hr_utility.set_message(8301,'GHR_38271_ELEMENT_NAME_NOTFND');
4244: hr_utility.raise_error;
4245: end if;
4246: close c_element_name;
4247: -- get assignment id.
4248: open c_asgmt_id (cp_information1 => p_hist_pre.information1,

Line 4254: hr_utility.set_location( 'assignment_id notfound : ' || l_proc, 41);

4250: cp_information3 => p_hist_pre.information3,
4251: cp_table_name => ghr_history_api.g_eleevl_table);
4252: fetch c_asgmt_id into l_asg_id;
4253: if c_asgmt_id%NOTFOUND then
4254: hr_utility.set_location( 'assignment_id notfound : ' || l_proc, 41);
4255: close c_asgmt_id;
4256: hr_utility.set_message(8301,'GHR_38362_ASGMT_ID_NOTFND');
4257: hr_utility.raise_error;
4258: end if;

Line 4256: hr_utility.set_message(8301,'GHR_38362_ASGMT_ID_NOTFND');

4252: fetch c_asgmt_id into l_asg_id;
4253: if c_asgmt_id%NOTFOUND then
4254: hr_utility.set_location( 'assignment_id notfound : ' || l_proc, 41);
4255: close c_asgmt_id;
4256: hr_utility.set_message(8301,'GHR_38362_ASGMT_ID_NOTFND');
4257: hr_utility.raise_error;
4258: end if;
4259:
4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);

Line 4257: hr_utility.raise_error;

4253: if c_asgmt_id%NOTFOUND then
4254: hr_utility.set_location( 'assignment_id notfound : ' || l_proc, 41);
4255: close c_asgmt_id;
4256: hr_utility.set_message(8301,'GHR_38362_ASGMT_ID_NOTFND');
4257: hr_utility.raise_error;
4258: end if;
4259:
4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);
4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);

Line 4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);

4256: hr_utility.set_message(8301,'GHR_38362_ASGMT_ID_NOTFND');
4257: hr_utility.raise_error;
4258: end if;
4259:
4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);
4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);
4262: hr_utility.set_location('IPV Name: ' || l_ipv_name || l_proc, 38);
4263: -- UOM error for date input values
4264: hr_utility.set_location('p_hist_pre.information6: '

Line 4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);

4257: hr_utility.raise_error;
4258: end if;
4259:
4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);
4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);
4262: hr_utility.set_location('IPV Name: ' || l_ipv_name || l_proc, 38);
4263: -- UOM error for date input values
4264: hr_utility.set_location('p_hist_pre.information6: '
4265: || p_hist_pre.information6 || l_proc, 38);

Line 4262: hr_utility.set_location('IPV Name: ' || l_ipv_name || l_proc, 38);

4258: end if;
4259:
4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);
4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);
4262: hr_utility.set_location('IPV Name: ' || l_ipv_name || l_proc, 38);
4263: -- UOM error for date input values
4264: hr_utility.set_location('p_hist_pre.information6: '
4265: || p_hist_pre.information6 || l_proc, 38);
4266: l_value1 := p_hist_pre.information6;

Line 4264: hr_utility.set_location('p_hist_pre.information6: '

4260: hr_utility.set_location('Element Assignment ID: ' || p_hist_pre.assignment_id || l_proc, 36);
4261: hr_utility.set_location('Element name: ' || l_element_name || l_proc, 37);
4262: hr_utility.set_location('IPV Name: ' || l_ipv_name || l_proc, 38);
4263: -- UOM error for date input values
4264: hr_utility.set_location('p_hist_pre.information6: '
4265: || p_hist_pre.information6 || l_proc, 38);
4266: l_value1 := p_hist_pre.information6;
4267: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);
4268: FOR c_ipv_rec IN c_ipv(l_element_name,l_ipv_name,l_eff_date,ll_bg_id) LOOP

Line 4267: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);

4263: -- UOM error for date input values
4264: hr_utility.set_location('p_hist_pre.information6: '
4265: || p_hist_pre.information6 || l_proc, 38);
4266: l_value1 := p_hist_pre.information6;
4267: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);
4268: FOR c_ipv_rec IN c_ipv(l_element_name,l_ipv_name,l_eff_date,ll_bg_id) LOOP
4269: IF c_ipv_rec.uom = 'D' THEN
4270: l_value1 := fnd_date.date_to_displaydate(fnd_date.canonical_to_date(l_value1));
4271: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);

Line 4271: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);

4267: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);
4268: FOR c_ipv_rec IN c_ipv(l_element_name,l_ipv_name,l_eff_date,ll_bg_id) LOOP
4269: IF c_ipv_rec.uom = 'D' THEN
4270: l_value1 := fnd_date.date_to_displaydate(fnd_date.canonical_to_date(l_value1));
4271: hr_utility.set_location('l_value1: ' || l_value1 || l_proc, 38);
4272: END IF;
4273: END LOOP;
4274: ---*****************************************************************************
4275: --- Check if the element name is new element name or hard coded ele name

Line 4302: hr_utility.set_message(8301,'GHR_99999_FL_TO_UPD_ELEMENT_FOR_CANC');

4298: ,p_process_warning => l_proc_warn
4299: );
4300: /*To be included after Martin Reid's element api handles the create and update warning
4301: if l_proc_warn = FALSE then
4302: hr_utility.set_message(8301,'GHR_99999_FL_TO_UPD_ELEMENT_FOR_CANC');
4303: hr_utility.raise_error;
4304: end if;
4305: */
4306: hr_utility.set_location( 'Leaving : ' || l_proc, 50);

Line 4303: hr_utility.raise_error;

4299: );
4300: /*To be included after Martin Reid's element api handles the create and update warning
4301: if l_proc_warn = FALSE then
4302: hr_utility.set_message(8301,'GHR_99999_FL_TO_UPD_ELEMENT_FOR_CANC');
4303: hr_utility.raise_error;
4304: end if;
4305: */
4306: hr_utility.set_location( 'Leaving : ' || l_proc, 50);
4307: END update_eleentval;

Line 4306: hr_utility.set_location( 'Leaving : ' || l_proc, 50);

4302: hr_utility.set_message(8301,'GHR_99999_FL_TO_UPD_ELEMENT_FOR_CANC');
4303: hr_utility.raise_error;
4304: end if;
4305: */
4306: hr_utility.set_location( 'Leaving : ' || l_proc, 50);
4307: END update_eleentval;
4308:
4309: -- ---------------------------------------------------------------------------
4310: -- |--------------------------< delete_eleentval>-----------------------------|

Line 4350: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4346: nature_of_action_id = p_hist_rec.nature_of_action_id
4347: for update of table_name;
4348: l_proc varchar2(30):='delete_eleentval';
4349: Begin
4350: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4351: for c_data in c_hist
4352: loop
4353: delete_hist_row( c_data.row_id);
4354: end loop;

Line 4355: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4351: for c_data in c_hist
4352: loop
4353: delete_hist_row( c_data.row_id);
4354: end loop;
4355: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4356: end delete_eleentval;
4357:
4358: -- ---------------------------------------------------------------------------
4359: -- |--------------------------< delete_peop_row>------------------------------|

Line 4403: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4399: FROM PER_PEOPLE_F
4400: WHERE person_id = cp_person_id
4401: AND cp_date_effective between effective_start_date and effective_end_date;
4402: BEGIN
4403: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4404: if (p_dt_mode = hr_api.g_delete_next_change) then
4405: open c_get_ovn(p_person_id, p_date_effective -1);
4406: fetch c_get_ovn into l_ovn;
4407: if c_get_ovn%NOTFOUND then

Line 4410: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');

4406: fetch c_get_ovn into l_ovn;
4407: if c_get_ovn%NOTFOUND then
4408: -- can't delete without object_version_number.
4409: close c_get_ovn;
4410: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');
4411: hr_utility.raise_error;
4412: -- raise error;
4413: end if;
4414: per_per_del.del(

Line 4411: hr_utility.raise_error;

4407: if c_get_ovn%NOTFOUND then
4408: -- can't delete without object_version_number.
4409: close c_get_ovn;
4410: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');
4411: hr_utility.raise_error;
4412: -- raise error;
4413: end if;
4414: per_per_del.del(
4415: p_person_id => p_person_id,

Line 4428: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');

4424: if c_get_ovn%NOTFOUND then
4425: -- raise error;
4426: -- can't delete without object_version_number.
4427: close c_get_ovn;
4428: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');
4429: hr_utility.raise_error;
4430: end if;
4431: per_per_del.del(
4432: p_person_id => p_person_id,

Line 4429: hr_utility.raise_error;

4425: -- raise error;
4426: -- can't delete without object_version_number.
4427: close c_get_ovn;
4428: hr_utility.set_message(8301,'GHR_38213_PEOPLE_OVN_NOTFOUND');
4429: hr_utility.raise_error;
4430: end if;
4431: per_per_del.del(
4432: p_person_id => p_person_id,
4433: p_effective_start_date => l_effective_start_date,

Line 4440: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');

4436: p_effective_date => p_date_effective,
4437: p_datetrack_mode => p_dt_mode );
4438: else
4439: -- raise error, unacceptable datetrack mode
4440: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4441: hr_utility.raise_error;
4442: end if;
4443: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4444: END delete_peop_row;

Line 4441: hr_utility.raise_error;

4437: p_datetrack_mode => p_dt_mode );
4438: else
4439: -- raise error, unacceptable datetrack mode
4440: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4441: hr_utility.raise_error;
4442: end if;
4443: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4444: END delete_peop_row;
4445:

Line 4443: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4439: -- raise error, unacceptable datetrack mode
4440: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4441: hr_utility.raise_error;
4442: end if;
4443: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4444: END delete_peop_row;
4445:
4446: -- Added Procedure delete_posn_row. ENUNEZ 11-MAY-2000, it didnt exist before as position used to
4447: -- be a non datetracked table. Bug# 1252481

Line 4502: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4498: --
4499: END IF;
4500: END ghr_regenerate_position_name;
4501: BEGIN
4502: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4503: if (p_dt_mode = hr_api.g_delete_next_change) then
4504: open c_get_ovn(p_position_id, p_date_effective -1);
4505: fetch c_get_ovn into l_ovn;
4506: if c_get_ovn%NOTFOUND then

Line 4509: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');

4505: fetch c_get_ovn into l_ovn;
4506: if c_get_ovn%NOTFOUND then
4507: -- can't delete without object_version_number.
4508: close c_get_ovn;
4509: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');
4510: hr_utility.raise_error;
4511: -- raise error;
4512: end if;
4513: hr_psf_del.del(

Line 4510: hr_utility.raise_error;

4506: if c_get_ovn%NOTFOUND then
4507: -- can't delete without object_version_number.
4508: close c_get_ovn;
4509: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');
4510: hr_utility.raise_error;
4511: -- raise error;
4512: end if;
4513: hr_psf_del.del(
4514: p_position_id => p_position_id,

Line 4521: hr_utility.set_location('Entered ghr regenerate position',15);

4517: p_object_version_number => l_ovn,
4518: p_effective_date => p_date_effective -1,
4519: p_datetrack_mode => p_dt_mode);
4520: -- Regenerate Position Bug 3786467.
4521: hr_utility.set_location('Entered ghr regenerate position',15);
4522: ghr_regenerate_position_name(p_position_id);
4523:
4524: --Bug # 12412678 synchronizing the position in per_all_positions
4525: update hr_all_positions_f

Line 4543: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');

4539: if c_get_ovn%NOTFOUND then
4540: -- raise error;
4541: -- can't delete without object_version_number.
4542: close c_get_ovn;
4543: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');
4544: hr_utility.raise_error;
4545: end if;
4546: hr_psf_del.del(
4547: p_position_id => p_position_id,

Line 4544: hr_utility.raise_error;

4540: -- raise error;
4541: -- can't delete without object_version_number.
4542: close c_get_ovn;
4543: hr_utility.set_message(8301,'GHR_38504_POS_OVN_NOTFOUND');
4544: hr_utility.raise_error;
4545: end if;
4546: hr_psf_del.del(
4547: p_position_id => p_position_id,
4548: p_effective_start_date => l_effective_start_date,

Line 4554: hr_utility.set_location('Entered ghr regenerate position',15);

4550: p_object_version_number => l_ovn,
4551: p_effective_date => p_date_effective,
4552: p_datetrack_mode => p_dt_mode );
4553: -- Regenerate Position Bug 3786467
4554: hr_utility.set_location('Entered ghr regenerate position',15);
4555: ghr_regenerate_position_name(p_position_id);
4556:
4557: --Bug # 12412678 synchronizing the position in per_all_positions
4558: open c1(p_position_id);

Line 4571: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');

4567: ,p_object_version_number => l_pos_ovn);
4568:
4569: else
4570: -- raise error, unacceptable datetrack mode
4571: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4572: hr_utility.raise_error;
4573: end if;
4574: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4575: END delete_posn_row;

Line 4572: hr_utility.raise_error;

4568:
4569: else
4570: -- raise error, unacceptable datetrack mode
4571: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4572: hr_utility.raise_error;
4573: end if;
4574: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4575: END delete_posn_row;
4576:

Line 4574: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4570: -- raise error, unacceptable datetrack mode
4571: hr_utility.set_message(8301,'GHR_38216_INVALID_DT_MODE_PPL');
4572: hr_utility.raise_error;
4573: end if;
4574: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4575: END delete_posn_row;
4576:
4577: -- ---------------------------------------------------------------------------
4578: -- |--------------------------< delete_asgn_row>------------------------------|

Line 4653: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4649: ll_value NUMBER;
4650: l_pay_intg BOOLEAN:=FALSE;
4651:
4652: BEGIN
4653: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4654: if (p_dt_mode = hr_api.g_delete_next_change) then
4655: open c_get_ovn(p_assignment_id, p_date_effective -1);
4656: fetch c_get_ovn into l_ovn;
4657: if c_get_ovn%NOTFOUND then

Line 4661: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');

4657: if c_get_ovn%NOTFOUND then
4658: -- can't delete without object_version_number.
4659: -- raise error;
4660: close c_get_ovn;
4661: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');
4662: hr_utility.raise_error;
4663: end if;
4664: per_asg_del.del(
4665: p_assignment_id => p_assignment_id,

Line 4662: hr_utility.raise_error;

4658: -- can't delete without object_version_number.
4659: -- raise error;
4660: close c_get_ovn;
4661: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');
4662: hr_utility.raise_error;
4663: end if;
4664: per_asg_del.del(
4665: p_assignment_id => p_assignment_id,
4666: p_effective_start_date => l_effective_start_date,

Line 4682: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');

4678: if c_get_ovn%NOTFOUND then
4679: -- can't delete without object_version_number.
4680: -- raise error;
4681: close c_get_ovn;
4682: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');
4683: hr_utility.raise_error;
4684: end if;
4685: -- Payroll Integration Changes
4686: ----**********************************************************************

Line 4683: hr_utility.raise_error;

4679: -- can't delete without object_version_number.
4680: -- raise error;
4681: close c_get_ovn;
4682: hr_utility.set_message(8301,'GHR_38215_ASSG_OVN_NOTFOUND');
4683: hr_utility.raise_error;
4684: end if;
4685: -- Payroll Integration Changes
4686: ----**********************************************************************
4687: -- CHECK # :- Existence of PAYROLL Product

Line 4689: IF (hr_utility.chk_product_install('GHR','US') = TRUE

4685: -- Payroll Integration Changes
4686: ----**********************************************************************
4687: -- CHECK # :- Existence of PAYROLL Product
4688: ----**********************************************************************
4689: IF (hr_utility.chk_product_install('GHR','US') = TRUE
4690: and hr_utility.chk_product_install('PAY', 'US') = TRUE
4691: and fnd_profile.value('HR_USER_TYPE')='INT')
4692: THEN
4693: l_pay_intg:=TRUE;

Line 4690: and hr_utility.chk_product_install('PAY', 'US') = TRUE

4686: ----**********************************************************************
4687: -- CHECK # :- Existence of PAYROLL Product
4688: ----**********************************************************************
4689: IF (hr_utility.chk_product_install('GHR','US') = TRUE
4690: and hr_utility.chk_product_install('PAY', 'US') = TRUE
4691: and fnd_profile.value('HR_USER_TYPE')='INT')
4692: THEN
4693: l_pay_intg:=TRUE;
4694: ELSE

Line 4707: hr_utility.set_location('l_hist basic value not null '||ll_value,100000);

4703: l_pay_proposal_id := proposal_rec.proposal_id;
4704: l_sal_admin_ovn := proposal_rec.ovn;
4705: End Loop;
4706:
4707: hr_utility.set_location('l_hist basic value not null '||ll_value,100000);
4708:
4709: per_asg_del.del(
4710: p_assignment_id => p_assignment_id,
4711: p_effective_start_date => l_effective_start_date,

Line 4737: hr_utility.set_location(' The Entry value '||ll_payroll_value,12345);

4733: p_change_date => p_date_effective -1,
4734: p_payroll_value => l_payroll_value,
4735: p_element_entry_id => l_ele_entry_id );
4736:
4737: hr_utility.set_location(' The Entry value '||ll_payroll_value,12345);
4738: hr_utility.set_location(' The Entry id '||l_ele_entry_id,12345);
4739:
4740: hr_entry_api.delete_element_entry
4741: ('DELETE_NEXT_CHANGE',

Line 4738: hr_utility.set_location(' The Entry id '||l_ele_entry_id,12345);

4734: p_payroll_value => l_payroll_value,
4735: p_element_entry_id => l_ele_entry_id );
4736:
4737: hr_utility.set_location(' The Entry value '||ll_payroll_value,12345);
4738: hr_utility.set_location(' The Entry id '||l_ele_entry_id,12345);
4739:
4740: hr_entry_api.delete_element_entry
4741: ('DELETE_NEXT_CHANGE',
4742: p_date_effective - 1,

Line 4760: hr_utility.set_message(8301,'GHR_38214_INVALID_DT_MODE_ASSG');

4756: p_org_now_no_manager_warning => l_org_now_no_manager_warning );
4757: END IF;
4758: else
4759: -- raise error, unacceptable datetrack mode
4760: hr_utility.set_message(8301,'GHR_38214_INVALID_DT_MODE_ASSG');
4761: hr_utility.raise_error;
4762: end if;
4763: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4764: END delete_asgn_row;

Line 4761: hr_utility.raise_error;

4757: END IF;
4758: else
4759: -- raise error, unacceptable datetrack mode
4760: hr_utility.set_message(8301,'GHR_38214_INVALID_DT_MODE_ASSG');
4761: hr_utility.raise_error;
4762: end if;
4763: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4764: END delete_asgn_row;
4765:

Line 4763: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4759: -- raise error, unacceptable datetrack mode
4760: hr_utility.set_message(8301,'GHR_38214_INVALID_DT_MODE_ASSG');
4761: hr_utility.raise_error;
4762: end if;
4763: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4764: END delete_asgn_row;
4765:
4766: -- ---------------------------------------------------------------------------
4767: -- |--------------------------< delete_peopei_row>----------------------------|

Line 4803: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4799: SELECT object_version_number
4800: FROM PER_PEOPLE_EXTRA_INFO
4801: WHERE person_extra_info_id = cp_person_extra_info_id ;
4802: BEGIN
4803: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4804: open c_get_ovn(p_person_extra_info_id);
4805: fetch c_get_ovn into l_ovn;
4806: if c_get_ovn%NOTFOUND then
4807: -- can't do delete without object_version_number.

Line 4811: -- hr_utility.set_message(8301,'GHR_38217_PEI_OVN_NOTFOUND');

4807: -- can't do delete without object_version_number.
4808: close c_get_ovn;
4809: return;
4810: -- if record is not there means it has already been deleted thru core form.
4811: -- hr_utility.set_message(8301,'GHR_38217_PEI_OVN_NOTFOUND');
4812: -- hr_utility.raise_error;
4813: end if;
4814: pe_pei_del.del(
4815: p_person_extra_info_id => p_person_extra_info_id,

Line 4812: -- hr_utility.raise_error;

4808: close c_get_ovn;
4809: return;
4810: -- if record is not there means it has already been deleted thru core form.
4811: -- hr_utility.set_message(8301,'GHR_38217_PEI_OVN_NOTFOUND');
4812: -- hr_utility.raise_error;
4813: end if;
4814: pe_pei_del.del(
4815: p_person_extra_info_id => p_person_extra_info_id,
4816: p_object_version_number => l_ovn);

Line 4817: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4813: end if;
4814: pe_pei_del.del(
4815: p_person_extra_info_id => p_person_extra_info_id,
4816: p_object_version_number => l_ovn);
4817: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4818: END delete_peopei_row;
4819:
4820: -- ---------------------------------------------------------------------------
4821: -- |--------------------------< delete_asgnei_row>----------------------------|

Line 4858: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4854: SELECT object_version_number
4855: FROM PER_ASSIGNMENT_EXTRA_INFO
4856: WHERE assignment_extra_info_id = cp_assignment_extra_info_id ;
4857: BEGIN
4858: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4859: open c_get_ovn(p_assignment_extra_info_id);
4860: fetch c_get_ovn into l_ovn;
4861: if c_get_ovn%NOTFOUND then
4862: -- can't do delete without object_version_number.

Line 4866: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');

4862: -- can't do delete without object_version_number.
4863: close c_get_ovn;
4864: return;
4865: -- if record is not there means it has already been deleted thru core form.
4866: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');
4867: -- hr_utility.raise_error;
4868: end if;
4869: pe_aei_del.del(
4870: p_assignment_extra_info_id => p_assignment_extra_info_id,

Line 4867: -- hr_utility.raise_error;

4863: close c_get_ovn;
4864: return;
4865: -- if record is not there means it has already been deleted thru core form.
4866: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');
4867: -- hr_utility.raise_error;
4868: end if;
4869: pe_aei_del.del(
4870: p_assignment_extra_info_id => p_assignment_extra_info_id,
4871: p_object_version_number => l_ovn);

Line 4872: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4868: end if;
4869: pe_aei_del.del(
4870: p_assignment_extra_info_id => p_assignment_extra_info_id,
4871: p_object_version_number => l_ovn);
4872: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4873: END delete_asgnei_row;
4874:
4875: -- ---------------------------------------------------------------------------
4876: -- |--------------------------< delete_posnei_row>----------------------------|

Line 4912: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4908: SELECT object_version_number
4909: FROM PER_POSITION_EXTRA_INFO
4910: WHERE position_extra_info_id = cp_position_extra_info_id ;
4911: BEGIN
4912: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4913: open c_get_ovn(p_position_extra_info_id);
4914: fetch c_get_ovn into l_ovn;
4915: if c_get_ovn%NOTFOUND then
4916: -- can't do delete without object_version_number.

Line 4920: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');

4916: -- can't do delete without object_version_number.
4917: close c_get_ovn;
4918: return;
4919: -- if record is not there means it has already been deleted thru core form.
4920: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');
4921: -- hr_utility.raise_error;
4922: end if;
4923: pe_poi_del.del(
4924: p_position_extra_info_id => p_position_extra_info_id,

Line 4921: -- hr_utility.raise_error;

4917: close c_get_ovn;
4918: return;
4919: -- if record is not there means it has already been deleted thru core form.
4920: -- hr_utility.set_message(8301,'GHR_38218_ASGEI_OVN_NOTFOUND');
4921: -- hr_utility.raise_error;
4922: end if;
4923: pe_poi_del.del(
4924: p_position_extra_info_id => p_position_extra_info_id,
4925: p_object_version_number => l_ovn);

Line 4926: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4922: end if;
4923: pe_poi_del.del(
4924: p_position_extra_info_id => p_position_extra_info_id,
4925: p_object_version_number => l_ovn);
4926: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4927: END delete_posnei_row;
4928:
4929: -- ---------------------------------------------------------------------------
4930: -- |--------------------------< delete_address_row>----------------------------|

Line 4968: hr_utility.set_location( 'Entering : ' || l_proc, 10);

4964: FROM PER_ADDRESSES
4965: WHERE address_id = cp_address_id ;
4966:
4967: BEGIN
4968: hr_utility.set_location( 'Entering : ' || l_proc, 10);
4969: open c_get_ovn(p_address_id);
4970: fetch c_get_ovn into l_ovn;
4971: if c_get_ovn%NOTFOUND then
4972: -- can't do delete without object_version_number.

Line 4976: -- hr_utility.set_message(8301,'GHR_38220_ADDRESS_OVN_NOTFOUND');

4972: -- can't do delete without object_version_number.
4973: close c_get_ovn;
4974: return;
4975: -- if record is not there means it has already been deleted thru core form.
4976: -- hr_utility.set_message(8301,'GHR_38220_ADDRESS_OVN_NOTFOUND');
4977: -- hr_utility.raise_error;
4978: end if;
4979: hr_utility.set_location('*Deleting p_address_id:' || p_address_id, 12);
4980: per_add_del.del(

Line 4977: -- hr_utility.raise_error;

4973: close c_get_ovn;
4974: return;
4975: -- if record is not there means it has already been deleted thru core form.
4976: -- hr_utility.set_message(8301,'GHR_38220_ADDRESS_OVN_NOTFOUND');
4977: -- hr_utility.raise_error;
4978: end if;
4979: hr_utility.set_location('*Deleting p_address_id:' || p_address_id, 12);
4980: per_add_del.del(
4981: p_address_id => p_address_id,

Line 4979: hr_utility.set_location('*Deleting p_address_id:' || p_address_id, 12);

4975: -- if record is not there means it has already been deleted thru core form.
4976: -- hr_utility.set_message(8301,'GHR_38220_ADDRESS_OVN_NOTFOUND');
4977: -- hr_utility.raise_error;
4978: end if;
4979: hr_utility.set_location('*Deleting p_address_id:' || p_address_id, 12);
4980: per_add_del.del(
4981: p_address_id => p_address_id,
4982: p_object_version_number => l_ovn);
4983: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

Line 4983: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

4979: hr_utility.set_location('*Deleting p_address_id:' || p_address_id, 12);
4980: per_add_del.del(
4981: p_address_id => p_address_id,
4982: p_object_version_number => l_ovn);
4983: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
4984: END delete_address_row;
4985:
4986: -- ---------------------------------------------------------------------------
4987: -- |--------------------------< delete_person_analyses_row>-------------------|

Line 5025: hr_utility.set_location( 'Entering : ' || l_proc, 10);

5021: FROM PER_PERSON_ANALYSES
5022: WHERE person_analysis_id = cp_person_analysis_id ;
5023:
5024: Begin
5025: hr_utility.set_location( 'Entering : ' || l_proc, 10);
5026: open c_get_ovn(p_person_analysis_id);
5027: fetch c_get_ovn into l_ovn;
5028: if c_get_ovn%NOTFOUND then
5029: -- can't do delete without object_version_number.

Line 5034: -- hr_utility.set_message(8301,'GHR_38272_PERSON_ANALYSE_OV_NF');

5030: -- raise error;
5031: close c_get_ovn;
5032: return;
5033: -- if record is not there means it has already been deleted thru core form.
5034: -- hr_utility.set_message(8301,'GHR_38272_PERSON_ANALYSE_OV_NF');
5035: -- hr_utility.raise_error;
5036: end if;
5037:
5038: per_pea_del.del(

Line 5035: -- hr_utility.raise_error;

5031: close c_get_ovn;
5032: return;
5033: -- if record is not there means it has already been deleted thru core form.
5034: -- hr_utility.set_message(8301,'GHR_38272_PERSON_ANALYSE_OV_NF');
5035: -- hr_utility.raise_error;
5036: end if;
5037:
5038: per_pea_del.del(
5039: p_person_analysis_id => p_person_analysis_id,

Line 5081: hr_utility.set_location( 'Entering : ' || l_proc, 10);

5077: p_dt_mode in varchar2,
5078: p_date_effective in date) IS
5079: l_proc varchar2(72) := 'delete_appl_row';
5080: BEGIN
5081: hr_utility.set_location( 'Entering : ' || l_proc, 10);
5082: hr_utility.set_location(' P_TABLE_NAME:' || p_table_name, 15);
5083: if (lower(p_table_name) = lower(ghr_history_api.g_peop_table)) then
5084: delete_peop_row( p_person_id => p_table_pk_id,
5085: p_dt_mode => p_dt_mode,

Line 5082: hr_utility.set_location(' P_TABLE_NAME:' || p_table_name, 15);

5078: p_date_effective in date) IS
5079: l_proc varchar2(72) := 'delete_appl_row';
5080: BEGIN
5081: hr_utility.set_location( 'Entering : ' || l_proc, 10);
5082: hr_utility.set_location(' P_TABLE_NAME:' || p_table_name, 15);
5083: if (lower(p_table_name) = lower(ghr_history_api.g_peop_table)) then
5084: delete_peop_row( p_person_id => p_table_pk_id,
5085: p_dt_mode => p_dt_mode,
5086: p_date_effective => p_date_effective);

Line 5107: hr_utility.set_location( 'Leaving : ' || l_proc, 20);

5103: delete_address_row( p_address_id => p_table_pk_id);
5104: elsif (lower(p_table_name) = lower(ghr_history_api.g_perana_table)) then
5105: delete_person_analyses_row( p_person_analysis_id => p_table_pk_id);
5106: end if;
5107: hr_utility.set_location( 'Leaving : ' || l_proc, 20);
5108: END delete_appl_row;
5109:
5110: -- ---------------------------------------------------------------------------
5111: -- |--------------------------< undo_mark_cancel>------------------------------|

Line 5156: hr_utility.set_location( 'Entering ' || l_proc, 10);

5152: where pa_request_id = cp_pa_request_id;
5153: l_proc varchar2(30):='Undo_Mark_Cancel';
5154: l_sf52_data get_req%rowtype;
5155: Begin
5156: hr_utility.set_location( 'Entering ' || l_proc, 10);
5157: if p_sf52_data.altered_pa_request_id is not null then
5158: -- if it is a correction/cancellation it'll have altered_pa_request_id
5159: hr_utility.set_location( l_proc, 20);
5160: -- fetch cancelled/corrected pa_request record

Line 5159: hr_utility.set_location( l_proc, 20);

5155: Begin
5156: hr_utility.set_location( 'Entering ' || l_proc, 10);
5157: if p_sf52_data.altered_pa_request_id is not null then
5158: -- if it is a correction/cancellation it'll have altered_pa_request_id
5159: hr_utility.set_location( l_proc, 20);
5160: -- fetch cancelled/corrected pa_request record
5161: open get_req( p_sf52_data.altered_pa_request_id);
5162: fetch get_req into l_sf52_data;
5163: if get_req%notfound then

Line 5165: hr_utility.set_location( 'Error ' || l_proc, 30);

5161: open get_req( p_sf52_data.altered_pa_request_id);
5162: fetch get_req into l_sf52_data;
5163: if get_req%notfound then
5164: -- this must never happen until data has been corrupted.
5165: hr_utility.set_location( 'Error ' || l_proc, 30);
5166: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5167: hr_utility.raise_error;
5168: end if;
5169: close get_req;

Line 5166: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');

5162: fetch get_req into l_sf52_data;
5163: if get_req%notfound then
5164: -- this must never happen until data has been corrupted.
5165: hr_utility.set_location( 'Error ' || l_proc, 30);
5166: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5167: hr_utility.raise_error;
5168: end if;
5169: close get_req;
5170: -- Only if a correction is canceled following logic must be executed to mark

Line 5167: hr_utility.raise_error;

5163: if get_req%notfound then
5164: -- this must never happen until data has been corrupted.
5165: hr_utility.set_location( 'Error ' || l_proc, 30);
5166: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5167: hr_utility.raise_error;
5168: end if;
5169: close get_req;
5170: -- Only if a correction is canceled following logic must be executed to mark
5171: -- parent SF52 available for cancellation/correction.

Line 5173: hr_utility.set_location( l_proc, 40);

5169: close get_req;
5170: -- Only if a correction is canceled following logic must be executed to mark
5171: -- parent SF52 available for cancellation/correction.
5172: if l_sf52_data.altered_pa_request_id is not null then
5173: hr_utility.set_location( l_proc, 40);
5174: open get_req(l_sf52_data.altered_pa_request_id);
5175: fetch get_req into l_sf52_data;
5176: if get_req%notfound then
5177: hr_utility.set_location( 'Error ' || l_proc , 50);

Line 5177: hr_utility.set_location( 'Error ' || l_proc , 50);

5173: hr_utility.set_location( l_proc, 40);
5174: open get_req(l_sf52_data.altered_pa_request_id);
5175: fetch get_req into l_sf52_data;
5176: if get_req%notfound then
5177: hr_utility.set_location( 'Error ' || l_proc , 50);
5178: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5179: hr_utility.raise_error;
5180: end if;
5181: close get_req;

Line 5178: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');

5174: open get_req(l_sf52_data.altered_pa_request_id);
5175: fetch get_req into l_sf52_data;
5176: if get_req%notfound then
5177: hr_utility.set_location( 'Error ' || l_proc , 50);
5178: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5179: hr_utility.raise_error;
5180: end if;
5181: close get_req;
5182: if l_sf52_data.first_noa_id = p_sf52_data.second_noa_id then

Line 5179: hr_utility.raise_error;

5175: fetch get_req into l_sf52_data;
5176: if get_req%notfound then
5177: hr_utility.set_location( 'Error ' || l_proc , 50);
5178: hr_utility.set_message(8301 , 'GHR_38278_PARENT_SF52_NOT_FND');
5179: hr_utility.raise_error;
5180: end if;
5181: close get_req;
5182: if l_sf52_data.first_noa_id = p_sf52_data.second_noa_id then
5183: hr_utility.set_location( l_proc, 60);

Line 5183: hr_utility.set_location( l_proc, 60);

5179: hr_utility.raise_error;
5180: end if;
5181: close get_req;
5182: if l_sf52_data.first_noa_id = p_sf52_data.second_noa_id then
5183: hr_utility.set_location( l_proc, 60);
5184: ghr_par_upd.upd
5185: (p_pa_request_id => l_sf52_data.pa_request_id,
5186: p_object_version_number => l_sf52_data.ovn,
5187: p_first_noa_cancel_or_correct => NULL,

Line 5191: hr_utility.set_location( l_proc, 70);

5187: p_first_noa_cancel_or_correct => NULL,
5188: p_first_noa_pa_request_id => NULL
5189: );
5190: elsif l_sf52_data.second_noa_id = p_sf52_data.second_noa_id then
5191: hr_utility.set_location( l_proc, 70);
5192: ghr_par_upd.upd
5193: (p_pa_request_id => l_sf52_data.pa_request_id,
5194: p_object_version_number => l_sf52_data.ovn,
5195: p_second_noa_cancel_or_correct => NULL,

Line 5201: hr_utility.set_location( l_proc, 80);

5197: );
5198: else
5199: -- This must never be the case where parent SF52 has different
5200: -- NOACs then the correction/cancellation.
5201: hr_utility.set_location( l_proc, 80);
5202: hr_utility.set_message(8301 , 'GHR_38279_PARENT_NOA_IS_DIFF');
5203: hr_utility.raise_error;
5204: null;
5205: end if;

Line 5202: hr_utility.set_message(8301 , 'GHR_38279_PARENT_NOA_IS_DIFF');

5198: else
5199: -- This must never be the case where parent SF52 has different
5200: -- NOACs then the correction/cancellation.
5201: hr_utility.set_location( l_proc, 80);
5202: hr_utility.set_message(8301 , 'GHR_38279_PARENT_NOA_IS_DIFF');
5203: hr_utility.raise_error;
5204: null;
5205: end if;
5206: end if;

Line 5203: hr_utility.raise_error;

5199: -- This must never be the case where parent SF52 has different
5200: -- NOACs then the correction/cancellation.
5201: hr_utility.set_location( l_proc, 80);
5202: hr_utility.set_message(8301 , 'GHR_38279_PARENT_NOA_IS_DIFF');
5203: hr_utility.raise_error;
5204: null;
5205: end if;
5206: end if;
5207: hr_utility.set_location( l_proc, 90);

Line 5207: hr_utility.set_location( l_proc, 90);

5203: hr_utility.raise_error;
5204: null;
5205: end if;
5206: end if;
5207: hr_utility.set_location( l_proc, 90);
5208: end if;
5209: hr_utility.set_location( 'Leaving ' || l_proc, 100);
5210:
5211: End Undo_Mark_Cancel;

Line 5209: hr_utility.set_location( 'Leaving ' || l_proc, 100);

5205: end if;
5206: end if;
5207: hr_utility.set_location( l_proc, 90);
5208: end if;
5209: hr_utility.set_location( 'Leaving ' || l_proc, 100);
5210:
5211: End Undo_Mark_Cancel;
5212:
5213: Procedure convert_shadow_to_sf52 (

Line 5400: hr_utility.set_location('Entering:'|| l_proc, 5);

5396: l_sf52_ia_rec ghr_pa_requests%rowtype;
5397:
5398:
5399: begin
5400: hr_utility.set_location('Entering:'|| l_proc, 5);
5401: l_sf52_data_result_rec := p_sf52_data_result;
5402: -- ghr_history_api.get_g_session_var(l_session_var);
5403: --Bug 2141522
5404: -- set values of session variables

Line 5434: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);

5430: fetch l_sf52_cursor into l_sf52_data_step;
5431: exit when l_sf52_cursor%notfound;
5432: l_sf52_cursor_step_indx := l_sf52_cursor_step_indx +1;
5433: if ( l_sf52_cursor_step_indx = 1) then
5434: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
5435: l_sf52_data_orig := l_sf52_data_step;
5436: p_sf52_data_result := l_sf52_data_step;
5437: -- Bug 3228557 Added the following IF condition. In case of NPA Printing
5438: -- Pass parameter 'NPA' to the procedure call to refresh_req_shadow.

Line 5440: hr_utility.set_location('Inside NPA printing',10);

5436: p_sf52_data_result := l_sf52_data_step;
5437: -- Bug 3228557 Added the following IF condition. In case of NPA Printing
5438: -- Pass parameter 'NPA' to the procedure call to refresh_req_shadow.
5439: IF NVL(p_called_from,hr_api.g_varchar2) = 'NPA' THEN
5440: hr_utility.set_location('Inside NPA printing',10);
5441: ghr_process_sf52.refresh_req_shadow(p_sf52_data=>p_sf52_data_result,
5442: p_shadow_data=>l_shadow_data,
5443: p_process_type => 'NPA');
5444: ELSE

Line 5445: hr_utility.set_location('Calling Refresh_req_shadow ',10);

5441: ghr_process_sf52.refresh_req_shadow(p_sf52_data=>p_sf52_data_result,
5442: p_shadow_data=>l_shadow_data,
5443: p_process_type => 'NPA');
5444: ELSE
5445: hr_utility.set_location('Calling Refresh_req_shadow ',10);
5446: ghr_process_sf52.refresh_req_shadow(p_sf52_data=>p_sf52_data_result,
5447: p_shadow_data=>l_shadow_data);
5448: END IF;
5449: -- Bug 3228557 Skip Pay Calculation in case of NPA report printing.

Line 5454: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);

5450: IF nvl(p_called_from,hr_api.g_varchar2) NOT IN ('FROM_PAYCAL','NPA') THEN
5451: ghr_process_sf52.redo_pay_calc( p_sf52_rec => p_sf52_data_result,
5452: p_capped_other_pay => l_capped_other_pay);
5453: END IF;
5454: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
5455: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
5456: -- check if original action in correction chain was a dual action. If so, determine which of
5457: -- the two actions this correction is for and call ghr_process_sf52.assign_new_rg to null out columns not having
5458: -- to do with the noa we are correcting.

Line 5455: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);

5451: ghr_process_sf52.redo_pay_calc( p_sf52_rec => p_sf52_data_result,
5452: p_capped_other_pay => l_capped_other_pay);
5453: END IF;
5454: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
5455: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
5456: -- check if original action in correction chain was a dual action. If so, determine which of
5457: -- the two actions this correction is for and call ghr_process_sf52.assign_new_rg to null out columns not having
5458: -- to do with the noa we are correcting.
5459: if (p_sf52_data_result.second_noa_id is not null) then

Line 5460: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);

5456: -- check if original action in correction chain was a dual action. If so, determine which of
5457: -- the two actions this correction is for and call ghr_process_sf52.assign_new_rg to null out columns not having
5458: -- to do with the noa we are correcting.
5459: if (p_sf52_data_result.second_noa_id is not null) then
5460: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);
5461: ---- commented the below if condition because is is compared against NOAC Code
5462: ---- Dual action correction need to be tested.
5463: ---- if (p_noa_code_correct = p_sf52_data_result.second_noa_id) then
5464: if (p_noa_code_correct = p_sf52_data_result.second_noa_code) then

Line 5465: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);

5461: ---- commented the below if condition because is is compared against NOAC Code
5462: ---- Dual action correction need to be tested.
5463: ---- if (p_noa_code_correct = p_sf52_data_result.second_noa_id) then
5464: if (p_noa_code_correct = p_sf52_data_result.second_noa_code) then
5465: hr_utility.set_location('Correcting second action in dual action:'|| l_proc, 12);
5466: -- Bug 8264475Modified to comment the code for handling dual actions
5467: -- as both the actions need to consider the same to side information
5468: /*ghr_process_sf52.assign_new_rg(p_action_num => 2,
5469: p_pa_req => p_sf52_data_result);*/

Line 5473: hr_utility.set_location('Correcting first action in dual action:'|| l_proc, 13);

5469: p_pa_req => p_sf52_data_result);*/
5470: ghr_process_sf52.copy_2ndNoa_to_1stNoa(p_sf52_data_result);
5471: ghr_process_sf52.null_2ndNoa_cols(p_sf52_data_result);
5472: else
5473: hr_utility.set_location('Correcting first action in dual action:'|| l_proc, 13);
5474: -- Bug 8264475Modified to comment the code for handling dual actions
5475: -- as both the actions need to consider the same to side information
5476:
5477: /*ghr_process_sf52.assign_new_rg(p_action_num => 1,

Line 5500: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);

5496: p_sf52_data_result.from_office_symbol := NULL;
5497: p_sf52_data_result.personnel_office_id := NULL;
5498: p_sf52_data_result.to_office_symbol := NULL;
5499: else
5500: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);
5501: -- all corrections will have the original sf52 information in the 2nd noa columns, so
5502: -- copy that information to 1st noa columns.
5503: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
5504: -- null the second noa columns since we don't want anything to be done with these now.

Line 5506: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);

5502: -- copy that information to 1st noa columns.
5503: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
5504: -- null the second noa columns since we don't want anything to be done with these now.
5505: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
5506: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
5507: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
5508: -- Start Intervening Actions Processing
5509: -- Processing added to assign the From side details to
5510: -- To side if it is a Intervening action and

Line 5507: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);

5503: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
5504: -- null the second noa columns since we don't want anything to be done with these now.
5505: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
5506: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
5507: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
5508: -- Start Intervening Actions Processing
5509: -- Processing added to assign the From side details to
5510: -- To side if it is a Intervening action and
5511: -- Original action from position_id = to position id

Line 5515: hr_utility.set_location('Inside the orig_details for loop' ,15);

5511: -- Original action from position_id = to position id
5512: -- Fetch the original action details
5513: FOR c_orig_det_rec in c_orig_details_for_ia
5514: LOOP
5515: hr_utility.set_location('Inside the orig_details for loop' ,15);
5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

Line 5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);

5512: -- Fetch the original action details
5513: FOR c_orig_det_rec in c_orig_details_for_ia
5514: LOOP
5515: hr_utility.set_location('Inside the orig_details for loop' ,15);
5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

Line 5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);

5513: FOR c_orig_det_rec in c_orig_details_for_ia
5514: LOOP
5515: hr_utility.set_location('Inside the orig_details for loop' ,15);
5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

Line 5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);

5514: LOOP
5515: hr_utility.set_location('Inside the orig_details for loop' ,15);
5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
5522: --BUG #7216635 added the parameter p_noa_id_correct

Line 5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

5515: hr_utility.set_location('Inside the orig_details for loop' ,15);
5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
5522: --BUG #7216635 added the parameter p_noa_id_correct
5523: GHR_APPROVED_PA_REQUESTS.determine_ia(

Line 5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

5516: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
5522: --BUG #7216635 added the parameter p_noa_id_correct
5523: GHR_APPROVED_PA_REQUESTS.determine_ia(
5524: p_pa_request_id => c_orig_det_rec.pa_request_id,

Line 5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

5517: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
5518: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
5519: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
5520: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
5521: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
5522: --BUG #7216635 added the parameter p_noa_id_correct
5523: GHR_APPROVED_PA_REQUESTS.determine_ia(
5524: p_pa_request_id => c_orig_det_rec.pa_request_id,
5525: p_pa_notification_id => c_orig_det_rec.pa_notification_id,

Line 5533: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);

5529: p_retro_pa_request_id => l_retro_pa_request_id,
5530: p_retro_eff_date => l_retro_eff_date,
5531: p_retro_first_noa => l_retro_first_noa,
5532: p_retro_second_noa => l_retro_second_noa);
5533: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);
5534: -- Bug#2521744 Splitting the single if condition into 2 separate if conditions.
5535: IF l_retro_eff_date is NOT NULL THEN
5536: IF c_orig_det_rec.from_position_id
5537: = c_orig_det_rec.to_position_id THEN

Line 5540: hr_utility.set_location('Its a Intervening Action ' ,16);

5536: IF c_orig_det_rec.from_position_id
5537: = c_orig_det_rec.to_position_id THEN
5538: -- copy the from details
5539: -- copy the from details
5540: hr_utility.set_location('Its a Intervening Action ' ,16);
5541: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_pa_request_id ,17);
5542:
5543: get_sf52_to_details_for_ia
5544: (p_pa_request_id => p_pa_request_id,

Line 5541: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_pa_request_id ,17);

5537: = c_orig_det_rec.to_position_id THEN
5538: -- copy the from details
5539: -- copy the from details
5540: hr_utility.set_location('Its a Intervening Action ' ,16);
5541: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_pa_request_id ,17);
5542:
5543: get_sf52_to_details_for_ia
5544: (p_pa_request_id => p_pa_request_id,
5545: p_retro_eff_date => l_retro_eff_date,

Line 5612: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);

5608: if p_sf52_data_result.to_other_pay_amount = 0 then
5609: p_sf52_data_result.to_other_pay_amount := null;
5610: end if;
5611: end if;
5612: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
5613: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
5614: end if;
5615: end loop;
5616: close l_sf52_cursor;

Line 5613: hr_utility.set_location('Applied corrections :'|| l_proc, 20);

5609: p_sf52_data_result.to_other_pay_amount := null;
5610: end if;
5611: end if;
5612: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
5613: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
5614: end if;
5615: end loop;
5616: close l_sf52_cursor;
5617:

Line 5644: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);

5640: ghr_history_api.reinit_g_session_var;
5641: ghr_history_api.set_g_session_var(l_session_var);
5642:
5643: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
5644: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
5645: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
5646: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
5647: --Bug# 5638869
5648: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;

Line 5645: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);

5641: ghr_history_api.set_g_session_var(l_session_var);
5642:
5643: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
5644: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
5645: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
5646: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
5647: --Bug# 5638869
5648: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;
5649: l_pos_ei_grade_data.poei_information3 := p_sf52_data_result.to_grade_id;

Line 5664: hr_utility.set_location(' Leaving:'||l_proc, 25);

5660: -- Bug#5435374 End of bug fix.
5661:
5662: ghr_process_sf52.print_sf52('Result after apply_correction ' , p_sf52_data_result);
5663:
5664: hr_utility.set_location(' Leaving:'||l_proc, 25);
5665: exception when others then
5666: --
5667: -- Reset IN OUT parameters and set OUT parameters
5668: --

Line 5695: hr_utility.set_location('Entering: '||l_proc,0);

5691: l_found VARCHAR2(10) := 'FALSE';
5692: l_proc VARCHAR2(30) := 'get_record_category';
5693:
5694: BEGIN
5695: hr_utility.set_location('Entering: '||l_proc,0);
5696: IF p_sf52_record.from_position_id IS NOT NULL AND
5697: p_sf52_record.from_position_title IS NOT NULL AND
5698: p_sf52_record.from_position_number IS NOT NULL AND
5699: -- p_sf52_record.from_position_seq_no IS NOT NULL AND

Line 5720: hr_utility.set_location('Leaving: '||l_proc,10);

5716: p_sf52_record.to_basic_pay IS NOT NULL AND
5717: p_sf52_record.to_adj_basic_pay IS NOT NULL AND
5718: p_sf52_record.to_locality_adj IS NOT NULL AND
5719: p_sf52_record.to_total_salary IS NOT NULL THEN
5720: hr_utility.set_location('Leaving: '||l_proc,10);
5721: -- Added the following code as there are some 2 category corr. to Other Pay
5722: -- actions where all the above fields are not null. but, still the record belongs
5723: -- to 2nd category if the correction is dummy correction. In this case,
5724: -- to_au_overtime/to_availability pay is null.

Line 5727: hr_utility.set_location(' OTHER PAY Family Code = '||noa_fam_rec.family_code,15);

5723: -- to 2nd category if the correction is dummy correction. In this case,
5724: -- to_au_overtime/to_availability pay is null.
5725: FOR noa_fam_rec IN c_noa_fam_code(p_sf52_record.second_noa_id)
5726: LOOP
5727: hr_utility.set_location(' OTHER PAY Family Code = '||noa_fam_rec.family_code,15);
5728: IF noa_fam_rec.family_code IN ('OTHER_PAY') THEN
5729: l_found := 'TRUE';
5730: EXIT;
5731: END IF;

Line 5774: hr_utility.set_location(' SEP Family Code = '||noa_fam_rec.family_code,15);

5770: p_sf52_record.to_locality_adj IS NULL AND
5771: p_sf52_record.to_total_salary IS NULL THEN
5772: FOR noa_fam_rec IN c_noa_fam_code(p_sf52_record.second_noa_id)
5773: LOOP
5774: hr_utility.set_location(' SEP Family Code = '||noa_fam_rec.family_code,15);
5775: IF noa_fam_rec.family_code IN ('SEPARATION','NON_PAY_DUTY_STATUS',
5776: 'AWARD','GHR_INCENTIVE') THEN
5777: l_found := 'TRUE';
5778: EXIT;

Line 5782: hr_utility.set_location('Leaving: '||l_proc,20);

5778: EXIT;
5779: END IF;
5780: END LOOP;
5781: IF l_found = 'TRUE' THEN
5782: hr_utility.set_location('Leaving: '||l_proc,20);
5783: Return 3;
5784: ELSE
5785: hr_utility.set_location('Leaving: '||l_proc,30);
5786: Return 2;

Line 5785: hr_utility.set_location('Leaving: '||l_proc,30);

5781: IF l_found = 'TRUE' THEN
5782: hr_utility.set_location('Leaving: '||l_proc,20);
5783: Return 3;
5784: ELSE
5785: hr_utility.set_location('Leaving: '||l_proc,30);
5786: Return 2;
5787: END IF;
5788: ELSE
5789: hr_utility.set_location('Leaving: '||l_proc,40);

Line 5789: hr_utility.set_location('Leaving: '||l_proc,40);

5785: hr_utility.set_location('Leaving: '||l_proc,30);
5786: Return 2;
5787: END IF;
5788: ELSE
5789: hr_utility.set_location('Leaving: '||l_proc,40);
5790: Return 2;
5791: END IF;
5792: ELSE
5793: -- For correction to Appointment actions also, from side data is

Line 5820: hr_utility.set_location('Leaving: '||l_proc,40);

5816: p_sf52_record.to_basic_pay IS NOT NULL AND
5817: p_sf52_record.to_adj_basic_pay IS NOT NULL AND
5818: p_sf52_record.to_locality_adj IS NOT NULL AND
5819: p_sf52_record.to_total_salary IS NOT NULL THEN
5820: hr_utility.set_location('Leaving: '||l_proc,40);
5821: Return 3;
5822: ELSE
5823: hr_utility.set_location('Leaving: '||l_proc,50);
5824: Return 1;

Line 5823: hr_utility.set_location('Leaving: '||l_proc,50);

5819: p_sf52_record.to_total_salary IS NOT NULL THEN
5820: hr_utility.set_location('Leaving: '||l_proc,40);
5821: Return 3;
5822: ELSE
5823: hr_utility.set_location('Leaving: '||l_proc,50);
5824: Return 1;
5825: END IF;
5826: END IF;
5827: END get_record_category;

Line 5866: hr_utility.set_location('assinging the original record',20);

5862: ELSE
5863: sf52_corr_rec := l_sf52_data;
5864: END IF;
5865: ELSE
5866: hr_utility.set_location('assinging the original record',20);
5867: sf52_corr_rec := l_sf52_data;
5868: END IF;
5869: end populate_corrected_sf52;
5870:

Line 6000: hr_utility.set_location('Entering : ' || l_proc, 5);

5996: l_ret_val Boolean:=FALSE;
5997: l_proc varchar2(30):='IF_ZAP_ELE_ENT';
5998: Begin
5999:
6000: hr_utility.set_location('Entering : ' || l_proc, 5);
6001: -- Find Element Type
6002: open c_get_ele_ent(
6003: p_element_entry_id,
6004: p_effective_start_date);

Line 6010: hr_utility.set_location(' Could not find Element Type. Must not happen !!' || l_proc, 10);

6006: if c_get_ele_ent%notfound then
6007: close c_get_ele_ent;
6008: -- This case must not happen.
6009: -- Not raising error. As it must be handled in calling routine
6010: hr_utility.set_location(' Could not find Element Type. Must not happen !!' || l_proc, 10);
6011: l_ret_val := FALSE;
6012: else
6013: if l_ele.processing_type = 'N' then
6014: -- Non-recurring elemnt can be zapped.

Line 6017: hr_utility.set_location('Non recurring CAN ZAP' || l_proc, 20);

6013: if l_ele.processing_type = 'N' then
6014: -- Non-recurring elemnt can be zapped.
6015: close c_get_ele_ent;
6016: l_ret_val := TRUE;
6017: hr_utility.set_location('Non recurring CAN ZAP' || l_proc, 20);
6018: else
6019: -- For recurring
6020: close c_get_ele_ent;
6021: open get_root_min_hist_id (p_pa_history_id);

Line 6025: hr_utility.set_location(' Root Hist ID Not found!! Must not happen' || l_proc, 30);

6021: open get_root_min_hist_id (p_pa_history_id);
6022: fetch get_root_min_hist_id into l_root_hist_id;
6023: if get_root_min_hist_id%notfound then
6024: close get_root_min_hist_id;
6025: hr_utility.set_location(' Root Hist ID Not found!! Must not happen' || l_proc, 30);
6026: l_ret_val := FALSE;
6027: else
6028: close get_root_min_hist_id;
6029: hr_utility.set_location(' Fetching successor,if any, from history' || l_proc, 40);

Line 6029: hr_utility.set_location(' Fetching successor,if any, from history' || l_proc, 40);

6025: hr_utility.set_location(' Root Hist ID Not found!! Must not happen' || l_proc, 30);
6026: l_ret_val := FALSE;
6027: else
6028: close get_root_min_hist_id;
6029: hr_utility.set_location(' Fetching successor,if any, from history' || l_proc, 40);
6030: open c_history(
6031: c_information1 => p_element_entry_id,
6032: c_effective_date => p_effective_start_date,
6033: c_root_hist_id => l_root_hist_id);

Line 6040: hr_utility.set_location(' Leaving : ' || l_proc, 100);

6036: end if;
6037: end if;
6038: end if;
6039: p_result := l_ret_val;
6040: hr_utility.set_location(' Leaving : ' || l_proc, 100);
6041: Exception when others then
6042: --
6043: -- Reset IN OUT parameters and set OUT parameters
6044: --

Line 6091: hr_utility.set_location( 'Entering : ' || l_proc, 10);

6087: l_ovn number;
6088: l_which_noa number;
6089: --
6090: Begin
6091: hr_utility.set_location( 'Entering : ' || l_proc, 10);
6092: hr_utility.set_location( 'PA_Request_id : ' || p_sf52_data.pa_request_id || ' ' || l_proc, 15);
6093: l_sf52_data_rec := p_sf52_data;
6094:
6095: -- Fetch Original SF50 being cancelled

Line 6092: hr_utility.set_location( 'PA_Request_id : ' || p_sf52_data.pa_request_id || ' ' || l_proc, 15);

6088: l_which_noa number;
6089: --
6090: Begin
6091: hr_utility.set_location( 'Entering : ' || l_proc, 10);
6092: hr_utility.set_location( 'PA_Request_id : ' || p_sf52_data.pa_request_id || ' ' || l_proc, 15);
6093: l_sf52_data_rec := p_sf52_data;
6094:
6095: -- Fetch Original SF50 being cancelled
6096: for v_get_sf52 in c_get_sf52 ( p_sf52_data.altered_pa_request_id)

Line 6110: hr_utility.set_location( 'Sub Pa_request_id : ' || v_pa_req.pa_request_id || ' ' || l_proc, 20);

6106:
6107: -- >> Build array of subsequent corrections;
6108: for v_pa_req in c_get_subs_corr ( p_sf52_data.altered_pa_request_id, p_sf52_data.second_noa_id)
6109: loop
6110: hr_utility.set_location( 'Sub Pa_request_id : ' || v_pa_req.pa_request_id || ' ' || l_proc, 20);
6111: l_count := l_count + 1;
6112: l_subsequent_pa_req(l_count).pa_request_id := v_pa_req.pa_request_id;
6113: l_subsequent_pa_req(l_count).object_version_number := v_pa_req.object_version_number;
6114: l_subsequent_pa_req(l_count).status := v_pa_req.status;

Line 6122: hr_utility.set_location('Subsequent SF52 Tree is blank. Error !!!! ' || l_proc, 40);

6118:
6119: l_rev_count := l_count;
6120:
6121: if l_count = 0 then
6122: hr_utility.set_location('Subsequent SF52 Tree is blank. Error !!!! ' || l_proc, 40);
6123: hr_utility.set_message(8301 , 'GHR_99999_CANC_SF52_NOT_FOUND');
6124: hr_utility.raise_error;
6125: end if;
6126:

Line 6123: hr_utility.set_message(8301 , 'GHR_99999_CANC_SF52_NOT_FOUND');

6119: l_rev_count := l_count;
6120:
6121: if l_count = 0 then
6122: hr_utility.set_location('Subsequent SF52 Tree is blank. Error !!!! ' || l_proc, 40);
6123: hr_utility.set_message(8301 , 'GHR_99999_CANC_SF52_NOT_FOUND');
6124: hr_utility.raise_error;
6125: end if;
6126:
6127:

Line 6124: hr_utility.raise_error;

6120:
6121: if l_count = 0 then
6122: hr_utility.set_location('Subsequent SF52 Tree is blank. Error !!!! ' || l_proc, 40);
6123: hr_utility.set_message(8301 , 'GHR_99999_CANC_SF52_NOT_FOUND');
6124: hr_utility.raise_error;
6125: end if;
6126:
6127:
6128: hr_utility.set_location(' Start Process Subsequent SF52 ' || l_proc , 60);

Line 6128: hr_utility.set_location(' Start Process Subsequent SF52 ' || l_proc , 60);

6124: hr_utility.raise_error;
6125: end if;
6126:
6127:
6128: hr_utility.set_location(' Start Process Subsequent SF52 ' || l_proc , 60);
6129: while l_rev_count > 0
6130: loop
6131: l_sf52_canc := l_null_sf52;
6132: if l_rev_count = 1 then

Line 6134: hr_utility.set_location('Processing Original SF52 ' || l_proc , 70);

6130: loop
6131: l_sf52_canc := l_null_sf52;
6132: if l_rev_count = 1 then
6133: -- original SF52;
6134: hr_utility.set_location('Processing Original SF52 ' || l_proc , 70);
6135: l_sf52_canc := p_sf52_data;
6136: -- Cancel SF52
6137: Process_Cancel( p_sf52_Data => l_sf52_canc);
6138: elsif nvl(l_subsequent_pa_req(l_rev_count).status, 'CANCELED') = 'CANCELED' then

Line 6140: hr_utility.set_location('No Action Req. for SF52 : ' ||

6136: -- Cancel SF52
6137: Process_Cancel( p_sf52_Data => l_sf52_canc);
6138: elsif nvl(l_subsequent_pa_req(l_rev_count).status, 'CANCELED') = 'CANCELED' then
6139: -- No Action required
6140: hr_utility.set_location('No Action Req. for SF52 : ' ||
6141: l_subsequent_pa_req(l_rev_count).pa_request_id || ' ' || l_proc , 80);
6142: elsif nvl(l_subsequent_pa_req(l_rev_count).status, 'CANCELED') <> 'UPDATE_HR_COMPLETE' then
6143: -- SF52 has not been processed
6144: -- Soft Cancel this SF52

Line 6147: hr_utility.set_location('Soft Cancelling SF52 : ' ||

6143: -- SF52 has not been processed
6144: -- Soft Cancel this SF52
6145: -- No need to re-fetch object_version_number. As this must be last SF52 in the chain and
6146: -- OVN must not change since last fetch
6147: hr_utility.set_location('Soft Cancelling SF52 : ' ||
6148: l_subsequent_pa_req(l_rev_count).pa_request_id || ' ' || l_proc , 90);
6149: ghr_sf52_api.end_sf52(
6150: p_pa_request_id => l_sf52.pa_request_id
6151: ,p_user_name => l_username

Line 6157: hr_utility.set_location('Calling Cancel_subs_correction for SF52 : ' ||

6153: ,p_action_taken => 'CANCELED'
6154: );
6155: else
6156: -- Call Cancel_correction
6157: hr_utility.set_location('Calling Cancel_subs_correction for SF52 : ' ||
6158: l_subsequent_pa_req(l_rev_count).pa_request_id || ' ' || l_proc , 100);
6159: if l_sf52_canc.first_noa_code = p_sf52_data.second_noa_code then
6160: hr_utility.set_location('Ist NOA CODE '|| l_proc , 105);
6161: l_which_noa := 1;

Line 6160: hr_utility.set_location('Ist NOA CODE '|| l_proc , 105);

6156: -- Call Cancel_correction
6157: hr_utility.set_location('Calling Cancel_subs_correction for SF52 : ' ||
6158: l_subsequent_pa_req(l_rev_count).pa_request_id || ' ' || l_proc , 100);
6159: if l_sf52_canc.first_noa_code = p_sf52_data.second_noa_code then
6160: hr_utility.set_location('Ist NOA CODE '|| l_proc , 105);
6161: l_which_noa := 1;
6162: else
6163: hr_utility.set_location('2nd NOA CODE '|| l_proc , 105);
6164: l_which_noa := 2;

Line 6163: hr_utility.set_location('2nd NOA CODE '|| l_proc , 105);

6159: if l_sf52_canc.first_noa_code = p_sf52_data.second_noa_code then
6160: hr_utility.set_location('Ist NOA CODE '|| l_proc , 105);
6161: l_which_noa := 1;
6162: else
6163: hr_utility.set_location('2nd NOA CODE '|| l_proc , 105);
6164: l_which_noa := 2;
6165: end if;
6166:
6167: Cancel_subs_correction (

Line 6175: hr_utility.set_location('Fetching original SF52 ' || l_proc , 110);

6171: end if;
6172: l_rev_count := l_rev_count - 1;
6173: end loop;
6174:
6175: hr_utility.set_location('Fetching original SF52 ' || l_proc , 110);
6176:
6177: -- Set column values in the SF50 being Cancelled;
6178: -- copy first/second_noa_canc_pa_request_id to first/second_noa_pa_request_id
6179: -- set first/second_noa_canel_correct_flag = 'ghr_history_api.g_cancel

Line 6185: hr_utility.set_location('Reset First_noa_canel_or_correct ' || l_proc , 120);

6181: l_sf52.object_version_number := get_sf52_ovn ( p_pa_request_id => l_sf52.pa_request_id);
6182:
6183: if l_sf52.first_noa_code = p_sf52_data.second_noa_code then
6184: if l_sf52.first_noa_canc_pa_request_id is not null then
6185: hr_utility.set_location('Reset First_noa_canel_or_correct ' || l_proc , 120);
6186: ghr_par_upd.upd(
6187: p_pa_request_id => l_sf52.pa_request_id
6188: ,p_object_version_number => l_sf52.object_version_number
6189: ,p_first_noa_pa_request_id => l_sf52.first_noa_canc_pa_request_id

Line 6196: hr_utility.set_location('Reset Second_noa_canel_or_correct ' || l_proc , 120);

6192:
6193: end if;
6194: else
6195: if l_sf52.second_noa_canc_pa_request_id is not null then
6196: hr_utility.set_location('Reset Second_noa_canel_or_correct ' || l_proc , 120);
6197: ghr_par_upd.upd(
6198: p_pa_request_id => l_sf52.pa_request_id
6199: ,p_object_version_number => l_sf52.object_version_number
6200: ,p_second_noa_pa_request_id => l_sf52.second_noa_canc_pa_request_id

Line 6206: hr_utility.set_location(' Leaving ' || l_proc , 200);

6202: );
6203: end if;
6204: end if;
6205:
6206: hr_utility.set_location(' Leaving ' || l_proc , 200);
6207: Exception when others then
6208: --
6209: -- Reset IN OUT parameters and set OUT parameters
6210: --

Line 6350: hr_utility.set_location( 'Entering ' || l_proc, 10);

6346: --End of Bug# 5195518
6347: Begin
6348:
6349: -- Cancellation
6350: hr_utility.set_location( 'Entering ' || l_proc, 10);
6351: l_sf52_data := p_sf52_data;
6352: -- get first_noa_code and second_noa_code for the pa_request that this cancellation is being
6353: -- applied to.
6354: open c_sf52( p_sf52_data.altered_pa_request_id);

Line 6359: hr_utility.set_location(' Parent of pa_request_id : ' ||

6355: fetch c_sf52 into l_prev_sf52_data;
6356: if not c_sf52%found then
6357: close c_sf52;
6358: -- original SF52 not found
6359: hr_utility.set_location(' Parent of pa_request_id : ' ||
6360: p_sf52_data.pa_request_id || ' Not Found. !! ERROR !! ' || l_proc , 20);
6361: hr_utility.set_message(8301 , 'GHR_38221_CORR_SF50_NOT_FOUND');
6362: ghr_api.g_api_dml := FALSE;
6363: hr_utility.raise_error;

Line 6361: hr_utility.set_message(8301 , 'GHR_38221_CORR_SF50_NOT_FOUND');

6357: close c_sf52;
6358: -- original SF52 not found
6359: hr_utility.set_location(' Parent of pa_request_id : ' ||
6360: p_sf52_data.pa_request_id || ' Not Found. !! ERROR !! ' || l_proc , 20);
6361: hr_utility.set_message(8301 , 'GHR_38221_CORR_SF50_NOT_FOUND');
6362: ghr_api.g_api_dml := FALSE;
6363: hr_utility.raise_error;
6364: -- raise error
6365: else

Line 6363: hr_utility.raise_error;

6359: hr_utility.set_location(' Parent of pa_request_id : ' ||
6360: p_sf52_data.pa_request_id || ' Not Found. !! ERROR !! ' || l_proc , 20);
6361: hr_utility.set_message(8301 , 'GHR_38221_CORR_SF50_NOT_FOUND');
6362: ghr_api.g_api_dml := FALSE;
6363: hr_utility.raise_error;
6364: -- raise error
6365: else
6366: hr_utility.set_location( l_proc, 30);
6367: if l_prev_sf52_data.first_noa_code = '002' then

Line 6366: hr_utility.set_location( l_proc, 30);

6362: ghr_api.g_api_dml := FALSE;
6363: hr_utility.raise_error;
6364: -- raise error
6365: else
6366: hr_utility.set_location( l_proc, 30);
6367: if l_prev_sf52_data.first_noa_code = '002' then
6368: -- Cancellation of the correction
6369: hr_utility.set_location( l_proc, 40);
6370: ghr_corr_canc_sf52.Cancel_Correction_SF52( p_sf52_data);

Line 6369: hr_utility.set_location( l_proc, 40);

6365: else
6366: hr_utility.set_location( l_proc, 30);
6367: if l_prev_sf52_data.first_noa_code = '002' then
6368: -- Cancellation of the correction
6369: hr_utility.set_location( l_proc, 40);
6370: ghr_corr_canc_sf52.Cancel_Correction_SF52( p_sf52_data);
6371: else
6372: -------------------------------------------------
6373: -- JH Bug 2983738 Position Hiring Status Changes Generic to All Cancellations.

Line 6379: hr_utility.set_location('JH Hiring Status Start'|| l_proc,45);

6375: --l_posn_eff_start_date date;
6376: --l_posn_eff_end_date date;
6377: --l_prior_posn_ovn number;
6378:
6379: hr_utility.set_location('JH Hiring Status Start'|| l_proc,45);
6380: hr_utility.set_location('First NOA code = '||l_sf52_data.first_noa_code || l_proc,45);
6381:
6382: IF l_sf52_data.first_noa_code = '001' THEN
6383: hr_utility.set_location('From Posn ID = '||to_char(l_sf52_data.from_position_id)|| l_proc,45);

Line 6380: hr_utility.set_location('First NOA code = '||l_sf52_data.first_noa_code || l_proc,45);

6376: --l_posn_eff_end_date date;
6377: --l_prior_posn_ovn number;
6378:
6379: hr_utility.set_location('JH Hiring Status Start'|| l_proc,45);
6380: hr_utility.set_location('First NOA code = '||l_sf52_data.first_noa_code || l_proc,45);
6381:
6382: IF l_sf52_data.first_noa_code = '001' THEN
6383: hr_utility.set_location('From Posn ID = '||to_char(l_sf52_data.from_position_id)|| l_proc,45);
6384: hr_utility.set_location('Effective Date = '||l_sf52_data.effective_date|| l_proc,45);

Line 6383: hr_utility.set_location('From Posn ID = '||to_char(l_sf52_data.from_position_id)|| l_proc,45);

6379: hr_utility.set_location('JH Hiring Status Start'|| l_proc,45);
6380: hr_utility.set_location('First NOA code = '||l_sf52_data.first_noa_code || l_proc,45);
6381:
6382: IF l_sf52_data.first_noa_code = '001' THEN
6383: hr_utility.set_location('From Posn ID = '||to_char(l_sf52_data.from_position_id)|| l_proc,45);
6384: hr_utility.set_location('Effective Date = '||l_sf52_data.effective_date|| l_proc,45);
6385: -- Tests for Position in Non-Active status ON the effective Date.
6386: posn_not_active(p_position_id => l_sf52_data.from_position_id
6387: ,p_effective_date => l_sf52_data.effective_date

Line 6384: hr_utility.set_location('Effective Date = '||l_sf52_data.effective_date|| l_proc,45);

6380: hr_utility.set_location('First NOA code = '||l_sf52_data.first_noa_code || l_proc,45);
6381:
6382: IF l_sf52_data.first_noa_code = '001' THEN
6383: hr_utility.set_location('From Posn ID = '||to_char(l_sf52_data.from_position_id)|| l_proc,45);
6384: hr_utility.set_location('Effective Date = '||l_sf52_data.effective_date|| l_proc,45);
6385: -- Tests for Position in Non-Active status ON the effective Date.
6386: posn_not_active(p_position_id => l_sf52_data.from_position_id
6387: ,p_effective_date => l_sf52_data.effective_date
6388: ,p_posn_eff_start_date => l_posn_eff_start_date

Line 6401: hr_utility.set_location('Hiring Status Start/End : '||l_posn_eff_start_date||'/'||l_posn_eff_end_date,45);

6397: ,p_posn_eff_end_date => l_posn_eff_end_date
6398: ,p_prior_posn_ovn => l_prior_posn_ovn);
6399: END IF;
6400:
6401: hr_utility.set_location('Hiring Status Start/End : '||l_posn_eff_start_date||'/'||l_posn_eff_end_date,45);
6402:
6403: IF l_posn_eff_start_date IS NOT NULL THEN
6404: hr_utility.set_location('Hiring Status - Calling Delete API',45);
6405: hr_position_api.delete_position(p_validate => FALSE

Line 6404: hr_utility.set_location('Hiring Status - Calling Delete API',45);

6400:
6401: hr_utility.set_location('Hiring Status Start/End : '||l_posn_eff_start_date||'/'||l_posn_eff_end_date,45);
6402:
6403: IF l_posn_eff_start_date IS NOT NULL THEN
6404: hr_utility.set_location('Hiring Status - Calling Delete API',45);
6405: hr_position_api.delete_position(p_validate => FALSE
6406: ,p_position_id => to_number(l_sf52_data.from_position_id)
6407: ,p_effective_date => l_posn_eff_start_date-1
6408: ,p_effective_start_date => l_posn_eff_start_date

Line 6413: hr_utility.set_location('Hiring Status - Exiting',45);

6409: ,p_effective_end_date => l_posn_eff_end_date
6410: ,p_object_version_number => l_prior_posn_ovn
6411: ,p_datetrack_mode => 'DELETE_NEXT_CHANGE');
6412: END IF;
6413: hr_utility.set_location('Hiring Status - Exiting',45);
6414: END IF; -- Cancellations Bug 2983738
6415:
6416:
6417:

Line 6418: hr_utility.set_location( l_proc, 50);

6414: END IF; -- Cancellations Bug 2983738
6415:
6416:
6417:
6418: hr_utility.set_location( l_proc, 50);
6419: open c_fam( p_sf52_data.second_noa_id);
6420: fetch c_fam into
6421: l_noa_family_code;
6422: if c_fam%notfound then

Line 6425: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');

6421: l_noa_family_code;
6422: if c_fam%notfound then
6423: -- error
6424: close c_fam;
6425: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');
6426: hr_utility.raise_error;
6427: else
6428: close c_fam;
6429: end if;

Line 6426: hr_utility.raise_error;

6422: if c_fam%notfound then
6423: -- error
6424: close c_fam;
6425: hr_utility.set_message(8301,'GHR_38211_NOA_FAMILY_NOTFOUND');
6426: hr_utility.raise_error;
6427: else
6428: close c_fam;
6429: end if;
6430: -- Bug # 5195518

Line 6437: IF ghr_utility.is_ghr_ben_fehb = 'TRUE' or ghr_utility.is_ghr_ben_fegli = 'TRUE' THEN

6433: LOOP
6434: l_bg_id := l_cur_bg_id.bg_id;
6435: END LOOP;
6436: -- Bug 4122470 added FEGLI
6437: IF ghr_utility.is_ghr_ben_fehb = 'TRUE' or ghr_utility.is_ghr_ben_fegli = 'TRUE' THEN
6438: For rec_le in get_fehb_life_events(p_person_id => p_sf52_data.person_id,
6439: p_business_group_id => l_bg_id,
6440: p_effective_date => p_sf52_data.effective_date)
6441: loop

Line 6467: hr_utility.set_location('p_sf52_data.effective_date'||p_sf52_data.effective_date,1000);

6463: l_datetrack_mode := hr_api.g_zap;
6464: END IF; */
6465:
6466:
6467: hr_utility.set_location('p_sf52_data.effective_date'||p_sf52_data.effective_date,1000);
6468: IF l_noa_family_code in ('APP','CONV_APP') THEN
6469: IF ghr_utility.is_ghr_ben_tsp = 'TRUE' THEN
6470: For rec_le in get_tsp_life_events(p_person_id => p_sf52_data.person_id,
6471: p_business_group_id => l_bg_id,

Line 6469: IF ghr_utility.is_ghr_ben_tsp = 'TRUE' THEN

6465:
6466:
6467: hr_utility.set_location('p_sf52_data.effective_date'||p_sf52_data.effective_date,1000);
6468: IF l_noa_family_code in ('APP','CONV_APP') THEN
6469: IF ghr_utility.is_ghr_ben_tsp = 'TRUE' THEN
6470: For rec_le in get_tsp_life_events(p_person_id => p_sf52_data.person_id,
6471: p_business_group_id => l_bg_id,
6472: p_effective_date => p_sf52_data.effective_date)
6473: loop

Line 6511: hr_utility.set_location( l_proc, 60);

6507: -- End of Bug # 5195518
6508: if l_noa_family_code = 'APP' then
6509: -- must be checked for the appt. family
6510: -- Cancellation of an appointment
6511: hr_utility.set_location( l_proc, 60);
6512: ghr_corr_canc_sf52.Cancel_Appt_SF52( p_sf52_data);
6513: null;
6514: elsif l_noa_family_code = 'SEPARATION' then
6515: -- cancellation of termination

Line 6516: hr_utility.set_location( l_proc, 70);

6512: ghr_corr_canc_sf52.Cancel_Appt_SF52( p_sf52_data);
6513: null;
6514: elsif l_noa_family_code = 'SEPARATION' then
6515: -- cancellation of termination
6516: hr_utility.set_location( l_proc, 70);
6517: ghr_corr_canc_sf52.cancel_term_sf52( p_sf52_data);
6518: -- elsif l_noa_code like '9%' then
6519: -- -- user defined families not supported by update to database
6520: -- -- should generate a message and raise_error here.

Line 6521: -- hr_utility.set_location( l_proc, 80);

6517: ghr_corr_canc_sf52.cancel_term_sf52( p_sf52_data);
6518: -- elsif l_noa_code like '9%' then
6519: -- -- user defined families not supported by update to database
6520: -- -- should generate a message and raise_error here.
6521: -- hr_utility.set_location( l_proc, 80);
6522: -- NULL;
6523: -- user defined NOA would be treated as any other family in cancel_other_family_sf52
6524: -- if these don't belong to special families (APP/SEPARATION)
6525: else

Line 6526: hr_utility.set_location( l_proc, 90);

6522: -- NULL;
6523: -- user defined NOA would be treated as any other family in cancel_other_family_sf52
6524: -- if these don't belong to special families (APP/SEPARATION)
6525: else
6526: hr_utility.set_location( l_proc, 90);
6527: ghr_corr_canc_sf52.Cancel_Other_Family_Sf52( p_sf52_data);
6528: end if;
6529:
6530:

Line 6571: hr_utility.set_location(' Call ghr_cancel_sf52 ' || p_corr_sf52_detail.pa_request_id ||

6567:
6568: Begin
6569:
6570: -- create cancellation;
6571: hr_utility.set_location(' Call ghr_cancel_sf52 ' || p_corr_sf52_detail.pa_request_id ||
6572: l_proc , 80);
6573: l_corr_sf52_detail := p_corr_sf52_detail;
6574: -- Start Bug 2542417
6575: -- Fetching employee_assignment_id to pass in ghr_sf52_api.update_sf52

Line 6583: hr_utility.set_location(' l_asg_id is ' || l_asg_id || ' ' || l_proc , 90);

6579: for c_get_asg_rec in c_get_asg_id LOOP
6580: l_asg_id := c_get_asg_rec.employee_assignment_id;
6581: exit;
6582: END LOOP;
6583: hr_utility.set_location(' l_asg_id is ' || l_asg_id || ' ' || l_proc , 90);
6584: -- End Bug 2542417
6585:
6586:
6587: -- l_username := fnd_global.user_name;

Line 6604: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');

6600: exit;
6601: end loop;
6602:
6603: if l_ovn is NULL then
6604: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6605: hr_utility.raise_error;
6606: end if;
6607:
6608: hr_utility.set_location(' User name ' || l_username || ' ' || l_proc , 90);

Line 6605: hr_utility.raise_error;

6601: end loop;
6602:
6603: if l_ovn is NULL then
6604: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6605: hr_utility.raise_error;
6606: end if;
6607:
6608: hr_utility.set_location(' User name ' || l_username || ' ' || l_proc , 90);
6609:

Line 6608: hr_utility.set_location(' User name ' || l_username || ' ' || l_proc , 90);

6604: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6605: hr_utility.raise_error;
6606: end if;
6607:
6608: hr_utility.set_location(' User name ' || l_username || ' ' || l_proc , 90);
6609:
6610: l_canc_pa_request_id := ghr_approved_pa_requests.ghr_cancel_sf52(
6611: p_pa_request_id => p_corr_sf52_detail.pa_request_id
6612: ,p_par_object_version_number => l_ovn

Line 6621: hr_utility.set_location(' Cancellation SF52 not created!! ERROR !! ' || l_proc , 90);

6617: ,p_cancel_legal_authority => p_corr_sf52_detail.cancel_legal_authority);
6618:
6619: -- fetch cancel sf52;
6620: if nvl(l_canc_pa_request_id, 0 ) = 0 then
6621: hr_utility.set_location(' Cancellation SF52 not created!! ERROR !! ' || l_proc , 90);
6622: hr_utility.set_message(8301 , 'GHR_99999_CREA_CANC_52_FAIL');
6623: hr_utility.raise_error;
6624: end if;
6625: for v_get_sf52 in c_get_sf52(l_canc_pa_request_id)

Line 6622: hr_utility.set_message(8301 , 'GHR_99999_CREA_CANC_52_FAIL');

6618:
6619: -- fetch cancel sf52;
6620: if nvl(l_canc_pa_request_id, 0 ) = 0 then
6621: hr_utility.set_location(' Cancellation SF52 not created!! ERROR !! ' || l_proc , 90);
6622: hr_utility.set_message(8301 , 'GHR_99999_CREA_CANC_52_FAIL');
6623: hr_utility.raise_error;
6624: end if;
6625: for v_get_sf52 in c_get_sf52(l_canc_pa_request_id)
6626: loop

Line 6623: hr_utility.raise_error;

6619: -- fetch cancel sf52;
6620: if nvl(l_canc_pa_request_id, 0 ) = 0 then
6621: hr_utility.set_location(' Cancellation SF52 not created!! ERROR !! ' || l_proc , 90);
6622: hr_utility.set_message(8301 , 'GHR_99999_CREA_CANC_52_FAIL');
6623: hr_utility.raise_error;
6624: end if;
6625: for v_get_sf52 in c_get_sf52(l_canc_pa_request_id)
6626: loop
6627: l_sf52_canc := v_get_sf52;

Line 6631: hr_utility.set_location(' Fetch Cancel SF52 failed. ERROR !! ' || l_proc , 100);

6627: l_sf52_canc := v_get_sf52;
6628: exit;
6629: end loop;
6630: if l_sf52_canc.pa_request_id is NULL then
6631: hr_utility.set_location(' Fetch Cancel SF52 failed. ERROR !! ' || l_proc , 100);
6632: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6633: hr_utility.raise_error;
6634: end if;
6635:

Line 6632: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');

6628: exit;
6629: end loop;
6630: if l_sf52_canc.pa_request_id is NULL then
6631: hr_utility.set_location(' Fetch Cancel SF52 failed. ERROR !! ' || l_proc , 100);
6632: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6633: hr_utility.raise_error;
6634: end if;
6635:
6636: -- Call update_sf52

Line 6633: hr_utility.raise_error;

6629: end loop;
6630: if l_sf52_canc.pa_request_id is NULL then
6631: hr_utility.set_location(' Fetch Cancel SF52 failed. ERROR !! ' || l_proc , 100);
6632: hr_utility.set_message(8301 , 'GHR_99999_SF52_NOT_FOUND');
6633: hr_utility.raise_error;
6634: end if;
6635:
6636: -- Call update_sf52
6637: -- This is a recursive call as Process_SF52 is called from ghr_sf52_api.update_sf52

Line 6638: hr_utility.set_location(' BEGIN Update_SF52 for pa_request_id : ' ||

6634: end if;
6635:
6636: -- Call update_sf52
6637: -- This is a recursive call as Process_SF52 is called from ghr_sf52_api.update_sf52
6638: hr_utility.set_location(' BEGIN Update_SF52 for pa_request_id : ' ||
6639: l_sf52_canc.pa_request_id || ' ' || l_proc , 110);
6640: hr_utility.set_location('l_dummy_number '||to_char(l_dummy_number),120);
6641: hr_utility.set_location('l_OVN '||to_char(l_sf52_canc.object_version_number),130);
6642: hr_utility.set_location('l_ASG '||to_char(l_asg_id),140);

Line 6640: hr_utility.set_location('l_dummy_number '||to_char(l_dummy_number),120);

6636: -- Call update_sf52
6637: -- This is a recursive call as Process_SF52 is called from ghr_sf52_api.update_sf52
6638: hr_utility.set_location(' BEGIN Update_SF52 for pa_request_id : ' ||
6639: l_sf52_canc.pa_request_id || ' ' || l_proc , 110);
6640: hr_utility.set_location('l_dummy_number '||to_char(l_dummy_number),120);
6641: hr_utility.set_location('l_OVN '||to_char(l_sf52_canc.object_version_number),130);
6642: hr_utility.set_location('l_ASG '||to_char(l_asg_id),140);
6643: ghr_sf52_api.update_sf52(
6644: p_pa_request_id => l_sf52_canc.pa_request_id

Line 6641: hr_utility.set_location('l_OVN '||to_char(l_sf52_canc.object_version_number),130);

6637: -- This is a recursive call as Process_SF52 is called from ghr_sf52_api.update_sf52
6638: hr_utility.set_location(' BEGIN Update_SF52 for pa_request_id : ' ||
6639: l_sf52_canc.pa_request_id || ' ' || l_proc , 110);
6640: hr_utility.set_location('l_dummy_number '||to_char(l_dummy_number),120);
6641: hr_utility.set_location('l_OVN '||to_char(l_sf52_canc.object_version_number),130);
6642: hr_utility.set_location('l_ASG '||to_char(l_asg_id),140);
6643: ghr_sf52_api.update_sf52(
6644: p_pa_request_id => l_sf52_canc.pa_request_id
6645: ,p_employee_assignment_id => l_asg_id

Line 6642: hr_utility.set_location('l_ASG '||to_char(l_asg_id),140);

6638: hr_utility.set_location(' BEGIN Update_SF52 for pa_request_id : ' ||
6639: l_sf52_canc.pa_request_id || ' ' || l_proc , 110);
6640: hr_utility.set_location('l_dummy_number '||to_char(l_dummy_number),120);
6641: hr_utility.set_location('l_OVN '||to_char(l_sf52_canc.object_version_number),130);
6642: hr_utility.set_location('l_ASG '||to_char(l_asg_id),140);
6643: ghr_sf52_api.update_sf52(
6644: p_pa_request_id => l_sf52_canc.pa_request_id
6645: ,p_employee_assignment_id => l_asg_id
6646: -- OUT parameters

Line 6655: hr_utility.set_location(' END Update_SF52 for pa_request_id : ' ||

6651: ,p_u_action_taken => 'UPDATE_HR'
6652: ,p_u_approval_status => 'APPROVE'
6653: );
6654:
6655: hr_utility.set_location(' END Update_SF52 for pa_request_id : ' ||
6656: l_sf52_canc.pa_request_id || ' ' || l_proc , 120);
6657:
6658: -- Nullify Second_noa_pa_request_id from Correction SF52 beinf cancelled
6659: ghr_par_upd.upd(

Line 6673: hr_utility.set_location(' Deleting Shadow ' || l_sf52_canc.pa_request_id || ' ' || l_proc , 130);

6669: delete ghr_pa_request_ei_shadow
6670: where pa_request_id = l_sf52_canc.pa_request_id;
6671:
6672: -- Delete Cancelation SF50 Shadow row
6673: hr_utility.set_location(' Deleting Shadow ' || l_sf52_canc.pa_request_id || ' ' || l_proc , 130);
6674: Delete from ghr_pa_request_shadow
6675: where pa_request_id = l_sf52_canc.pa_request_id;
6676:
6677: -- Delete Pa_request_EI data

Line 6685: hr_utility.set_location(' Deleting Pa Request ' || l_sf52_canc.pa_request_id || ' ' || l_proc , 140);

6681:
6682: -- Delete pa_reques row
6683: l_sf52_canc.object_version_number := get_sf52_ovn( l_sf52_canc.pa_request_id);
6684:
6685: hr_utility.set_location(' Deleting Pa Request ' || l_sf52_canc.pa_request_id || ' ' || l_proc , 140);
6686: ghr_par_del.del(
6687: p_pa_request_id => l_sf52_canc.pa_request_id,
6688: p_object_version_number => l_sf52_canc.object_version_number);
6689:

Line 6690: hr_utility.set_location(' Leaving ' || l_proc , 200);

6686: ghr_par_del.del(
6687: p_pa_request_id => l_sf52_canc.pa_request_id,
6688: p_object_version_number => l_sf52_canc.object_version_number);
6689:
6690: hr_utility.set_location(' Leaving ' || l_proc , 200);
6691: Exception when others then
6692: --
6693: -- Reset IN OUT parameters and set OUT parameters
6694: --

Line 6749: hr_utility.set_location('Entering Delete Oth Pay Entr '||p_element_name,0);

6745: and NVL(first_noa_cancel_or_correct,'C') <> 'CANCEL';
6746:
6747:
6748: BEGIN
6749: hr_utility.set_location('Entering Delete Oth Pay Entr '||p_element_name,0);
6750:
6751: fnd_profile.get('PER_BUSINESS_GROUP_ID',l_bus_group_id);
6752: l_element_name := pqp_fedhr_uspay_int_utils.return_old_element_name
6753: (p_element_name,l_bus_group_id,p_hist_rec.effective_date);

Line 6754: hr_utility.set_location('l_element_name IS '||l_element_name,10);

6750:
6751: fnd_profile.get('PER_BUSINESS_GROUP_ID',l_bus_group_id);
6752: l_element_name := pqp_fedhr_uspay_int_utils.return_old_element_name
6753: (p_element_name,l_bus_group_id,p_hist_rec.effective_date);
6754: hr_utility.set_location('l_element_name IS '||l_element_name,10);
6755: IF l_element_name = 'Other Pay' THEN
6756: Open c_history_record;
6757: Fetch c_history_record into l_hist_rec;
6758: IF c_history_record%NOTFOUND THEN

Line 6767: hr_utility.set_location('Same day action',70);

6763: Close c_history_record;
6764:
6765:
6766: IF l_history_exists THEN
6767: hr_utility.set_location('Same day action',70);
6768: ELSE
6769: -- Check whether any future dated OTHER PAY Actions exists or not
6770: FOR future_other_pay IN c_future_other_pay_exists(p_hist_rec.information5,p_hist_rec.effective_date)
6771: LOOP

Line 6781: hr_utility.set_location(' Inside Future Other Pay Exists',20);

6777: -- Else
6778: -- Delete the Other Pay element with this element entry ID.
6779: -- End If;
6780: IF l_future_othpay_effective_date IS NOT NULL THEN
6781: hr_utility.set_location(' Inside Future Other Pay Exists',20);
6782: -- DELETE THE RECORD FROM PAY_ELEMENT_ENTRY_VALUES_F;
6783: DELETE pay_element_entry_values_f
6784: where element_entry_id = p_hist_rec.information1
6785: AND effective_start_date BETWEEN fnd_date.canonical_to_date(p_hist_rec.information2)

Line 6788: hr_utility.set_location(' After deleting Other pay element entries',30);

6784: where element_entry_id = p_hist_rec.information1
6785: AND effective_start_date BETWEEN fnd_date.canonical_to_date(p_hist_rec.information2)
6786: AND (l_future_othpay_effective_date - 1) ;
6787:
6788: hr_utility.set_location(' After deleting Other pay element entries',30);
6789: -- DELETE THE RECORD FROM PAY_ELEMENT_ENTRIES_F;
6790: DELETE PAY_ELEMENT_ENTRIES_F
6791: where element_entry_id = p_hist_rec.information1
6792: AND effective_start_date BETWEEN fnd_date.canonical_to_date(p_hist_rec.information2)

Line 6804: hr_utility.set_location(' No Future Other Pay Action exists.',40);

6800: AND effective_date BETWEEN (fnd_date.canonical_to_date(p_hist_rec.information2) + 1)
6801: AND (l_future_othpay_effective_date - 1);
6802:
6803: ELSE
6804: hr_utility.set_location(' No Future Other Pay Action exists.',40);
6805: -- DELETE THE RECORD FROM PAY_ELEMENT_ENTRY_VALUES_F;
6806: DELETE pay_element_entry_values_f
6807: where element_entry_id = p_hist_rec.information1;
6808:

Line 6836: hr_utility.set_location('Leaving delete_other_pay_entries',170);

6832: DELETE PAY_ELEMENT_ENTRIES_F
6833: where element_entry_id = p_hist_rec.information1;
6834: -- AND effective_start_date = fnd_date.canonical_to_date(p_hist_rec.information2);
6835:
6836: hr_utility.set_location('Leaving delete_other_pay_entries',170);
6837: ELSE
6838: hr_utility.set_location('Elements Other than OTHER PAY '||p_element_name,110);
6839:
6840: -- DELETE THE RECORD FROM PAY_ELEMENT_ENTRY_VALUES_F;

Line 6838: hr_utility.set_location('Elements Other than OTHER PAY '||p_element_name,110);

6834: -- AND effective_start_date = fnd_date.canonical_to_date(p_hist_rec.information2);
6835:
6836: hr_utility.set_location('Leaving delete_other_pay_entries',170);
6837: ELSE
6838: hr_utility.set_location('Elements Other than OTHER PAY '||p_element_name,110);
6839:
6840: -- DELETE THE RECORD FROM PAY_ELEMENT_ENTRY_VALUES_F;
6841:
6842: DELETE pay_element_entry_values_f

Line 6852: hr_utility.set_location('Leaving delete_other_pay_entries',70);

6848: DELETE PAY_ELEMENT_ENTRIES_F
6849: where element_entry_id = p_hist_rec.information1
6850: AND effective_start_date = fnd_date.canonical_to_date(p_hist_rec.information2);
6851:
6852: hr_utility.set_location('Leaving delete_other_pay_entries',70);
6853: END IF;
6854:
6855: EXCEPTION
6856: WHEN OTHERS THEN

Line 6857: hr_utility.set_location('ERROR: '||sqlerrm,80);

6853: END IF;
6854:
6855: EXCEPTION
6856: WHEN OTHERS THEN
6857: hr_utility.set_location('ERROR: '||sqlerrm,80);
6858: hr_utility.set_location('Leaving delete_other_pay_entries',90);
6859: END delete_other_pay_entries;
6860: --
6861: -- Bug#2521744 Added the above procedure

Line 6858: hr_utility.set_location('Leaving delete_other_pay_entries',90);

6854:
6855: EXCEPTION
6856: WHEN OTHERS THEN
6857: hr_utility.set_location('ERROR: '||sqlerrm,80);
6858: hr_utility.set_location('Leaving delete_other_pay_entries',90);
6859: END delete_other_pay_entries;
6860: --
6861: -- Bug#2521744 Added the above procedure
6862:

Line 6875: hr_utility.set_location( 'Entering ' || l_proc, 10);

6871:
6872: l_ovn number;
6873: l_proc varchar2(30):='get_sf52_ovn';
6874: Begin
6875: hr_utility.set_location( 'Entering ' || l_proc, 10);
6876: for v_get_sf52 in c_get_sf52 (p_pa_request_id)
6877: loop
6878: l_ovn := v_get_sf52.object_version_number;
6879: end loop;

Line 6880: hr_utility.set_location( 'Leaving ' || l_proc, 20);

6876: for v_get_sf52 in c_get_sf52 (p_pa_request_id)
6877: loop
6878: l_ovn := v_get_sf52.object_version_number;
6879: end loop;
6880: hr_utility.set_location( 'Leaving ' || l_proc, 20);
6881:
6882: return l_ovn;
6883: End get_sf52_ovn;
6884:

Line 6913: hr_utility.set_location( 'Entering ' || l_proc, 5);

6909: l_business_group_id per_grades.business_group_id%type;
6910:
6911: BEGIN
6912: -- First assign the current From pos items to To pos items
6913: hr_utility.set_location( 'Entering ' || l_proc, 5);
6914: l_sf52_ia_rec := p_sf52_ia_rec;
6915: FOR c_sf52_data IN c_from_data LOOP
6916: hr_utility.set_location( 'Assigning the from side to sf52_ia_rec ' || l_proc, 5);
6917: p_sf52_ia_rec.to_position_id := c_sf52_data.from_position_id;

Line 6916: hr_utility.set_location( 'Assigning the from side to sf52_ia_rec ' || l_proc, 5);

6912: -- First assign the current From pos items to To pos items
6913: hr_utility.set_location( 'Entering ' || l_proc, 5);
6914: l_sf52_ia_rec := p_sf52_ia_rec;
6915: FOR c_sf52_data IN c_from_data LOOP
6916: hr_utility.set_location( 'Assigning the from side to sf52_ia_rec ' || l_proc, 5);
6917: p_sf52_ia_rec.to_position_id := c_sf52_data.from_position_id;
6918: p_sf52_ia_rec.to_position_title := c_sf52_data.from_position_title;
6919: p_sf52_ia_rec.to_position_number := c_sf52_data.from_position_number;
6920: p_sf52_ia_rec.TO_POSITION_SEQ_NO := c_sf52_data.FROM_POSITION_SEQ_NO;

Line 6943: hr_utility.set_location( 'Grade ID ' || p_sf52_ia_rec.to_grade_id, 6);

6939: p_sf52_ia_rec.to_grade_or_level IS NOT NULL THEN
6940: FOR l_get_grade_id IN c_grade_id(l_business_group_id,p_sf52_ia_rec.to_pay_plan,
6941: p_sf52_ia_rec.to_grade_or_level,c_sf52_data.effective_date) LOOP
6942: p_sf52_ia_rec.to_grade_id := l_get_grade_id.grade_id;
6943: hr_utility.set_location( 'Grade ID ' || p_sf52_ia_rec.to_grade_id, 6);
6944: END LOOP;
6945: END IF;
6946: -- End Bug 4086845
6947:

Line 6982: hr_utility.set_location( 'Leaving' || l_proc, 20);

6978: ,p_office_symbol => l_dummy_varchar
6979: ,p_part_time_hours => p_sf52_ia_rec.part_time_hours);
6980: EXIT;
6981: END LOOP;
6982: hr_utility.set_location( 'Leaving' || l_proc, 20);
6983: Exception when others then
6984: --
6985: -- Reset IN OUT parameters and set OUT parameters
6986: --

Line 7026: hr_utility.set_location( 'Entering ' || l_proc, 5);

7022: l_noa_fam_code ghr_noa_families.noa_family_code%type;
7023:
7024: BEGIN
7025: -- First assign the current From pos items to To pos items
7026: hr_utility.set_location( 'Entering ' || l_proc, 5);
7027: l_sf52_ia_rec := p_sf52_ia_rec;
7028: -- Bug#2521744 Added by VVL for testing the correction process.
7029: -- for Other pay Elements update nulls as nulls.
7030: -- Added the following code to check whether the Family is Salary change family or not

Line 7044: hr_utility.set_location('NOA Family Code '||l_noa_fam_code,10000);

7040: IF l_noa_fam_code like 'GHR_SAL%' THEN
7041: EXIT;
7042: END IF;
7043: END LOOP;
7044: hr_utility.set_location('NOA Family Code '||l_noa_fam_code,10000);
7045: IF (p_sf52_ia_rec.first_noa_code IN ('810','818','819') OR
7046: p_sf52_ia_rec.second_noa_code IN ('810','818','819') OR
7047: l_noa_fam_code like 'GHR_SAL%'
7048: ) THEN

Line 7086: hr_utility.set_location( 'Leaving' || l_proc, 20);

7082: END IF;
7083: close c_element_exists;
7084: END IF;
7085: -- End of Bug#2521744 Changes.
7086: hr_utility.set_location( 'Leaving' || l_proc, 20);
7087:
7088: EXCEPTION
7089: WHEN OTHERS THEN
7090: --

Line 7161: hr_utility.set_location('If the first correction is not cancelled',1000);

7157: nvl(l_first_corr.from_locality_adj,'-1') <> nvl(l_first_corr.to_locality_adj,'-1')) or
7158: (l_first_corr.to_other_pay_amount is not null and
7159: nvl(l_first_corr.from_other_pay_amount,'-1') <> nvl(l_first_corr.to_other_pay_amount,'-1')))
7160: then
7161: hr_utility.set_location('If the first correction is not cancelled',1000);
7162:
7163: p_sf52_data_result.from_position_id := l_first_corr.to_position_id;
7164: p_sf52_data_result.from_position_title := l_first_corr.to_position_title;
7165: p_sf52_data_result.from_position_number := l_first_corr.to_position_number;

Line 7187: hr_utility.set_location('retro action exists',1000);

7183: p_sf52_data_result.from_position_org_line5 := l_first_corr.to_position_org_line5;
7184: p_sf52_data_result.from_position_org_line6 := l_first_corr.to_position_org_line6;
7185: elsif NVL(p_retro_action_exists,'N') = 'Y' then
7186:
7187: hr_utility.set_location('retro action exists',1000);
7188:
7189: p_sf52_data_result.from_position_id := p_sf52_data.from_position_id;
7190: p_sf52_data_result.from_position_title := p_sf52_data.from_position_title;
7191: p_sf52_data_result.from_position_number := p_sf52_data.from_position_number;

Line 7212: hr_utility.set_location('for change in work schedule',1000);

7208: p_sf52_data_result.from_position_org_line4 := p_sf52_data.from_position_org_line4;
7209: p_sf52_data_result.from_position_org_line5 := p_sf52_data.from_position_org_line5;
7210: p_sf52_data_result.from_position_org_line6 := p_sf52_data.from_position_org_line6;
7211: elsif p_sf52_data_result.noa_family_code in ('CHG_WORK_SCHED', 'CHG_HOURS') then
7212: hr_utility.set_location('for change in work schedule',1000);
7213: p_sf52_data_result.from_position_id := p_sf52_data_result.to_position_id;
7214: p_sf52_data_result.from_position_title := p_sf52_data_result.to_position_title;
7215: p_sf52_data_result.from_position_number := p_sf52_data_result.to_position_number;
7216: p_sf52_data_result.from_position_seq_no := p_sf52_data_result.to_position_seq_no;

Line 7369: hr_utility.set_location('Entering:'|| l_proc, 5);

7365: l_proc varchar2(30):='apply_dual_noa_corrections';
7366: l_dual_flag varchar2(1);
7367: l_retro_action_exists varchar2(1) := 'N';
7368: begin
7369: hr_utility.set_location('Entering:'|| l_proc, 5);
7370: l_sf52_data_result := p_sf52_data_result;
7371: ghr_history_api.get_g_session_var(l_session_var);
7372: -- loop through all corrections in the correction chain, incrementally applying them by
7373: -- calling apply_corrections procedure.

Line 7388: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);

7384: if (l_sf52_cursor_step_indx = 1) then
7385: --Bug # 6356058 start
7386: l_prev_request_id := l_sf52_data_step.pa_request_id;
7387: --Bug # 6356058 end
7388: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
7389: l_sf52_data_orig := l_sf52_data_step;
7390: p_sf52_data_result := l_sf52_data_step;
7391: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
7392: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);

Line 7391: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);

7387: --Bug # 6356058 end
7388: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
7389: l_sf52_data_orig := l_sf52_data_step;
7390: p_sf52_data_result := l_sf52_data_step;
7391: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
7392: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
7393: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
7394: -- .47
7395: -- refresh root sf52 and its correction

Line 7392: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);

7388: hr_utility.set_location('Fetch l_sf52_data_step original :'|| l_proc, 10);
7389: l_sf52_data_orig := l_sf52_data_step;
7390: p_sf52_data_result := l_sf52_data_step;
7391: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
7392: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
7393: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
7394: -- .47
7395: -- refresh root sf52 and its correction
7396: -- get pa_history_id for the root pa_request_id

Line 7393: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);

7389: l_sf52_data_orig := l_sf52_data_step;
7390: p_sf52_data_result := l_sf52_data_step;
7391: hr_utility.set_location('assignment_id of original =' || l_sf52_data_step.employee_assignment_id, 14);
7392: hr_utility.set_location('from grd or leveloriginal =' || l_sf52_data_step.from_grade_or_level, 14);
7393: hr_utility.set_location(l_proc || 'pa_request_id of original= ' || l_sf52_data_step.pa_request_id,26);
7394: -- .47
7395: -- refresh root sf52 and its correction
7396: -- get pa_history_id for the root pa_request_id
7397: open c_get_hist_id( l_sf52_data_step.pa_request_id);

Line 7447: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);

7443: --the two actions this correction is for and call ghr_process_sf52.assign_new_rg to null out columns not having
7444: -- to do with the noa we are correcting.
7445: --l_dual_flag := 'N';
7446: if (p_sf52_data_result.second_noa_id is not null) then
7447: hr_utility.set_location('original sf52 is dual action :'|| l_proc, 11);
7448: ghr_process_sf52.g_dual_action_yn := 'Y';
7449: ghr_process_sf52.g_dual_first_noac := p_sf52_data_result.first_noa_code;
7450: ghr_process_sf52.g_dual_second_noac := p_sf52_data_result.second_noa_code;
7451:

Line 7473: hr_utility.set_location('ghr_process_sf52.g_dual_flag_yn'||ghr_process_sf52.g_dual_action_yn,100);

7469: ghr_process_sf52.null_2ndNoa_cols(p_sf52_data_result);
7470: end if;
7471: -- l_dual_flag := 'Y';
7472: end if;
7473: hr_utility.set_location('ghr_process_sf52.g_dual_flag_yn'||ghr_process_sf52.g_dual_action_yn,100);
7474: hr_utility.set_location('ghr_process_sf52.g_dual_first_noac'||ghr_process_sf52.g_dual_first_noac,100);
7475: hr_utility.set_location('ghr_process_sf52.g_dual_second_noac'||ghr_process_sf52.g_dual_second_noac,100);
7476: -- Nullfy columns which must not be passed
7477: p_sf52_data_result.pa_notification_id := NULL;

Line 7474: hr_utility.set_location('ghr_process_sf52.g_dual_first_noac'||ghr_process_sf52.g_dual_first_noac,100);

7470: end if;
7471: -- l_dual_flag := 'Y';
7472: end if;
7473: hr_utility.set_location('ghr_process_sf52.g_dual_flag_yn'||ghr_process_sf52.g_dual_action_yn,100);
7474: hr_utility.set_location('ghr_process_sf52.g_dual_first_noac'||ghr_process_sf52.g_dual_first_noac,100);
7475: hr_utility.set_location('ghr_process_sf52.g_dual_second_noac'||ghr_process_sf52.g_dual_second_noac,100);
7476: -- Nullfy columns which must not be passed
7477: p_sf52_data_result.pa_notification_id := NULL;
7478: p_sf52_data_result.agency_code := NULL;

Line 7475: hr_utility.set_location('ghr_process_sf52.g_dual_second_noac'||ghr_process_sf52.g_dual_second_noac,100);

7471: -- l_dual_flag := 'Y';
7472: end if;
7473: hr_utility.set_location('ghr_process_sf52.g_dual_flag_yn'||ghr_process_sf52.g_dual_action_yn,100);
7474: hr_utility.set_location('ghr_process_sf52.g_dual_first_noac'||ghr_process_sf52.g_dual_first_noac,100);
7475: hr_utility.set_location('ghr_process_sf52.g_dual_second_noac'||ghr_process_sf52.g_dual_second_noac,100);
7476: -- Nullfy columns which must not be passed
7477: p_sf52_data_result.pa_notification_id := NULL;
7478: p_sf52_data_result.agency_code := NULL;
7479: p_sf52_data_result.approval_date := NULL;

Line 7489: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);

7485: p_sf52_data_result.personnel_office_id := NULL;
7486: p_sf52_data_result.to_office_symbol := NULL;
7487: else
7488: l_retro_pa_request_id := NULL;
7489: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);
7490: -- all corrections will have the original sf52 information in the 2nd noa columns, so
7491: -- copy that information to 1st noa columns.
7492: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7493: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);

Line 7492: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);

7488: l_retro_pa_request_id := NULL;
7489: hr_utility.set_location('Fetch l_sf52_data_step loop :'|| l_proc, 15);
7490: -- all corrections will have the original sf52 information in the 2nd noa columns, so
7491: -- copy that information to 1st noa columns.
7492: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7493: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
7494: -- null the second noa columns since we don't want anything to be done with these now.
7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);

Line 7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);

7491: -- copy that information to 1st noa columns.
7492: hr_utility.set_location('from grd or levelbefcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7493: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
7494: -- null the second noa columns since we don't want anything to be done with these now.
7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);

Line 7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);

7493: ghr_process_sf52.copy_2ndNoa_to_1stNoa(l_sf52_data_step);
7494: -- null the second noa columns since we don't want anything to be done with these now.
7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
7500: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
7501: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',

Line 7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);

7494: -- null the second noa columns since we don't want anything to be done with these now.
7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
7500: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
7501: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
7502: l_sf52_data_step );

Line 7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);

7495: hr_utility.set_location('from grd or levelaftcp2to1 =' || l_sf52_data_step.from_grade_or_level, 14);
7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
7500: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
7501: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
7502: l_sf52_data_step );
7503: ghr_process_sf52.print_sf52('result bef copy_ia_rec_on_result',

Line 7500: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);

7496: ghr_process_sf52.null_2ndNoa_cols(l_sf52_data_step);
7497: hr_utility.set_location('from grd or levelaftnull2noa =' || l_sf52_data_step.from_grade_or_level, 14);
7498: hr_utility.set_location(l_proc || 'pa_request_id before correction= ' || l_sf52_data_step.pa_request_id,16);
7499: hr_utility.set_location(l_proc || 'assignment id before correction= ' || l_sf52_data_step.employee_assignment_id,17);
7500: hr_utility.set_location('from grd or levelbef appcorr =' || l_sf52_data_step.from_grade_or_level, 14);
7501: ghr_process_sf52.print_sf52('l_sf52_step bef apply_correction',
7502: l_sf52_data_step );
7503: ghr_process_sf52.print_sf52('result bef copy_ia_rec_on_result',
7504: p_sf52_data_result );

Line 7512: hr_utility.set_location('Inside the orig_details for loop' ,15);

7508: -- Original action from position_id = to position id
7509: -- Fetch the original action details
7510: FOR c_orig_det_rec in c_orig_details_for_ia
7511: LOOP
7512: hr_utility.set_location('Inside the orig_details for loop' ,15);
7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

Line 7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);

7509: -- Fetch the original action details
7510: FOR c_orig_det_rec in c_orig_details_for_ia
7511: LOOP
7512: hr_utility.set_location('Inside the orig_details for loop' ,15);
7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

Line 7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);

7510: FOR c_orig_det_rec in c_orig_details_for_ia
7511: LOOP
7512: hr_utility.set_location('Inside the orig_details for loop' ,15);
7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

Line 7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);

7511: LOOP
7512: hr_utility.set_location('Inside the orig_details for loop' ,15);
7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
7519: --BUG #7216635 added the parameter p_noa_id_correct

Line 7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);

7512: hr_utility.set_location('Inside the orig_details for loop' ,15);
7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
7519: --BUG #7216635 added the parameter p_noa_id_correct
7520: GHR_APPROVED_PA_REQUESTS.determine_ia(

Line 7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);

7513: hr_utility.set_location('orig pa_request_id'||c_orig_det_rec.pa_request_id ,15);
7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
7519: --BUG #7216635 added the parameter p_noa_id_correct
7520: GHR_APPROVED_PA_REQUESTS.determine_ia(
7521: p_pa_request_id => c_orig_det_rec.pa_request_id,

Line 7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);

7514: hr_utility.set_location('orig pa_notification_id'||c_orig_det_rec.pa_notification_id ,15);
7515: hr_utility.set_location('orig person_id'||c_orig_det_rec.person_id ,15);
7516: hr_utility.set_location('orig from_position_id'||c_orig_det_rec.from_position_id ,15);
7517: hr_utility.set_location('orig to_position_id'||c_orig_det_rec.to_position_id ,15);
7518: hr_utility.set_location('orig effective_date'||c_orig_det_rec.effective_date ,15);
7519: --BUG #7216635 added the parameter p_noa_id_correct
7520: GHR_APPROVED_PA_REQUESTS.determine_ia(
7521: p_pa_request_id => c_orig_det_rec.pa_request_id,
7522: p_pa_notification_id => c_orig_det_rec.pa_notification_id,

Line 7530: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);

7526: p_retro_pa_request_id => l_retro_pa_request_id,
7527: p_retro_eff_date => l_retro_eff_date,
7528: p_retro_first_noa => l_retro_first_noa,
7529: p_retro_second_noa => l_retro_second_noa);
7530: hr_utility.set_location('retro effective_date is '||l_retro_eff_date ,16);
7531: -- Bug#2521744 Splitting the single if condition into 2 separate if conditions.
7532: IF l_retro_eff_date is NOT NULL THEN
7533: IF c_orig_det_rec.from_position_id
7534: = c_orig_det_rec.to_position_id THEN

Line 7536: hr_utility.set_location('Its a Intervening Action ' ,16);

7532: IF l_retro_eff_date is NOT NULL THEN
7533: IF c_orig_det_rec.from_position_id
7534: = c_orig_det_rec.to_position_id THEN
7535: -- copy the from details
7536: hr_utility.set_location('Its a Intervening Action ' ,16);
7537: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);
7538:
7539: get_sf52_to_details_for_ia
7540: (p_pa_request_id => p_sf52_data.pa_request_id,

Line 7537: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);

7533: IF c_orig_det_rec.from_position_id
7534: = c_orig_det_rec.to_position_id THEN
7535: -- copy the from details
7536: hr_utility.set_location('Its a Intervening Action ' ,16);
7537: hr_utility.set_location('pa_request_id passed to get_sf52_to_det '||p_sf52_data.pa_request_id ,17);
7538:
7539: get_sf52_to_details_for_ia
7540: (p_pa_request_id => p_sf52_data.pa_request_id,
7541: p_retro_eff_date => l_retro_eff_date,

Line 7601: hr_utility.set_location('Out side the orig_details for loop' ,17);

7597: -- End Intervening Actions Processing
7598:
7599: --bug #6356058
7600: l_prev_request_id := l_sf52_data_step.pa_request_id;
7601: hr_utility.set_location('Out side the orig_details for loop' ,17);
7602: -- This has been added for dual actions correction processing
7603: --- to copy the to side details of first correction to from side details
7604: --- of second correction while building the correction record
7605: apply_correction( p_sf52rec_correct => l_sf52_data_step,

Line 7613: hr_utility.set_location('in second correction',1000);

7609: --6850492
7610: If l_sf52_data_step.rpa_type = 'DUAL' and l_sf52_data_step.mass_action_id is not null then
7611: for rec_chk_sec_corr in chk_dual_sec_corr(p_pa_request_id => l_sf52_data_step.pa_request_id)
7612: loop
7613: hr_utility.set_location('in second correction',1000);
7614: apply_dual_correction(l_sf52_data_step,p_sf52_data_result,l_retro_action_exists);
7615: end loop;
7616: end if;
7617: --6850492

Line 7643: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);

7639: if p_sf52_data_result.to_other_pay_amount = 0 then
7640: p_sf52_data_result.to_other_pay_amount := null;
7641: end if;
7642: end if;
7643: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
7644: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
7645: end if;
7646: end loop;
7647: close l_sf52_cursor;

Line 7644: hr_utility.set_location('Applied corrections :'|| l_proc, 20);

7640: p_sf52_data_result.to_other_pay_amount := null;
7641: end if;
7642: end if;
7643: hr_utility.set_location( l_proc || 'assignment_id after correction=' || p_sf52_data_result.employee_assignment_id ,18);
7644: hr_utility.set_location('Applied corrections :'|| l_proc, 20);
7645: end if;
7646: end loop;
7647: close l_sf52_cursor;
7648:

Line 7686: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);

7682: ghr_history_api.reinit_g_session_var;
7683: ghr_history_api.set_g_session_var(l_session_var);
7684:
7685: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
7686: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
7687: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
7688: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
7689: --Bug# 5638869
7690: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;

Line 7687: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);

7683: ghr_history_api.set_g_session_var(l_session_var);
7684:
7685: IF l_pos_ei_grade_data.position_extra_info_id IS NOT NULL THEN
7686: hr_utility.set_location('GL: to grd id:'||p_sf52_data_result.to_grade_id,30);
7687: hr_utility.set_location('GL: pos ei grd:'||l_pos_ei_grade_data.poei_information3,40);
7688: IF l_pos_ei_grade_data.poei_information3 <> p_sf52_data_result.to_grade_id THEN
7689: --Bug# 5638869
7690: --p_sf52_data_result.to_grade_id := l_pos_ei_grade_data.poei_information3;
7691: l_pos_ei_grade_data.poei_information3 := p_sf52_data_result.to_grade_id;

Line 7695: hr_utility.set_location('GL: Inside setting pay plan grade',60);

7691: l_pos_ei_grade_data.poei_information3 := p_sf52_data_result.to_grade_id;
7692: --Bug# 5638869
7693: FOR c_grade_kff_rec IN c_grade_kff (p_sf52_data_result.to_grade_id)
7694: LOOP
7695: hr_utility.set_location('GL: Inside setting pay plan grade',60);
7696: p_sf52_data_result.to_pay_plan := c_grade_kff_rec.segment1 ;
7697: p_sf52_data_result.to_grade_or_level := c_grade_kff_rec.segment2;
7698: EXIT;
7699: END LOOP;

Line 7705: hr_utility.set_location(' Leaving:'||l_proc, 25);

7701: END IF;
7702: END IF;
7703: -- Bug#5435374 End of the fix.
7704:
7705: hr_utility.set_location(' Leaving:'||l_proc, 25);
7706: Exception when others then
7707: --
7708: -- Reset IN OUT parameters and set OUT parameters
7709: --