488: l_proc_name constant varchar2(150) := g_pkg||'Default_Person_Rec';
489: l_per_rec per_all_people_f%rowtype;
490: begin
491:
492: Hr_Utility.set_location(' Entering: '||l_proc_name, 5);
493: /*
494: ==========================================================================
495: g_varchar2 constant varchar2(9) := '$Sys_Def$';
496: g_number constant number := -987123654;
502: --l_per_rec.benefit_group_id := hr_api.g_number;
503: l_per_rec.party_id := hr_api.g_number;
504: l_per_rec.comment_id := hr_api.g_number;
505:
506: Hr_Utility.set_location(l_proc_name, 6);
507:
508: --l_per_rec.date_employee_data_verified := hr_api.g_date;
509: --l_per_rec.date_of_birth := hr_api.g_date;
510: --l_per_rec.original_date_of_hire := hr_api.g_date;
534: l_per_rec.sex := hr_api.g_varchar2;
535: l_per_rec.title := hr_api.g_varchar2;
536: l_per_rec.work_telephone := hr_api.g_varchar2;
537:
538: Hr_Utility.set_location(l_proc_name, 7);
539:
540: l_per_rec.attribute_category := hr_api.g_varchar2;
541: l_per_rec.attribute1 := hr_api.g_varchar2;
542: l_per_rec.attribute2 := hr_api.g_varchar2;
568: l_per_rec.attribute28 := hr_api.g_varchar2;
569: l_per_rec.attribute29 := hr_api.g_varchar2;
570: l_per_rec.attribute30 := hr_api.g_varchar2;
571:
572: Hr_Utility.set_location(l_proc_name, 8);
573:
574: l_per_rec.per_information_category := hr_api.g_varchar2;
575: l_per_rec.per_information1 := hr_api.g_varchar2;
576: l_per_rec.per_information2 := hr_api.g_varchar2;
602: l_per_rec.per_information28 := hr_api.g_varchar2;
603: l_per_rec.per_information29 := hr_api.g_varchar2;
604: l_per_rec.per_information30 := hr_api.g_varchar2;
605:
606: Hr_Utility.set_location(l_proc_name, 9);
607:
608: l_per_rec.background_check_status := hr_api.g_varchar2;
609: l_per_rec.blood_type := hr_api.g_varchar2;
610: l_per_rec.correspondence_language := hr_api.g_varchar2;
637: l_per_rec.country_of_birth := hr_api.g_varchar2;
638: l_per_rec.global_person_id := hr_api.g_varchar2;
639: l_per_rec.npw_number := hr_api.g_varchar2;
640:
641: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
642: return l_per_rec;
643: exception
644: when others then
645: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
641: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
642: return l_per_rec;
643: exception
644: when others then
645: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
646: raise;
647:
648: end Default_Person_Rec;
649: -- =============================================================================
671: col_name varchar2(150);
672: l_proc_name constant varchar2(150) := g_pkg||'Default_Person_Rec';
673: begin
674:
675: Hr_Utility.set_location(' Entering: '||l_proc_name, 5);
676:
677: l_per_rec := Default_Person_Rec;
678:
679: for col_rec in bne_cols (g_interface_code)
804: when 'attribute_category' then
805: l_per_rec.attribute_category := g_per_rec.attribute_category;
806: if l_per_rec.attribute_category is not null then
807: for col_rec1 in bne_cols_no_disp(g_interface_code) loop
808: --hr_utility.trace('$$UPD: attribute_category columns: '|| col_rec1.interface_col_name);
809: case col_rec1.interface_col_name
810: when 'attribute1' then
811: l_per_rec.attribute1 := g_per_rec.attribute1;
812: when 'attribute2' then
876: -- Person Legislative DDF
877: when 'per_information_category' then
878: l_per_rec.per_information_category := g_per_rec.per_information_category;
879: if l_per_rec.per_information_category is not null then
880: --hr_utility.trace('$$UPD: Inside per_information_category: '||l_per_rec.per_information_category);
881: for col_rec1 in bne_cols_no_disp(g_interface_code) loop
882: --hr_utility.trace('$$UPD: per_information_category Columns: '||col_rec1.interface_col_name);
883: case col_rec1.interface_col_name
884: when 'per_information1' then
878: l_per_rec.per_information_category := g_per_rec.per_information_category;
879: if l_per_rec.per_information_category is not null then
880: --hr_utility.trace('$$UPD: Inside per_information_category: '||l_per_rec.per_information_category);
881: for col_rec1 in bne_cols_no_disp(g_interface_code) loop
882: --hr_utility.trace('$$UPD: per_information_category Columns: '||col_rec1.interface_col_name);
883: case col_rec1.interface_col_name
884: when 'per_information1' then
885: l_per_rec.per_information1 := g_per_rec.per_information1;
886: when 'per_information2' then
949: else
950: null;
951: end case;
952: end loop;
953: Hr_Utility.set_location(' Leaving: '||l_proc_name, 80);
954: return l_per_rec;
955:
956: end Get_PerRecord_Values;
957: -- =============================================================================
961: return per_all_assignments_f%rowtype is
962: l_proc_name constant varchar2(150) := g_pkg||'Default_Assignment_Rec';
963: l_asg_rec per_all_assignments_f%rowtype;
964: begin
965: Hr_Utility.set_location(' Entering: '||l_proc_name, 5);
966: /*
967: ======================================================================
968: g_varchar2 constant varchar2(9):= '$Sys_Def$';
969: g_number constant number := -987123654;
985: l_asg_rec.special_ceiling_step_id := hr_api.g_number;
986: l_asg_rec.people_group_id := hr_api.g_number;
987: l_asg_rec.soft_coding_keyflex_id := hr_api.g_number;
988:
989: Hr_Utility.set_location(l_proc_name, 10);
990:
991: l_asg_rec.supervisor_id := hr_api.g_number;
992: l_asg_rec.assignment_number := hr_api.g_varchar2;
993: l_asg_rec.change_reason := hr_api.g_varchar2;
1011: l_asg_rec.bargaining_unit_code := hr_api.g_varchar2;
1012: l_asg_rec.labour_union_member_flag := hr_api.g_varchar2;
1013: l_asg_rec.hourly_salaried_code := hr_api.g_varchar2;
1014:
1015: Hr_Utility.set_location(l_proc_name, 15);
1016:
1017: l_asg_rec.ass_attribute_category := hr_api.g_varchar2;
1018: l_asg_rec.ass_attribute1 := hr_api.g_varchar2;
1019: l_asg_rec.ass_attribute2 := hr_api.g_varchar2;
1045: l_asg_rec.ass_attribute28 := hr_api.g_varchar2;
1046: l_asg_rec.ass_attribute29 := hr_api.g_varchar2;
1047: l_asg_rec.ass_attribute30 := hr_api.g_varchar2;
1048:
1049: Hr_Utility.set_location(l_proc_name, 20);
1050:
1051: l_asg_rec.title := hr_api.g_varchar2;
1052: l_asg_rec.contract_id := hr_api.g_number;
1053: l_asg_rec.establishment_id := hr_api.g_number;
1056: l_asg_rec.notice_period_uom := hr_api.g_varchar2;
1057: l_asg_rec.employee_category := hr_api.g_varchar2;
1058: l_asg_rec.supervisor_assignment_id := hr_api.g_number;
1059:
1060: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1061: return l_asg_rec;
1062: exception
1063: when others then
1064: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1060: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1061: return l_asg_rec;
1062: exception
1063: when others then
1064: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1065: raise;
1066:
1067: end Default_Assignment_Rec;
1068: -- =============================================================================
1089: l_asg_rec per_all_assignments_f%rowtype;
1090: col_name varchar2(150);
1091:
1092: begin
1093: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
1094: --$ check if secondary assignment is to be created
1095: -- If yes (i.e. flag is set to 1 ) then initialize to null else to hr_api variable
1096: -- type
1097: if g_sec_asg_flag <> 1 then
1182: when 'p_location_id' then
1183: l_asg_rec.location_id := g_asg_rec.location_id;
1184: -- Assignment User Defined DF
1185: when 'ass_attribute_category' then
1186: -- hr_utility.trace('IN GET_ASGRECORD_VALUES, when ass_att_cat');
1187: l_asg_rec.ass_attribute_category := g_asg_rec.ass_attribute_category;
1188: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute_cat='||l_asg_rec.ass_attribute_category);
1189: if l_asg_rec.ass_attribute_category is not null then
1190: --hr_utility.trace('IN GET_ASGRECORD_VALUES intfcolname'|| col_rec.interface_col_name);
1184: -- Assignment User Defined DF
1185: when 'ass_attribute_category' then
1186: -- hr_utility.trace('IN GET_ASGRECORD_VALUES, when ass_att_cat');
1187: l_asg_rec.ass_attribute_category := g_asg_rec.ass_attribute_category;
1188: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute_cat='||l_asg_rec.ass_attribute_category);
1189: if l_asg_rec.ass_attribute_category is not null then
1190: --hr_utility.trace('IN GET_ASGRECORD_VALUES intfcolname'|| col_rec.interface_col_name);
1191:
1192: -- Added by Dbansal -> Another nested loop to set the values of DFF segments
1186: -- hr_utility.trace('IN GET_ASGRECORD_VALUES, when ass_att_cat');
1187: l_asg_rec.ass_attribute_category := g_asg_rec.ass_attribute_category;
1188: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute_cat='||l_asg_rec.ass_attribute_category);
1189: if l_asg_rec.ass_attribute_category is not null then
1190: --hr_utility.trace('IN GET_ASGRECORD_VALUES intfcolname'|| col_rec.interface_col_name);
1191:
1192: -- Added by Dbansal -> Another nested loop to set the values of DFF segments
1193: for col_rec1 in bne_cols_no_disp(g_interface_code) loop
1194: -- hr_utility.trace('IN GET_ASGRECORD_VALUES Nested:'|| col_rec1.interface_col_name);
1190: --hr_utility.trace('IN GET_ASGRECORD_VALUES intfcolname'|| col_rec.interface_col_name);
1191:
1192: -- Added by Dbansal -> Another nested loop to set the values of DFF segments
1193: for col_rec1 in bne_cols_no_disp(g_interface_code) loop
1194: -- hr_utility.trace('IN GET_ASGRECORD_VALUES Nested:'|| col_rec1.interface_col_name);
1195: case col_rec1.interface_col_name
1196: when 'ass_attribute1' then
1197: l_asg_rec.ass_attribute1 := g_asg_rec.ass_attribute1;
1198: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute1='||l_asg_rec.ass_attribute1);
1194: -- hr_utility.trace('IN GET_ASGRECORD_VALUES Nested:'|| col_rec1.interface_col_name);
1195: case col_rec1.interface_col_name
1196: when 'ass_attribute1' then
1197: l_asg_rec.ass_attribute1 := g_asg_rec.ass_attribute1;
1198: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute1='||l_asg_rec.ass_attribute1);
1199: when 'ass_attribute2' then
1200: l_asg_rec.ass_attribute2 := g_asg_rec.ass_attribute2;
1201: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute2='||l_asg_rec.ass_attribute2);
1202: when 'ass_attribute3' then
1197: l_asg_rec.ass_attribute1 := g_asg_rec.ass_attribute1;
1198: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute1='||l_asg_rec.ass_attribute1);
1199: when 'ass_attribute2' then
1200: l_asg_rec.ass_attribute2 := g_asg_rec.ass_attribute2;
1201: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute2='||l_asg_rec.ass_attribute2);
1202: when 'ass_attribute3' then
1203: l_asg_rec.ass_attribute3 := g_asg_rec.ass_attribute3;
1204: when 'ass_attribute4' then
1205: l_asg_rec.ass_attribute4 := g_asg_rec.ass_attribute4;
1214: when 'ass_attribute9' then
1215: l_asg_rec.ass_attribute9 := g_asg_rec.ass_attribute9;
1216: when 'ass_attribute10' then
1217: l_asg_rec.ass_attribute10 := g_asg_rec.ass_attribute10;
1218: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute10='||l_asg_rec.ass_attribute10);
1219: when 'ass_attribute11' then
1220: l_asg_rec.ass_attribute11 := g_asg_rec.ass_attribute11;
1221: when 'ass_attribute12' then
1222: l_asg_rec.ass_attribute12 := g_asg_rec.ass_attribute12;
1219: when 'ass_attribute11' then
1220: l_asg_rec.ass_attribute11 := g_asg_rec.ass_attribute11;
1221: when 'ass_attribute12' then
1222: l_asg_rec.ass_attribute12 := g_asg_rec.ass_attribute12;
1223: --hr_utility.trace('IN GET_ASGRECORD_VALUES ass_attribute12='||l_asg_rec.ass_attribute12);
1224: when 'ass_attribute13' then
1225: l_asg_rec.ass_attribute13 := g_asg_rec.ass_attribute13;
1226: when 'ass_attribute14' then
1227: l_asg_rec.ass_attribute14 := g_asg_rec.ass_attribute14;
1267: end case;
1268: end loop;
1269:
1270: return l_Asg_rec;
1271: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1272: exception
1273: when others then
1274: Hr_Utility.set_location('Error Leaving: '||l_proc_name, 90);
1275: raise;
1270: return l_Asg_rec;
1271: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1272: exception
1273: when others then
1274: Hr_Utility.set_location('Error Leaving: '||l_proc_name, 90);
1275: raise;
1276:
1277: end Get_AsgRecord_Values;
1278:
1283: return pay_people_groups%rowtype is
1284: l_proc_name constant varchar2(150) := g_pkg||'Default_PpgFlx_Rec';
1285: l_grp_rec pay_people_groups%rowtype;
1286: begin
1287: Hr_Utility.set_location(' Entering: '||l_proc_name, 5);
1288: /*
1289: ======================================================================
1290: hr_api defaults:
1291: g_varchar2 constant varchar2(9):= '$Sys_Def$';
1294: ======================================================================
1295: */
1296: l_grp_rec.group_name := hr_api.g_varchar2;
1297:
1298: Hr_Utility.set_location(' First : Default_PpgFlx_Rec'||l_grp_rec.group_name, 5);
1299:
1300: l_grp_rec.segment1 := hr_api.g_varchar2;
1301: l_grp_rec.segment2 := hr_api.g_varchar2;
1302: l_grp_rec.segment3 := hr_api.g_varchar2;
1305: l_grp_rec.segment6 := hr_api.g_varchar2;
1306: l_grp_rec.segment7 := hr_api.g_varchar2;
1307: l_grp_rec.segment8 := hr_api.g_varchar2;
1308: l_grp_rec.segment9 := hr_api.g_varchar2;
1309: Hr_Utility.set_location('Default_PpgFlx_Rec', 15);
1310: l_grp_rec.segment10 := hr_api.g_varchar2;
1311: l_grp_rec.segment11 := hr_api.g_varchar2;
1312: l_grp_rec.segment12 := hr_api.g_varchar2;
1313: l_grp_rec.segment13 := hr_api.g_varchar2;
1316: l_grp_rec.segment16 := hr_api.g_varchar2;
1317: l_grp_rec.segment17 := hr_api.g_varchar2;
1318: l_grp_rec.segment18 := hr_api.g_varchar2;
1319: l_grp_rec.segment19 := hr_api.g_varchar2;
1320: Hr_Utility.set_location('Default_PpgFlx_Rec', 20);
1321: l_grp_rec.segment20 := hr_api.g_varchar2;
1322: l_grp_rec.segment21 := hr_api.g_varchar2;
1323: l_grp_rec.segment22 := hr_api.g_varchar2;
1324: l_grp_rec.segment23 := hr_api.g_varchar2;
1329: l_grp_rec.segment28 := hr_api.g_varchar2;
1330: l_grp_rec.segment29 := hr_api.g_varchar2;
1331: l_grp_rec.segment30 := hr_api.g_varchar2;
1332:
1333: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1334: return l_grp_rec;
1335:
1336: exception
1337: when others then
1335:
1336: exception
1337: when others then
1338: if g_debug then
1339: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1340: end if;
1341: raise;
1342:
1343: end Default_PpgFlx_Rec;
1361: l_grp_rec pay_people_groups%rowtype;
1362: col_name varchar2(150);
1363:
1364: begin
1365: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
1366: if g_sec_asg_flag <> 1 then
1367: l_grp_rec := Default_PpgFlx_Rec;
1368: else
1369: l_grp_rec := null;
1437: else
1438: null;
1439: end case;
1440: end loop;
1441: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1442: return l_grp_rec;
1443:
1444: exception
1445: when others then
1442: return l_grp_rec;
1443:
1444: exception
1445: when others then
1446: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1447: raise;
1448:
1449: end Get_GrpRecord_Values;
1450:
1455: return hr_soft_coding_keyflex%rowtype is
1456: l_proc_name constant varchar2(150) := g_pkg||'Default_Scflx_Rec';
1457: l_scl_rec hr_soft_coding_keyflex%rowtype;
1458: begin
1459: Hr_Utility.set_location(' Entering: '||l_proc_name, 5);
1460: /*
1461: ======================================================================
1462: g_varchar2 constant varchar2(9):= '$Sys_Def$';
1463: g_number constant number := -987123654;
1473: l_scl_rec.segment6 := hr_api.g_varchar2;
1474: l_scl_rec.segment7 := hr_api.g_varchar2;
1475: l_scl_rec.segment8 := hr_api.g_varchar2;
1476: l_scl_rec.segment9 := hr_api.g_varchar2;
1477: Hr_Utility.set_location(l_proc_name, 15);
1478: l_scl_rec.segment10 := hr_api.g_varchar2;
1479: l_scl_rec.segment11 := hr_api.g_varchar2;
1480: l_scl_rec.segment12 := hr_api.g_varchar2;
1481: l_scl_rec.segment13 := hr_api.g_varchar2;
1484: l_scl_rec.segment16 := hr_api.g_varchar2;
1485: l_scl_rec.segment17 := hr_api.g_varchar2;
1486: l_scl_rec.segment18 := hr_api.g_varchar2;
1487: l_scl_rec.segment19 := hr_api.g_varchar2;
1488: Hr_Utility.set_location(l_proc_name, 20);
1489: l_scl_rec.segment20 := hr_api.g_varchar2;
1490: l_scl_rec.segment21 := hr_api.g_varchar2;
1491: l_scl_rec.segment22 := hr_api.g_varchar2;
1492: l_scl_rec.segment23 := hr_api.g_varchar2;
1497: l_scl_rec.segment28 := hr_api.g_varchar2;
1498: l_scl_rec.segment29 := hr_api.g_varchar2;
1499: l_scl_rec.segment30 := hr_api.g_varchar2;
1500:
1501: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1502: return l_scl_rec;
1503: exception
1504: when others then
1505: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1501: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1502: return l_scl_rec;
1503: exception
1504: when others then
1505: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1506: raise;
1507:
1508: end Default_Scflx_Rec;
1509:
1529: l_scl_rec hr_soft_coding_keyflex%rowtype;
1530: col_name varchar2(150);
1531:
1532: begin
1533: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
1534: if g_sec_asg_flag <> 1 then
1535: l_scl_rec := Default_Scflx_Rec;
1536: else
1537: l_scl_rec := null;
1633: null;
1634: end case;
1635:
1636: end loop;
1637: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1638: return l_scl_rec;
1639:
1640: exception
1641: when others then
1638: return l_scl_rec;
1639:
1640: exception
1641: when others then
1642: Hr_Utility.set_location('Leaving: '||l_proc_name, 90);
1643: raise;
1644:
1645: end Get_ScflxRecord_Values;
1646: -- =============================================================================
1661: l_dyn_sql_qry varchar2(1000);
1662: l_national_identifier per_all_people_f.national_identifier%type;
1663:
1664: begin
1665: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
1666:
1667: if p_web_adi_identifier = 'DP ERROR' and
1668: (substrb(p_national_identifier, 1,
1669: lengthb(p_national_identifier) - 4) = 'XXX-XX-' or
1687: else
1688: l_national_identifier := p_national_identifier;
1689: end if;
1690: if g_debug then
1691: Hr_Utility.set_location(' p_batch_id: '||p_batch_id, 50);
1692: Hr_Utility.set_location(' p_data_pump_batch_line_id: '||p_data_pump_batch_line_id, 50);
1693: Hr_Utility.set_location(' p_web_adi_identifier: '||p_web_adi_identifier, 50);
1694: Hr_Utility.set_location(' l_national_identifier: '||l_national_identifier, 50);
1695: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1688: l_national_identifier := p_national_identifier;
1689: end if;
1690: if g_debug then
1691: Hr_Utility.set_location(' p_batch_id: '||p_batch_id, 50);
1692: Hr_Utility.set_location(' p_data_pump_batch_line_id: '||p_data_pump_batch_line_id, 50);
1693: Hr_Utility.set_location(' p_web_adi_identifier: '||p_web_adi_identifier, 50);
1694: Hr_Utility.set_location(' l_national_identifier: '||l_national_identifier, 50);
1695: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1696: end if;
1689: end if;
1690: if g_debug then
1691: Hr_Utility.set_location(' p_batch_id: '||p_batch_id, 50);
1692: Hr_Utility.set_location(' p_data_pump_batch_line_id: '||p_data_pump_batch_line_id, 50);
1693: Hr_Utility.set_location(' p_web_adi_identifier: '||p_web_adi_identifier, 50);
1694: Hr_Utility.set_location(' l_national_identifier: '||l_national_identifier, 50);
1695: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1696: end if;
1697: return l_national_identifier;
1690: if g_debug then
1691: Hr_Utility.set_location(' p_batch_id: '||p_batch_id, 50);
1692: Hr_Utility.set_location(' p_data_pump_batch_line_id: '||p_data_pump_batch_line_id, 50);
1693: Hr_Utility.set_location(' p_web_adi_identifier: '||p_web_adi_identifier, 50);
1694: Hr_Utility.set_location(' l_national_identifier: '||l_national_identifier, 50);
1695: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1696: end if;
1697: return l_national_identifier;
1698:
1691: Hr_Utility.set_location(' p_batch_id: '||p_batch_id, 50);
1692: Hr_Utility.set_location(' p_data_pump_batch_line_id: '||p_data_pump_batch_line_id, 50);
1693: Hr_Utility.set_location(' p_web_adi_identifier: '||p_web_adi_identifier, 50);
1694: Hr_Utility.set_location(' l_national_identifier: '||l_national_identifier, 50);
1695: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1696: end if;
1697: return l_national_identifier;
1698:
1699: end Get_UnMasked_NI;
1750:
1751: begin
1752:
1753: if g_migration_flag = 'Y' then
1754: hr_utility.set_location('The migration flag is y', 78);
1755: open csr_chk_per_exists_mig (c_business_group_id => p_business_group_id
1756: ,c_effective_date => p_effective_date);
1757: fetch csr_chk_per_exists_mig into l_per_exists;
1758: if csr_chk_per_exists_mig%found then
1755: open csr_chk_per_exists_mig (c_business_group_id => p_business_group_id
1756: ,c_effective_date => p_effective_date);
1757: fetch csr_chk_per_exists_mig into l_per_exists;
1758: if csr_chk_per_exists_mig%found then
1759: hr_utility.trace('PERSON EXISTS');
1760: g_per_rec.person_id := l_per_exists.person_id;
1761: g_per_rec.business_group_id := l_per_exists.business_group_id;
1762: --g_per_rec.employee_number := l_per_rec.employee_number;
1763: --g_per_rec.applicant_number := l_per_rec.applicant_number;
1769: g_add_rec.party_id := l_per_exists.party_id;
1770:
1771: l_person_id := g_per_rec.person_id;
1772: end if;
1773: hr_utility.trace('PERSON DOES NOT EXIST');
1774: close csr_chk_per_exists_mig;
1775: else
1776: hr_utility.set_location('The migration flag is n', 78);
1777: open csr_chk_per_exists (c_business_group_id => p_business_group_id
1772: end if;
1773: hr_utility.trace('PERSON DOES NOT EXIST');
1774: close csr_chk_per_exists_mig;
1775: else
1776: hr_utility.set_location('The migration flag is n', 78);
1777: open csr_chk_per_exists (c_business_group_id => p_business_group_id
1778: ,c_effective_date => p_effective_date);
1779: fetch csr_chk_per_exists into l_per_exists;
1780: if csr_chk_per_exists%found then
1777: open csr_chk_per_exists (c_business_group_id => p_business_group_id
1778: ,c_effective_date => p_effective_date);
1779: fetch csr_chk_per_exists into l_per_exists;
1780: if csr_chk_per_exists%found then
1781: hr_utility.set_location('Records are found', 89);
1782: if csr_chk_per_exists%rowcount = 1 then
1783: --hr_utility.trace('PERSON EXISTS');
1784: hr_utility.set_location('One record is found', 90);
1785: g_per_rec.person_id := l_per_exists.person_id;
1779: fetch csr_chk_per_exists into l_per_exists;
1780: if csr_chk_per_exists%found then
1781: hr_utility.set_location('Records are found', 89);
1782: if csr_chk_per_exists%rowcount = 1 then
1783: --hr_utility.trace('PERSON EXISTS');
1784: hr_utility.set_location('One record is found', 90);
1785: g_per_rec.person_id := l_per_exists.person_id;
1786: g_per_rec.business_group_id := l_per_exists.business_group_id;
1787: --g_per_rec.employee_number := l_per_rec.employee_number;
1780: if csr_chk_per_exists%found then
1781: hr_utility.set_location('Records are found', 89);
1782: if csr_chk_per_exists%rowcount = 1 then
1783: --hr_utility.trace('PERSON EXISTS');
1784: hr_utility.set_location('One record is found', 90);
1785: g_per_rec.person_id := l_per_exists.person_id;
1786: g_per_rec.business_group_id := l_per_exists.business_group_id;
1787: --g_per_rec.employee_number := l_per_rec.employee_number;
1788: --g_per_rec.applicant_number := l_per_rec.applicant_number;
1794: g_add_rec.party_id := l_per_exists.party_id;
1795:
1796: l_person_id := g_per_rec.person_id;
1797: else
1798: hr_utility.set_location('More than one record is found', 91);
1799: l_person_id := p_dup_person_id;
1800: end if;
1801: end if;
1802: hr_utility.trace('Code has come here');
1798: hr_utility.set_location('More than one record is found', 91);
1799: l_person_id := p_dup_person_id;
1800: end if;
1801: end if;
1802: hr_utility.trace('Code has come here');
1803: close csr_chk_per_exists;
1804: end if;
1805:
1806: hr_utility.set_location('The person id found is '||l_person_id, 92);
1802: hr_utility.trace('Code has come here');
1803: close csr_chk_per_exists;
1804: end if;
1805:
1806: hr_utility.set_location('The person id found is '||l_person_id, 92);
1807: return l_person_id;
1808: end Chk_Dup_Person;
1809: -- =============================================================================
1810: -- Chk_NI_Exists: Check if NI entered already exists in the system, that implies
1841: l_person_id per_all_people_f.person_id%type := null;
1842:
1843: l_proc_name constant varchar2(150) := g_pkg||'Chk_NI_Exists';
1844: begin
1845: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
1846:
1847: --$ If national identifier is available (for US legislation for e.g.)
1848: -- then use it to check if the person record exists or not
1849: -- else use Combination of person details to check the same
1848: -- then use it to check if the person record exists or not
1849: -- else use Combination of person details to check the same
1850: if p_national_identifier is not null then
1851:
1852: --hr_utility.trace('NATIONAL IDENTIFIER AVAILABLE');
1853: hr_utility.set_location('The national identifier is found '||p_national_identifier, 78);
1854: hr_utility.set_location('The bg id found is '||p_business_group_id, 79);
1855: hr_utility.set_location('The date found is '||p_effective_date, 80);
1856:
1849: -- else use Combination of person details to check the same
1850: if p_national_identifier is not null then
1851:
1852: --hr_utility.trace('NATIONAL IDENTIFIER AVAILABLE');
1853: hr_utility.set_location('The national identifier is found '||p_national_identifier, 78);
1854: hr_utility.set_location('The bg id found is '||p_business_group_id, 79);
1855: hr_utility.set_location('The date found is '||p_effective_date, 80);
1856:
1857: open csr_chk_ni_exists(c_national_identifier => p_national_identifier
1850: if p_national_identifier is not null then
1851:
1852: --hr_utility.trace('NATIONAL IDENTIFIER AVAILABLE');
1853: hr_utility.set_location('The national identifier is found '||p_national_identifier, 78);
1854: hr_utility.set_location('The bg id found is '||p_business_group_id, 79);
1855: hr_utility.set_location('The date found is '||p_effective_date, 80);
1856:
1857: open csr_chk_ni_exists(c_national_identifier => p_national_identifier
1858: ,c_business_group_id => p_business_group_id
1851:
1852: --hr_utility.trace('NATIONAL IDENTIFIER AVAILABLE');
1853: hr_utility.set_location('The national identifier is found '||p_national_identifier, 78);
1854: hr_utility.set_location('The bg id found is '||p_business_group_id, 79);
1855: hr_utility.set_location('The date found is '||p_effective_date, 80);
1856:
1857: open csr_chk_ni_exists(c_national_identifier => p_national_identifier
1858: ,c_business_group_id => p_business_group_id
1859: ,c_effective_date => p_effective_date);
1859: ,c_effective_date => p_effective_date);
1860:
1861: fetch csr_chk_ni_exists into l_per_rec;
1862: if csr_chk_ni_exists%found then
1863: hr_utility.set_location('Records are found ', 89);
1864:
1865: hr_utility.trace('PERSON EXISTS by NI');
1866: g_per_rec.person_id := l_per_rec.person_id;
1867: g_per_rec.business_group_id := l_per_rec.business_group_id;
1861: fetch csr_chk_ni_exists into l_per_rec;
1862: if csr_chk_ni_exists%found then
1863: hr_utility.set_location('Records are found ', 89);
1864:
1865: hr_utility.trace('PERSON EXISTS by NI');
1866: g_per_rec.person_id := l_per_rec.person_id;
1867: g_per_rec.business_group_id := l_per_rec.business_group_id;
1868: --g_per_rec.employee_number := l_per_rec.employee_number;
1869: --g_per_rec.applicant_number := l_per_rec.applicant_number;
1874: g_add_rec.business_group_id := l_per_rec.business_group_id;
1875: g_add_rec.party_id := l_per_rec.party_id;
1876:
1877: l_person_id := g_per_rec.person_id;
1878: hr_utility.set_location('The person id found is ' || l_person_id, 78);
1879: else
1880: hr_utility.set_location('No Match found', 22);
1881: l_person_id := Chk_Dup_Person
1882: (p_national_identifier => p_national_identifier
1876:
1877: l_person_id := g_per_rec.person_id;
1878: hr_utility.set_location('The person id found is ' || l_person_id, 78);
1879: else
1880: hr_utility.set_location('No Match found', 22);
1881: l_person_id := Chk_Dup_Person
1882: (p_national_identifier => p_national_identifier
1883: ,p_business_group_id => p_business_group_id
1884: ,p_effective_date => p_effective_date
1895: );
1896:
1897: end if;
1898:
1899: hr_utility.set_location('The person id found is '|| l_person_id, 66);
1900: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1901:
1902: return l_person_id ; --$ l_per_rec.person_id;
1903:
1896:
1897: end if;
1898:
1899: hr_utility.set_location('The person id found is '|| l_person_id, 66);
1900: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
1901:
1902: return l_person_id ; --$ l_per_rec.person_id;
1903:
1904: end Chk_NI_Exists;
1915: l_job_name per_jobs.name%type;
1916: l_position_name hr_all_positions_f.name%type;
1917: l_grade_name per_grades.name%type;
1918: begin
1919: hr_utility.set_location('Entering: ' || l_proc_name, 5);
1920: g_wstr_names := null;
1921: -- Get grade name
1922: open csr_grade(g_asg_rec.grade_id
1923: ,g_asg_rec.business_group_id
1923: ,g_asg_rec.business_group_id
1924: ,g_per_rec.start_date);
1925: fetch csr_grade into l_grade_name;
1926: if csr_grade%notfound then
1927: hr_utility.set_location('..Grade Name not found Id: ' ||
1928: g_asg_rec.grade_id, 6);
1929: else
1930: g_wstr_names.grade_name := l_grade_name;
1931: end if;
1935: ,g_asg_rec.business_group_id
1936: ,g_per_rec.start_date);
1937: fetch csr_position into l_position_name;
1938: if csr_position%notfound then
1939: hr_utility.set_location('..Position Name not found Id: ' ||
1940: g_asg_rec.position_id, 7);
1941: else
1942: g_wstr_names.position_name := l_position_name;
1943: end if;
1947: ,g_asg_rec.business_group_id
1948: ,g_per_rec.start_date);
1949: fetch csr_job into l_job_name;
1950: if csr_job%notfound then
1951: hr_utility.set_location('..Job Name not found Id: ' ||
1952: g_asg_rec.job_id, 8);
1953: else
1954: g_wstr_names.job_name := l_job_name;
1955: end if;
1959: ,g_asg_rec.business_group_id
1960: ,g_per_rec.start_date);
1961: fetch csr_payroll into l_payroll_name;
1962: if csr_payroll%notfound then
1963: hr_utility.set_location('..Payroll Name not found Id: ' ||
1964: g_asg_rec.payroll_id, 9);
1965: else
1966: g_wstr_names.payroll_name := l_payroll_name;
1967: end if;
1970: open csr_location(g_asg_rec.location_id
1971: ,g_asg_rec.business_group_id);
1972: fetch csr_location into l_location_code;
1973: if csr_location%notfound then
1974: hr_utility.set_location('..Location Code not found, Id: ' ||
1975: g_asg_rec.location_id, 10);
1976: else
1977: g_wstr_names.location_code := l_location_code;
1978: end if;
1982: ,g_asg_rec.business_group_id
1983: ,g_per_rec.start_date);
1984: fetch csr_organization into l_organization_name;
1985: if csr_organization%notfound then
1986: hr_utility.set_location('..Org Name not found, Id: ' ||
1987: g_asg_rec.organization_id, 11);
1988: else
1989: g_wstr_names.organization_name := l_organization_name;
1990: end if;
1993: open csr_paybasis(g_asg_rec.pay_basis_id
1994: ,g_asg_rec.business_group_id);
1995: fetch csr_paybasis into l_pay_basis_name;
1996: if csr_paybasis%notfound then
1997: hr_utility.set_location('..Org Name not found, Id: ' ||
1998: g_asg_rec.pay_basis_id, 12);
1999: else
2000: g_wstr_names.pay_basis_name := l_pay_basis_name;
2001: end if;
2000: g_wstr_names.pay_basis_name := l_pay_basis_name;
2001: end if;
2002: close csr_paybasis;
2003:
2004: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2005:
2006: end Get_WrkStrs_Names;
2007: -- =============================================================================
2008: -- ~ EmpAplCwk_NumGen:
2013: ,p_cwk_number in varchar2
2014: ) is
2015: l_proc_name constant varchar2(150):= g_pkg ||'EmpAplCwk_NumGen';
2016: begin
2017: hr_utility.set_location('Entering: ' || l_proc_name, 5);
2018: if g_emp_num_gen <> 'A' then
2019: g_per_rec.employee_number := p_employee_number;
2020: else
2021: g_per_rec.employee_number := null;
2032: else
2033: g_per_rec.npw_number := null;
2034: end if;
2035: if g_debug then
2036: hr_utility.set_location(' p_employee_number : ' || p_employee_number, 6);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2033: g_per_rec.npw_number := null;
2034: end if;
2035: if g_debug then
2036: hr_utility.set_location(' p_employee_number : ' || p_employee_number, 6);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2034: end if;
2035: if g_debug then
2036: hr_utility.set_location(' p_employee_number : ' || p_employee_number, 6);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2042: end if;
2035: if g_debug then
2036: hr_utility.set_location(' p_employee_number : ' || p_employee_number, 6);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2042: end if;
2043:
2036: hr_utility.set_location(' p_employee_number : ' || p_employee_number, 6);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2042: end if;
2043:
2044: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2037: hr_utility.set_location(' p_applicant_number: ' || p_applicant_number, 6);
2038: hr_utility.set_location(' p_cwk_number : ' || p_cwk_number, 6);
2039: hr_utility.set_location(' g_emp_num_gen: ' || g_emp_num_gen, 6);
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2042: end if;
2043:
2044: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2045: end EmpAplCwk_NumGen;
2040: hr_utility.set_location(' g_apl_num_gen: ' || g_apl_num_gen, 6);
2041: hr_utility.set_location(' g_cwk_num_gen: ' || p_cwk_number, 6);
2042: end if;
2043:
2044: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2045: end EmpAplCwk_NumGen;
2046: -- =============================================================================
2047: -- ~ Get_DataTrack_Mode:
2048: -- =============================================================================
2059: l_error_msg varchar2(2000);
2060: l_proc_name constant varchar2(150):= g_pkg ||'Get_DataTrack_Mode';
2061: e_future_chgs_exists exception;
2062: begin
2063: hr_utility.set_location('Entering: ' || l_proc_name, 5);
2064: if g_per_rec.person_id is not null then
2065: open csr_per(c_person_id => g_per_rec.person_id
2066: ,c_business_group_id => g_per_rec.business_group_id
2067: ,c_effective_date => g_per_rec.start_date);
2066: ,c_business_group_id => g_per_rec.business_group_id
2067: ,c_effective_date => g_per_rec.start_date);
2068: fetch csr_per into l_cur_per_rec;
2069: close csr_per;
2070: hr_utility.set_location(' l_cur_per_rec: ' || l_cur_per_rec.person_id, 20);
2071:
2072: Dt_Api.Find_DT_Upd_Modes
2073: (p_effective_date => g_per_rec.start_date
2074: ,p_base_table_name => 'PER_ALL_PEOPLE_F'
2102: else
2103: l_datetrack_update_mode := 'CORRECTION';
2104: end if;
2105:
2106: hr_utility.set_location('l_datetrack_update_mode: ' ||
2107: l_datetrack_update_mode, 30);
2108: g_per_rec.object_version_number := l_cur_per_rec.object_version_number;
2109: EmpAplCwk_NumGen
2110: (p_employee_number => nvl(l_cur_per_rec.employee_number,
2114: ,p_cwk_number => nvl(l_cur_per_rec.npw_number,
2115: g_per_rec.npw_number)
2116: );
2117: end if;
2118: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2119: exception
2120: when e_future_chgs_exists then
2121: l_error_msg :=
2122: 'This person cannot be created/updated in HRMS as the '||
2121: l_error_msg :=
2122: 'This person cannot be created/updated in HRMS as the '||
2123: 'Person has future changes beyond the date: '||g_per_rec.start_date;
2124:
2125: hr_utility.set_location('..Future Update exists for the Student Employee', 90);
2126: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2127: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2128: hr_utility.raise_error;
2129:
2122: 'This person cannot be created/updated in HRMS as the '||
2123: 'Person has future changes beyond the date: '||g_per_rec.start_date;
2124:
2125: hr_utility.set_location('..Future Update exists for the Student Employee', 90);
2126: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2127: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2128: hr_utility.raise_error;
2129:
2130: end Get_DataTrack_Mode;
2123: 'Person has future changes beyond the date: '||g_per_rec.start_date;
2124:
2125: hr_utility.set_location('..Future Update exists for the Student Employee', 90);
2126: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2127: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2128: hr_utility.raise_error;
2129:
2130: end Get_DataTrack_Mode;
2131: -- =============================================================================
2124:
2125: hr_utility.set_location('..Future Update exists for the Student Employee', 90);
2126: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2127: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2128: hr_utility.raise_error;
2129:
2130: end Get_DataTrack_Mode;
2131: -- =============================================================================
2132: -- Chk_Person_InHR:
2194: l_user_person_type per_person_types.user_person_type%TYPE;
2195: l_effective_date date;
2196: l_proc_name constant varchar2(150):= g_pkg ||'Chk_Person_InHR';
2197: begin
2198: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
2199: --hr_utility.trace('Inside Chk_Person_InHR');
2200:
2201: open csr_type(g_per_rec.person_type_id);
2202: fetch csr_type into l_pty_rec;
2195: l_effective_date date;
2196: l_proc_name constant varchar2(150):= g_pkg ||'Chk_Person_InHR';
2197: begin
2198: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
2199: --hr_utility.trace('Inside Chk_Person_InHR');
2200:
2201: open csr_type(g_per_rec.person_type_id);
2202: fetch csr_type into l_pty_rec;
2203: close csr_type;
2313:
2314: end loop;
2315: end if;
2316:
2317: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
2318:
2319: exception
2320: when e_InValid_PerType_Id then
2321: hr_utility.set_message(8303, 'PQP_230492_RIW_INVAL_PER_TYPE');
2317: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
2318:
2319: exception
2320: when e_InValid_PerType_Id then
2321: hr_utility.set_message(8303, 'PQP_230492_RIW_INVAL_PER_TYPE');
2322: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2323: hr_utility.raise_error;
2324:
2325: when e_active_empcwk then
2318:
2319: exception
2320: when e_InValid_PerType_Id then
2321: hr_utility.set_message(8303, 'PQP_230492_RIW_INVAL_PER_TYPE');
2322: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2323: hr_utility.raise_error;
2324:
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2319: exception
2320: when e_InValid_PerType_Id then
2321: hr_utility.set_message(8303, 'PQP_230492_RIW_INVAL_PER_TYPE');
2322: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2323: hr_utility.raise_error;
2324:
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2322: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2323: hr_utility.raise_error;
2324:
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2328: hr_utility.set_message_token('TOKEN2',l_effective_date );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2323: hr_utility.raise_error;
2324:
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2328: hr_utility.set_message_token('TOKEN2',l_effective_date );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2331:
2324:
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2328: hr_utility.set_message_token('TOKEN2',l_effective_date );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2331:
2332: when e_active_apl then
2325: when e_active_empcwk then
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2328: hr_utility.set_message_token('TOKEN2',l_effective_date );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2331:
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2326: hr_utility.set_message(8303, 'PQP_230493_RIW_PERSON_EXISTS');
2327: hr_utility.set_message_token('TOKEN1',l_user_person_type );
2328: hr_utility.set_message_token('TOKEN2',l_effective_date );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2331:
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2334: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2329: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2330: hr_utility.raise_error;
2331:
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2334: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2335: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2336: hr_utility.raise_error;
2337:
2330: hr_utility.raise_error;
2331:
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2334: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2335: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2336: hr_utility.raise_error;
2337:
2338: when Others then
2331:
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2334: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2335: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2336: hr_utility.raise_error;
2337:
2338: when Others then
2339: hr_utility.set_location('SQLERRM[CODE] :' || SQLCODE,90);
2332: when e_active_apl then
2333: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2334: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2335: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2336: hr_utility.raise_error;
2337:
2338: when Others then
2339: hr_utility.set_location('SQLERRM[CODE] :' || SQLCODE,90);
2340: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2335: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2336: hr_utility.raise_error;
2337:
2338: when Others then
2339: hr_utility.set_location('SQLERRM[CODE] :' || SQLCODE,90);
2340: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2341: raise;
2342:
2343: end Chk_Person_InHR;
2336: hr_utility.raise_error;
2337:
2338: when Others then
2339: hr_utility.set_location('SQLERRM[CODE] :' || SQLCODE,90);
2340: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2341: raise;
2342:
2343: end Chk_Person_InHR;
2344:
2395: l_expected_system_status varchar2(20);
2396: l_return_status varchar2(100);
2397:
2398: begin
2399: hr_utility.set_location('Entering: ' || l_proc_name, 10);
2400:
2401: l_asg_rec := Get_AsgRecord_Values(g_interface_code);
2402: l_grp_rec := Get_GrpRecord_Values(g_interface_code);
2403: l_scl_rec := Get_ScflxRecord_Values(g_interface_code);
2411: close csr_asg;
2412: raise e_empasg_notfound;
2413: end if;
2414: close csr_asg;
2415: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2416: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2417: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2418: --
2419: -- Check is the People Group Id is passed
2412: raise e_empasg_notfound;
2413: end if;
2414: close csr_asg;
2415: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2416: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2417: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2418: --
2419: -- Check is the People Group Id is passed
2420: --
2413: end if;
2414: close csr_asg;
2415: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2416: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2417: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2418: --
2419: -- Check is the People Group Id is passed
2420: --
2421: open csr_ppg(c_people_grp_id => g_asg_rec.people_group_id);
2433: := l_cur_asg_rec.people_group_id;*/
2434:
2435: end if;
2436: close csr_ppg;
2437: hr_utility.set_location(' people_group_id: ' || g_asg_rec.people_group_id, 30);
2438: --
2439: -- check if the Soft-Coding KFF id is passed
2440: --
2441: open csr_scl(c_scl_kff_id => g_asg_rec.soft_coding_keyflex_id);
2453:
2454: end if;
2455:
2456: close csr_scl;
2457: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
2458: g_asg_rec.soft_coding_keyflex_id, 40);
2459: --
2460: -- Get the datetrack mode based on the effective date passed
2461: --
2475: elsif l_dt_upd_override or
2476: l_upd_chg_ins then
2477: --Else USE Correction Mode
2478: l_datetrack_update_mode := 'CORRECTION';
2479: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
2480: else
2481: l_datetrack_update_mode := 'CORRECTION';
2482: end if;
2483: hr_utility.set_location(' l_datetrack_update_mode: ' ||
2479: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
2480: else
2481: l_datetrack_update_mode := 'CORRECTION';
2482: end if;
2483: hr_utility.set_location(' l_datetrack_update_mode: ' ||
2484: l_datetrack_update_mode, 60);
2485:
2486: g_asg_rec.cagr_grade_def_id := nvl(g_asg_rec.cagr_grade_def_id,
2487: l_cur_asg_rec.cagr_grade_def_id);
2600: ,p_effective_start_date => l_UpdEmpAsg_out.effective_start_date
2601: ,p_effective_end_date => l_UpdEmpAsg_out.effective_end_date
2602: );
2603: else
2604: hr_utility.set_location('Inside Update Assignment :'||l_asg_rec.assignment_status_type_id, 8);
2605: hr_assignment_internal.update_status_type_apl_asg
2606: (p_effective_date => p_effective_date
2607: ,p_datetrack_update_mode => l_datetrack_update_mode
2608: ,p_assignment_id => g_asg_rec.assignment_id
2631: elsif l_dt_upd_override or
2632: l_upd_chg_ins then
2633: --Else USE Correction Mode
2634: l_datetrack_update_mode := 'CORRECTION';
2635: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
2636: else
2637: l_datetrack_update_mode := 'CORRECTION';
2638: end if;
2639:
2806: ,p_effective_start_date => l_UpdEmpAsg_out.effective_start_date
2807: ,p_effective_end_date => l_UpdEmpAsg_out.effective_end_date
2808: ); */
2809:
2810: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
2811:
2812: exception
2813: when e_empasg_notfound then
2814: l_error_msg :=
2812: exception
2813: when e_empasg_notfound then
2814: l_error_msg :=
2815: 'Applicant Assignment could not be found as of the effective date';
2816: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
2817: hr_utility.set_message_token('TOKEN','Applicant' );
2818: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2819: hr_utility.raise_error;
2820:
2813: when e_empasg_notfound then
2814: l_error_msg :=
2815: 'Applicant Assignment could not be found as of the effective date';
2816: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
2817: hr_utility.set_message_token('TOKEN','Applicant' );
2818: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2819: hr_utility.raise_error;
2820:
2821: when Others then
2814: l_error_msg :=
2815: 'Applicant Assignment could not be found as of the effective date';
2816: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
2817: hr_utility.set_message_token('TOKEN','Applicant' );
2818: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2819: hr_utility.raise_error;
2820:
2821: when Others then
2822: --l_error_msg := SQLERRM;
2815: 'Applicant Assignment could not be found as of the effective date';
2816: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
2817: hr_utility.set_message_token('TOKEN','Applicant' );
2818: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
2819: hr_utility.raise_error;
2820:
2821: when Others then
2822: --l_error_msg := SQLERRM;
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2819: hr_utility.raise_error;
2820:
2821: when Others then
2822: --l_error_msg := SQLERRM;
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2824: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2820:
2821: when Others then
2822: --l_error_msg := SQLERRM;
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2824: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2828:
2821: when Others then
2822: --l_error_msg := SQLERRM;
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2824: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2828:
2829: hr_utility.raise_error;
2822: --l_error_msg := SQLERRM;
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2824: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2828:
2829: hr_utility.raise_error;
2830:
2823: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
2824: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2828:
2829: hr_utility.raise_error;
2830:
2831: end Upd_Applicant_Asg;
2825: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
2826: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
2827: --hr_utility.trace('Error Text = ' ||substr(l_error_msg,1,150));
2828:
2829: hr_utility.raise_error;
2830:
2831: end Upd_Applicant_Asg;
2832: -- =============================================================================
2833: -- ~ Upd_Contingent_Asg :
2880: l_grp_rec pay_people_groups%rowtype;
2881: l_scl_rec hr_soft_coding_keyflex%rowtype;
2882:
2883: begin
2884: hr_utility.set_location('Entering: ' || l_proc_name, 10);
2885:
2886: l_asg_rec := Get_AsgRecord_Values(g_interface_code);
2887: l_grp_rec := Get_GrpRecord_Values(g_interface_code);
2888: l_scl_rec := Get_ScflxRecord_Values(g_interface_code);
2896: close csr_asg;
2897: raise e_empasg_notfound;
2898: end if;
2899: close csr_asg;
2900: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2901: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2902: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2903: --
2904: -- Check if the People Group Id is passed
2897: raise e_empasg_notfound;
2898: end if;
2899: close csr_asg;
2900: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2901: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2902: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2903: --
2904: -- Check if the People Group Id is passed
2905: --
2898: end if;
2899: close csr_asg;
2900: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
2901: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
2902: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
2903: --
2904: -- Check if the People Group Id is passed
2905: --
2906: open csr_ppg(c_people_grp_id => g_asg_rec.people_group_id);
2918: := l_cur_asg_rec.people_group_id;*/
2919: end if;
2920:
2921: close csr_ppg;
2922: hr_utility.set_location(' people_group_id: ' || g_asg_rec.people_group_id, 30);
2923: --
2924: -- check if the Soft-Coding KFF id is passed
2925: --
2926: open csr_scl(c_scl_kff_id => g_asg_rec.soft_coding_keyflex_id);
2937: := l_cur_asg_rec.soft_coding_keyflex_id; */
2938:
2939: end if;
2940: close csr_scl;
2941: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
2942: g_asg_rec.soft_coding_keyflex_id, 40);
2943: --
2944: -- Get the datetrack mode based on the effective date passed
2945: --
2959: elsif l_dt_upd_override or
2960: l_upd_chg_ins then
2961: --Else USE Correction Mode
2962: l_datetrack_update_mode := 'CORRECTION';
2963: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
2964: else
2965: l_datetrack_update_mode := 'CORRECTION';
2966: end if;
2967: hr_utility.set_location(' l_datetrack_update_mode: ' ||
2963: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
2964: else
2965: l_datetrack_update_mode := 'CORRECTION';
2966: end if;
2967: hr_utility.set_location(' l_datetrack_update_mode: ' ||
2968: l_datetrack_update_mode, 60);
2969:
2970: g_asg_rec.cagr_grade_def_id := nvl(g_asg_rec.cagr_grade_def_id,
2971: l_cur_asg_rec.cagr_grade_def_id);
3031: );
3032:
3033:
3034: if g_debug then
3035: hr_utility.set_location(' people_group_id: ' ||
3036: p_asg_crit_out.people_group_id, 70);
3037: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3038: p_asg_crit_out.soft_coding_keyflex_id, 70);
3039: hr_utility.set_location(' group_name: ' ||
3033:
3034: if g_debug then
3035: hr_utility.set_location(' people_group_id: ' ||
3036: p_asg_crit_out.people_group_id, 70);
3037: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3038: p_asg_crit_out.soft_coding_keyflex_id, 70);
3039: hr_utility.set_location(' group_name: ' ||
3040: p_asg_crit_out.group_name, 70);
3041: hr_utility.set_location(' asg_effective_start_date: ' ||
3035: hr_utility.set_location(' people_group_id: ' ||
3036: p_asg_crit_out.people_group_id, 70);
3037: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3038: p_asg_crit_out.soft_coding_keyflex_id, 70);
3039: hr_utility.set_location(' group_name: ' ||
3040: p_asg_crit_out.group_name, 70);
3041: hr_utility.set_location(' asg_effective_start_date: ' ||
3042: p_asg_crit_out.asg_effective_start_date, 70);
3043: end if;
3037: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3038: p_asg_crit_out.soft_coding_keyflex_id, 70);
3039: hr_utility.set_location(' group_name: ' ||
3040: p_asg_crit_out.group_name, 70);
3041: hr_utility.set_location(' asg_effective_start_date: ' ||
3042: p_asg_crit_out.asg_effective_start_date, 70);
3043: end if;
3044: l_datetrack_update_mode := 'CORRECTION';
3045:
3043: end if;
3044: l_datetrack_update_mode := 'CORRECTION';
3045:
3046:
3047: --hr_utility.trace(' Value of l_asg_rec.assignment_id = '||l_asg_rec.assignment_id);
3048: --hr_utility.trace(' Value of g_asg_rec.assignment_id = '||g_asg_rec.assignment_id);
3049:
3050:
3051: HR_Assignment_API.Update_CWK_Asg
3044: l_datetrack_update_mode := 'CORRECTION';
3045:
3046:
3047: --hr_utility.trace(' Value of l_asg_rec.assignment_id = '||l_asg_rec.assignment_id);
3048: --hr_utility.trace(' Value of g_asg_rec.assignment_id = '||g_asg_rec.assignment_id);
3049:
3050:
3051: HR_Assignment_API.Update_CWK_Asg
3052: (p_validate => false
3158: ,p_hourly_salaried_warning => l_UpdEmpAsg_out.hourly_salaried_warning
3159: );
3160:
3161: if g_debug then
3162: hr_utility.set_location(' Asg OVN: ' ||
3163: l_cur_asg_rec.object_version_number, 75);
3164: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3165: p_asg_crit_out.soft_coding_keyflex_id, 75);
3166: hr_utility.set_location(' group_name: ' ||
3160:
3161: if g_debug then
3162: hr_utility.set_location(' Asg OVN: ' ||
3163: l_cur_asg_rec.object_version_number, 75);
3164: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3165: p_asg_crit_out.soft_coding_keyflex_id, 75);
3166: hr_utility.set_location(' group_name: ' ||
3167: l_UpdEmpAsg_out.concatenated_segments, 75);
3168: hr_utility.set_location(' asg_effective_start_date: ' ||
3162: hr_utility.set_location(' Asg OVN: ' ||
3163: l_cur_asg_rec.object_version_number, 75);
3164: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3165: p_asg_crit_out.soft_coding_keyflex_id, 75);
3166: hr_utility.set_location(' group_name: ' ||
3167: l_UpdEmpAsg_out.concatenated_segments, 75);
3168: hr_utility.set_location(' asg_effective_start_date: ' ||
3169: l_UpdEmpAsg_out.effective_start_date, 75);
3170: end if;
3164: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3165: p_asg_crit_out.soft_coding_keyflex_id, 75);
3166: hr_utility.set_location(' group_name: ' ||
3167: l_UpdEmpAsg_out.concatenated_segments, 75);
3168: hr_utility.set_location(' asg_effective_start_date: ' ||
3169: l_UpdEmpAsg_out.effective_start_date, 75);
3170: end if;
3171:
3172: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
3168: hr_utility.set_location(' asg_effective_start_date: ' ||
3169: l_UpdEmpAsg_out.effective_start_date, 75);
3170: end if;
3171:
3172: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
3173:
3174: exception
3175: when e_empasg_notfound then
3176: l_error_msg :=
3174: exception
3175: when e_empasg_notfound then
3176: l_error_msg :=
3177: 'Contingent Assignment could not be found as of the effective date';
3178: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3179: hr_utility.set_message_token('TOKEN','Contingent' );
3180: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3181: hr_utility.raise_error;
3182:
3175: when e_empasg_notfound then
3176: l_error_msg :=
3177: 'Contingent Assignment could not be found as of the effective date';
3178: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3179: hr_utility.set_message_token('TOKEN','Contingent' );
3180: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3181: hr_utility.raise_error;
3182:
3183: when Others then
3176: l_error_msg :=
3177: 'Contingent Assignment could not be found as of the effective date';
3178: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3179: hr_utility.set_message_token('TOKEN','Contingent' );
3180: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3181: hr_utility.raise_error;
3182:
3183: when Others then
3184: --l_error_msg := SQLERRM;
3177: 'Contingent Assignment could not be found as of the effective date';
3178: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3179: hr_utility.set_message_token('TOKEN','Contingent' );
3180: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3181: hr_utility.raise_error;
3182:
3183: when Others then
3184: --l_error_msg := SQLERRM;
3185:
3182:
3183: when Others then
3184: --l_error_msg := SQLERRM;
3185:
3186: --hr_utility.trace(' Upd_Contingent_Asg Error = '||sqlerrm);
3187:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3184: --l_error_msg := SQLERRM;
3185:
3186: --hr_utility.trace(' Upd_Contingent_Asg Error = '||sqlerrm);
3187:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3191: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3192: hr_utility.raise_error;
3185:
3186: --hr_utility.trace(' Upd_Contingent_Asg Error = '||sqlerrm);
3187:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3191: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3192: hr_utility.raise_error;
3193:
3186: --hr_utility.trace(' Upd_Contingent_Asg Error = '||sqlerrm);
3187:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3191: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3192: hr_utility.raise_error;
3193:
3194: end Upd_Contingent_Asg;
3187:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3191: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3192: hr_utility.raise_error;
3193:
3194: end Upd_Contingent_Asg;
3195:
3188: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3189: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3190: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3191: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3192: hr_utility.raise_error;
3193:
3194: end Upd_Contingent_Asg;
3195:
3196: -- =============================================================================
3243: l_asg_rec per_all_assignments_f%rowtype;
3244: l_grp_rec pay_people_groups%rowtype;
3245: l_scl_rec hr_soft_coding_keyflex%rowtype;
3246: begin
3247: hr_utility.set_location('Entering: ' || l_proc_name, 10);
3248:
3249: l_asg_rec := Get_AsgRecord_Values(g_interface_code);
3250: l_grp_rec := Get_GrpRecord_Values(g_interface_code);
3251: l_scl_rec := Get_ScflxRecord_Values(g_interface_code);
3259: close csr_asg;
3260: raise e_empasg_notfound;
3261: end if;
3262: close csr_asg;
3263: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
3264: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
3265: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
3266:
3267: open csr_ppg(c_people_grp_id => g_asg_rec.people_group_id);
3260: raise e_empasg_notfound;
3261: end if;
3262: close csr_asg;
3263: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
3264: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
3265: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
3266:
3267: open csr_ppg(c_people_grp_id => g_asg_rec.people_group_id);
3268: fetch csr_ppg into l_cur_ppl_grp_rec;
3261: end if;
3262: close csr_asg;
3263: hr_utility.set_location(' l_cur_asg_rec: ' || p_effective_date, 20);
3264: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.assignment_id, 20);
3265: hr_utility.set_location(' l_cur_asg_rec: ' || g_asg_rec.business_group_id, 20);
3266:
3267: open csr_ppg(c_people_grp_id => g_asg_rec.people_group_id);
3268: fetch csr_ppg into l_cur_ppl_grp_rec;
3269: if csr_ppg%found then
3270: p_asg_crit_out.people_group_id := g_asg_rec.people_group_id;
3271: l_asg_rec.people_group_id := g_asg_rec.people_group_id;
3272: end if;
3273: close csr_ppg;
3274: hr_utility.set_location(' people_group_id: ' || g_asg_rec.people_group_id, 30);
3275:
3276: open csr_scl(c_scl_kff_id => g_asg_rec.soft_coding_keyflex_id);
3277: fetch csr_scl into l_cur_scl_rec;
3278: if csr_scl%found then
3279: p_asg_crit_out.soft_coding_keyflex_id := g_asg_rec.soft_coding_keyflex_id;
3280: l_asg_rec.soft_coding_keyflex_id := g_asg_rec.soft_coding_keyflex_id;
3281: end if;
3282: close csr_scl;
3283: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3284: g_asg_rec.soft_coding_keyflex_id, 40);
3285:
3286: Dt_Api.Find_DT_Upd_Modes
3287: (p_effective_date => p_effective_date
3298: l_datetrack_update_mode := 'UPDATE';
3299: elsif l_dt_upd_override or
3300: l_upd_chg_ins then
3301: l_datetrack_update_mode := 'CORRECTION' ; --$ 'UPDATE' not possible
3302: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
3303: else
3304: l_datetrack_update_mode := 'CORRECTION';
3305: end if;
3306: hr_utility.set_location(' l_datetrack_update_mode: ' ||
3302: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 50);
3303: else
3304: l_datetrack_update_mode := 'CORRECTION';
3305: end if;
3306: hr_utility.set_location(' l_datetrack_update_mode: ' ||
3307: l_datetrack_update_mode, 60);
3308:
3309: /*Hr_Assignment_Api.Update_Emp_Asg_Criteria
3310: (p_effective_date => p_effective_date
3371: );
3372:
3373:
3374: if g_debug then
3375: hr_utility.set_location(' people_group_id: ' ||
3376: p_asg_crit_out.people_group_id, 70);
3377: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3378: p_asg_crit_out.soft_coding_keyflex_id, 70);
3379: hr_utility.set_location(' group_name: ' ||
3373:
3374: if g_debug then
3375: hr_utility.set_location(' people_group_id: ' ||
3376: p_asg_crit_out.people_group_id, 70);
3377: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3378: p_asg_crit_out.soft_coding_keyflex_id, 70);
3379: hr_utility.set_location(' group_name: ' ||
3380: p_asg_crit_out.group_name, 70);
3381: hr_utility.set_location(' asg_effective_start_date: ' ||
3375: hr_utility.set_location(' people_group_id: ' ||
3376: p_asg_crit_out.people_group_id, 70);
3377: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3378: p_asg_crit_out.soft_coding_keyflex_id, 70);
3379: hr_utility.set_location(' group_name: ' ||
3380: p_asg_crit_out.group_name, 70);
3381: hr_utility.set_location(' asg_effective_start_date: ' ||
3382: p_asg_crit_out.asg_effective_start_date, 70);
3383: end if;*/
3377: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3378: p_asg_crit_out.soft_coding_keyflex_id, 70);
3379: hr_utility.set_location(' group_name: ' ||
3380: p_asg_crit_out.group_name, 70);
3381: hr_utility.set_location(' asg_effective_start_date: ' ||
3382: p_asg_crit_out.asg_effective_start_date, 70);
3383: end if;*/
3384:
3385: --l_datetrack_update_mode := 'CORRECTION';
3389: g_asg_rec.soft_coding_keyflex_id := p_asg_crit_out.soft_coding_keyflex_id;
3390: --
3391: -- Hr_Assignment_Api.Update_Emp_Asg: Use the overloaded update_emp_asg(NEW3)
3392: --
3393: --hr_utility.trace('ass_attribute1 = ' ||l_asg_rec.ass_attribute1);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3390: --
3391: -- Hr_Assignment_Api.Update_Emp_Asg: Use the overloaded update_emp_asg(NEW3)
3392: --
3393: --hr_utility.trace('ass_attribute1 = ' ||l_asg_rec.ass_attribute1);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3391: -- Hr_Assignment_Api.Update_Emp_Asg: Use the overloaded update_emp_asg(NEW3)
3392: --
3393: --hr_utility.trace('ass_attribute1 = ' ||l_asg_rec.ass_attribute1);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3392: --
3393: --hr_utility.trace('ass_attribute1 = ' ||l_asg_rec.ass_attribute1);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3393: --hr_utility.trace('ass_attribute1 = ' ||l_asg_rec.ass_attribute1);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3394: --hr_utility.trace('ass_attribute2 = ' ||l_asg_rec.ass_attribute2);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3395: --hr_utility.trace('ass_attribute3 = ' ||l_asg_rec.ass_attribute3);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3396: --hr_utility.trace('ass_attribute4 = ' ||l_asg_rec.ass_attribute4);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3397: --hr_utility.trace('ass_attribute5 = ' ||l_asg_rec.ass_attribute5);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3398: --hr_utility.trace('ass_attribute6 = ' ||l_asg_rec.ass_attribute6);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3399: --hr_utility.trace('ass_attribute7 = ' ||l_asg_rec.ass_attribute7);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3407: --hr_utility.trace('ass_attribute15 = ' ||l_asg_rec.ass_attribute15);
3400: --hr_utility.trace('ass_attribute8 = ' ||l_asg_rec.ass_attribute8);
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3407: --hr_utility.trace('ass_attribute15 = ' ||l_asg_rec.ass_attribute15);
3408:
3401: --hr_utility.trace('ass_attribute9 = ' ||l_asg_rec.ass_attribute9);
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3407: --hr_utility.trace('ass_attribute15 = ' ||l_asg_rec.ass_attribute15);
3408:
3409: Hr_Assignment_Api.Update_Emp_Asg
3402: --hr_utility.trace('ass_attribute10 = ' ||l_asg_rec.ass_attribute10);
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3407: --hr_utility.trace('ass_attribute15 = ' ||l_asg_rec.ass_attribute15);
3408:
3409: Hr_Assignment_Api.Update_Emp_Asg
3410: (p_validate => false
3403: --hr_utility.trace('ass_attribute11 = ' ||l_asg_rec.ass_attribute11);
3404: --hr_utility.trace('ass_attribute12 = ' ||l_asg_rec.ass_attribute12);
3405: --hr_utility.trace('ass_attribute13 = ' ||l_asg_rec.ass_attribute13);
3406: --hr_utility.trace('ass_attribute14 = ' ||l_asg_rec.ass_attribute14);
3407: --hr_utility.trace('ass_attribute15 = ' ||l_asg_rec.ass_attribute15);
3408:
3409: Hr_Assignment_Api.Update_Emp_Asg
3410: (p_validate => false
3411: ,p_effective_date => p_effective_date
3584: );
3585:
3586:
3587: if g_debug then
3588: hr_utility.set_location(' people_group_id: ' ||
3589: p_asg_crit_out.people_group_id, 70);
3590: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3591: p_asg_crit_out.soft_coding_keyflex_id, 70);
3592: hr_utility.set_location(' group_name: ' ||
3586:
3587: if g_debug then
3588: hr_utility.set_location(' people_group_id: ' ||
3589: p_asg_crit_out.people_group_id, 70);
3590: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3591: p_asg_crit_out.soft_coding_keyflex_id, 70);
3592: hr_utility.set_location(' group_name: ' ||
3593: p_asg_crit_out.group_name, 70);
3594: hr_utility.set_location(' asg_effective_start_date: ' ||
3588: hr_utility.set_location(' people_group_id: ' ||
3589: p_asg_crit_out.people_group_id, 70);
3590: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3591: p_asg_crit_out.soft_coding_keyflex_id, 70);
3592: hr_utility.set_location(' group_name: ' ||
3593: p_asg_crit_out.group_name, 70);
3594: hr_utility.set_location(' asg_effective_start_date: ' ||
3595: p_asg_crit_out.asg_effective_start_date, 70);
3596: end if;
3590: hr_utility.set_location(' soft_coding_keyflex_id: ' ||
3591: p_asg_crit_out.soft_coding_keyflex_id, 70);
3592: hr_utility.set_location(' group_name: ' ||
3593: p_asg_crit_out.group_name, 70);
3594: hr_utility.set_location(' asg_effective_start_date: ' ||
3595: p_asg_crit_out.asg_effective_start_date, 70);
3596: end if;
3597:
3598:
3595: p_asg_crit_out.asg_effective_start_date, 70);
3596: end if;
3597:
3598:
3599: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
3600:
3601: exception
3602: when e_empasg_notfound then
3603: l_error_msg := 'Employee Assignment could not be found as of the effective date';
3601: exception
3602: when e_empasg_notfound then
3603: l_error_msg := 'Employee Assignment could not be found as of the effective date';
3604:
3605: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3606: hr_utility.set_message_token('TOKEN','Employee' );
3607: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3608: hr_utility.raise_error;
3609:
3602: when e_empasg_notfound then
3603: l_error_msg := 'Employee Assignment could not be found as of the effective date';
3604:
3605: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3606: hr_utility.set_message_token('TOKEN','Employee' );
3607: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3608: hr_utility.raise_error;
3609:
3610: when Others then
3603: l_error_msg := 'Employee Assignment could not be found as of the effective date';
3604:
3605: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3606: hr_utility.set_message_token('TOKEN','Employee' );
3607: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3608: hr_utility.raise_error;
3609:
3610: when Others then
3611: --l_error_msg := SQLERRM;
3604:
3605: hr_utility.set_message(8303, 'PQP_230494_RIW_ASSGN_NOT_FOUND');
3606: hr_utility.set_message_token('TOKEN','Employee' );
3607: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3608: hr_utility.raise_error;
3609:
3610: when Others then
3611: --l_error_msg := SQLERRM;
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3608: hr_utility.raise_error;
3609:
3610: when Others then
3611: --l_error_msg := SQLERRM;
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3613: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3614: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3615: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3616: hr_utility.raise_error;
3609:
3610: when Others then
3611: --l_error_msg := SQLERRM;
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3613: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3614: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3615: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3616: hr_utility.raise_error;
3617:
3610: when Others then
3611: --l_error_msg := SQLERRM;
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3613: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3614: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3615: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3616: hr_utility.raise_error;
3617:
3618: end Update_Employee_Asg;
3611: --l_error_msg := SQLERRM;
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3613: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3614: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3615: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3616: hr_utility.raise_error;
3617:
3618: end Update_Employee_Asg;
3619: -- =============================================================================
3612: hr_utility.set_location('SQLCODE :' || SQLCODE,100);
3613: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3614: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3615: hr_utility.set_location('Leaving: ' || l_proc_name, 100);
3616: hr_utility.raise_error;
3617:
3618: end Update_Employee_Asg;
3619: -- =============================================================================
3620: -- ~ Upd_Batch_Person:
3641: e_future_chgs_exists exception;
3642: l_error_msg varchar2(3000);
3643:
3644: begin
3645: hr_utility.set_location('Entering: ' || l_proc_name, 5);
3646:
3647: l_per_rec := Get_PerRecord_Values(g_interface_code);
3648: if p_datetrack_update_mode is not null then
3649: l_datetrack_update_mode := p_datetrack_update_mode;
3652: ,c_business_group_id => g_per_rec.business_group_id
3653: ,c_effective_date => g_per_rec.start_date);
3654: fetch csr_per into l_cur_per_rec;
3655: close csr_per;
3656: hr_utility.set_location(' l_cur_per_rec: ' || l_cur_per_rec.person_id, 20);
3657: Dt_Api.Find_DT_Upd_Modes
3658: (p_effective_date => g_per_rec.start_date
3659: ,p_base_table_name => 'PER_ALL_PEOPLE_F'
3660: ,p_base_key_column => 'PERSON_ID'
3685: else
3686: l_datetrack_update_mode := 'CORRECTION';
3687: end if;
3688: end if;
3689: hr_utility.set_location(' l_datetrack_update_mode: ' ||
3690: l_datetrack_update_mode, 30);
3691:
3692: Hrdpp_Update_Person.Insert_Batch_Lines
3693: (p_batch_id => p_batch_id
3838: ,p_vendor_name => null
3839: ,p_adjusted_svc_date => p_adjusted_svc_date --Added By pkagrawa
3840: );
3841:
3842: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
3843:
3844: exception
3845: when e_future_chgs_exists then
3846: l_error_msg := 'This person cannot be created in HRMS as a Student '||
3845: when e_future_chgs_exists then
3846: l_error_msg := 'This person cannot be created in HRMS as a Student '||
3847: 'Employee due to future changes beyond the date: '||g_per_rec.start_date;
3848:
3849: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
3850: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3851: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3846: l_error_msg := 'This person cannot be created in HRMS as a Student '||
3847: 'Employee due to future changes beyond the date: '||g_per_rec.start_date;
3848:
3849: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
3850: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3851: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3854:
3847: 'Employee due to future changes beyond the date: '||g_per_rec.start_date;
3848:
3849: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
3850: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3851: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3854:
3855: when Others then
3848:
3849: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
3850: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3851: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3854:
3855: when Others then
3856: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
3849: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
3850: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
3851: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3854:
3855: when Others then
3856: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
3857: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3852: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
3853: hr_utility.raise_error;
3854:
3855: when Others then
3856: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
3857: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3858: raise;
3859: end Upd_Batch_Person;
3860: -- =============================================================================
3853: hr_utility.raise_error;
3854:
3855: when Others then
3856: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
3857: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
3858: raise;
3859: end Upd_Batch_Person;
3860: -- =============================================================================
3861: -- InsUpd_Batch_Applicant:
3877: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Batch_Applicant';
3878:
3879: begin
3880:
3881: hr_utility.set_location('Entering: ' || l_proc_name, 5);
3882: hr_utility.set_location('p_action_mode: ' || p_action_mode, 6);
3883:
3884: if p_action_mode = 'CREATE_APPLICANT' then
3885:
3878:
3879: begin
3880:
3881: hr_utility.set_location('Entering: ' || l_proc_name, 5);
3882: hr_utility.set_location('p_action_mode: ' || p_action_mode, 6);
3883:
3884: if p_action_mode = 'CREATE_APPLICANT' then
3885:
3886: Hrdpp_Create_Applicant.Insert_Batch_Lines
4002: ,p_benefit_group => g_benefit_grp_name
4003: );
4004:
4005: end if;
4006: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
4007:
4008: end InsUpd_Batch_Applicant;
4009: -- =============================================================================
4010: -- ~ InsUpd_Batch_ContactPerson:
4021: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Batch_ContactPerson';
4022:
4023: begin
4024:
4025: hr_utility.set_location('Entering: ' || l_proc_name, 5);
4026:
4027: HrDpp_Create_Person.Insert_Batch_Lines
4028: (p_batch_id => p_batch_id
4029: ,p_data_pump_batch_line_id => p_data_pump_batch_line_id
4130: --$ In Batch Lines Benefit Group Name has to be passed instead of ID
4131: ,p_benefit_group => g_benefit_grp_name
4132: ,p_language_code => Userenv('lang')
4133: );
4134: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
4135:
4136: end InsUpd_Batch_ContactPerson;
4137:
4138: -- =============================================================================
4155: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Batch_Employee';
4156:
4157: begin
4158:
4159: hr_utility.set_location('Entering: ' || l_proc_name, 5);
4160: hr_utility.set_location('p_action_mode: ' || p_action_mode, 6);
4161:
4162: if p_action_mode = 'CREATE_EMPLOYEE' then
4163:
4156:
4157: begin
4158:
4159: hr_utility.set_location('Entering: ' || l_proc_name, 5);
4160: hr_utility.set_location('p_action_mode: ' || p_action_mode, 6);
4161:
4162: if p_action_mode = 'CREATE_EMPLOYEE' then
4163:
4164: Hrdpp_Create_Employee.Insert_Batch_Lines
4320: );
4321:
4322: p_user_sequence := p_user_sequence + 1;
4323:
4324: hr_utility.set_location(' Calling : ' ||
4325: 'Hrdpp_Update_Person.Insert_Batch_Lines', 7);
4326:
4327: Upd_Batch_Person
4328: (p_batch_id => p_batch_id
4333: ,p_datetrack_update_mode => 'CORRECTION'
4334: );
4335:
4336: end if;
4337: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
4338:
4339: end InsUpd_Batch_Employee;
4340: -- =============================================================================
4341: -- ~ InsUpd_Batch_Address:
4386: l_error_msg varchar2(2000);
4387:
4388: l_effective_date date;
4389: begin
4390: hr_utility.set_location('Entering: ' || l_proc_name, 10);
4391:
4392: l_effective_date := g_add_rec.date_from;
4393:
4394: if g_add_rec.address_line1 is null and g_add_rec.style is null then
4394: if g_add_rec.address_line1 is null and g_add_rec.style is null then
4395: return;
4396: end if;
4397:
4398: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4399: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4400: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4401: --hr_utility.trace('MSG_AD c_effective_date='||l_effective_date);
4402:
4395: return;
4396: end if;
4397:
4398: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4399: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4400: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4401: --hr_utility.trace('MSG_AD c_effective_date='||l_effective_date);
4402:
4403: l_pradd_ovlapval_override := false;
4396: end if;
4397:
4398: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4399: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4400: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4401: --hr_utility.trace('MSG_AD c_effective_date='||l_effective_date);
4402:
4403: l_pradd_ovlapval_override := false;
4404:
4397:
4398: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4399: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4400: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4401: --hr_utility.trace('MSG_AD c_effective_date='||l_effective_date);
4402:
4403: l_pradd_ovlapval_override := false;
4404:
4405: if Trunc(g_add_rec.date_from) > Trunc(l_cur_add_rec.date_from) then
4402:
4403: l_pradd_ovlapval_override := false;
4404:
4405: if Trunc(g_add_rec.date_from) > Trunc(l_cur_add_rec.date_from) then
4406: hr_utility.set_location(' g_add_rec.date_from: ' ||g_add_rec.date_from, 40);
4407: hr_utility.set_location(' g_add_rec.date_to: ' ||g_add_rec.date_to, 40);
4408:
4409: l_pradd_ovlapval_override := true;
4410: end if;
4403: l_pradd_ovlapval_override := false;
4404:
4405: if Trunc(g_add_rec.date_from) > Trunc(l_cur_add_rec.date_from) then
4406: hr_utility.set_location(' g_add_rec.date_from: ' ||g_add_rec.date_from, 40);
4407: hr_utility.set_location(' g_add_rec.date_to: ' ||g_add_rec.date_to, 40);
4408:
4409: l_pradd_ovlapval_override := true;
4410: end if;
4411:
4418: ,c_primary_flag => g_add_rec.primary_flag);
4419: fetch csr_primary_add into l_cur_add_rec;
4420:
4421: if csr_primary_add%notfound then
4422: hr_utility.set_location(' Primary Address Not found', 20);
4423: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4419: fetch csr_primary_add into l_cur_add_rec;
4420:
4421: if csr_primary_add%notfound then
4422: hr_utility.set_location(' Primary Address Not found', 20);
4423: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4427: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4421: if csr_primary_add%notfound then
4422: hr_utility.set_location(' Primary Address Not found', 20);
4423: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4427: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4428: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4429: if (g_crt_upd = 'C') then
4422: hr_utility.set_location(' Primary Address Not found', 20);
4423: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4427: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4428: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4429: if (g_crt_upd = 'C') then
4430: Hrdpp_Create_Person_Address.Insert_Batch_Lines
4423: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4427: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4428: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4429: if (g_crt_upd = 'C') then
4430: Hrdpp_Create_Person_Address.Insert_Batch_Lines
4431: (p_batch_id => p_batch_id
4424:
4425: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4426: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4427: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4428: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4429: if (g_crt_upd = 'C') then
4430: Hrdpp_Create_Person_Address.Insert_Batch_Lines
4431: (p_batch_id => p_batch_id
4432: ,p_user_sequence => p_user_sequence
4487: else
4488: raise e_crt_add_not_allowed;
4489: end if;
4490: else
4491: hr_utility.set_location(' Primary Address found: ' ||
4492: l_cur_add_rec.address_id, 30);
4493:
4494: if g_add_rec.date_from is null then
4495: g_add_rec.date_from := trunc(l_effective_date);
4494: if g_add_rec.date_from is null then
4495: g_add_rec.date_from := trunc(l_effective_date);
4496: end if;
4497:
4498: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4499: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4500: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4501: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4502:
4495: g_add_rec.date_from := trunc(l_effective_date);
4496: end if;
4497:
4498: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4499: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4500: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4501: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4502:
4503:
4496: end if;
4497:
4498: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4499: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4500: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4501: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4502:
4503:
4504: --hr_utility.trace('MSG_AD 11:'||l_effective_date);
4497:
4498: --hr_utility.trace('MSG_AD l_effective_date:'||l_effective_date);
4499: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4500: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4501: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4502:
4503:
4504: --hr_utility.trace('MSG_AD 11:'||l_effective_date);
4505:
4500: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4501: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4502:
4503:
4504: --hr_utility.trace('MSG_AD 11:'||l_effective_date);
4505:
4506: g_add_rec.address_id := l_cur_add_rec.address_id;
4507: g_add_rec.object_version_number := l_cur_add_rec.object_version_number;
4508: g_add_rec.style := l_cur_add_rec.style;
4506: g_add_rec.address_id := l_cur_add_rec.address_id;
4507: g_add_rec.object_version_number := l_cur_add_rec.object_version_number;
4508: g_add_rec.style := l_cur_add_rec.style;
4509:
4510: --hr_utility.trace('MSG_AD 12:'||l_effective_date);
4511:
4512: --hr_utility.trace('$$_PSG InsUpd_Batch_Address Y p_address_user_key: '||p_address_user_key);
4513:
4514: hr_pump_utils.add_user_key
4508: g_add_rec.style := l_cur_add_rec.style;
4509:
4510: --hr_utility.trace('MSG_AD 12:'||l_effective_date);
4511:
4512: --hr_utility.trace('$$_PSG InsUpd_Batch_Address Y p_address_user_key: '||p_address_user_key);
4513:
4514: hr_pump_utils.add_user_key
4515: (p_user_key_value => p_address_user_key
4516: ,p_unique_key_id => g_add_rec.address_id
4515: (p_user_key_value => p_address_user_key
4516: ,p_unique_key_id => g_add_rec.address_id
4517: );
4518:
4519: hr_utility.set_location(' HrDpp_Update_Person_Address.Insert_Batch_Lines: ' , 51);
4520: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
4521: HrDpp_Update_Person_Address.Insert_Batch_Lines
4522: (p_batch_id => p_batch_id
4523: ,p_user_sequence => p_user_sequence
4570: raise e_upl_not_allowed;
4571: end if;
4572: end if;
4573:
4574: --hr_utility.trace('MSG_AD 13:'||l_effective_date);
4575:
4576: -- end if;
4577: close csr_primary_add;
4578:
4579: -- For Secondary Address
4580:
4581: ELSIF g_add_rec.primary_flag = 'N' Then
4582:
4583: --hr_utility.trace('Testing cursor');
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4580:
4581: ELSIF g_add_rec.primary_flag = 'N' Then
4582:
4583: --hr_utility.trace('Testing cursor');
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4581: ELSIF g_add_rec.primary_flag = 'N' Then
4582:
4583: --hr_utility.trace('Testing cursor');
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4582:
4583: --hr_utility.trace('Testing cursor');
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4590: --hr_utility.trace('c_effective_date :'||l_effective_date);
4583: --hr_utility.trace('Testing cursor');
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4590: --hr_utility.trace('c_effective_date :'||l_effective_date);
4591:
4584: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4590: --hr_utility.trace('c_effective_date :'||l_effective_date);
4591:
4592: open csr_secondary_add (c_person_id => g_add_rec.person_id
4585: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4590: --hr_utility.trace('c_effective_date :'||l_effective_date);
4591:
4592: open csr_secondary_add (c_person_id => g_add_rec.person_id
4593: ,c_business_group_id => g_add_rec.business_group_id
4586: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4587: --hr_utility.trace('c_style :'||g_add_rec.style);
4588: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4589: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4590: --hr_utility.trace('c_effective_date :'||l_effective_date);
4591:
4592: open csr_secondary_add (c_person_id => g_add_rec.person_id
4593: ,c_business_group_id => g_add_rec.business_group_id
4594: ,c_primary_flag => g_add_rec.primary_flag
4599:
4600: fetch csr_secondary_add into l_cur_add_rec;
4601:
4602: if csr_secondary_add%notfound then
4603: hr_utility.set_location(' Secondary Address Not found', 40);
4604: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 45);
4605: if (g_crt_upd = 'C') then
4606: Hrdpp_Create_Person_Address.Insert_Batch_Lines
4607: (p_batch_id => p_batch_id
4600: fetch csr_secondary_add into l_cur_add_rec;
4601:
4602: if csr_secondary_add%notfound then
4603: hr_utility.set_location(' Secondary Address Not found', 40);
4604: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 45);
4605: if (g_crt_upd = 'C') then
4606: Hrdpp_Create_Person_Address.Insert_Batch_Lines
4607: (p_batch_id => p_batch_id
4608: ,p_user_sequence => p_user_sequence
4663: else
4664: raise e_crt_add_not_allowed;
4665: end if;
4666: else
4667: hr_utility.set_location(' Secondary Address found: ' ||
4668: l_cur_add_rec.address_id, 50);
4669: if g_add_rec.date_from is null then
4670: g_add_rec.date_from := trunc(l_effective_date);
4671: end if;
4673: g_add_rec.address_id := l_cur_add_rec.address_id;
4674: g_add_rec.object_version_number := l_cur_add_rec.object_version_number;
4675: g_add_rec.style := l_cur_add_rec.style;
4676:
4677: --hr_utility.trace('$$_PSG InsUpd_Batch_Address N p_address_user_key: '||p_address_user_key);
4678:
4679: hr_pump_utils.add_user_key
4680: (p_user_key_value => p_address_user_key
4681: ,p_unique_key_id => g_add_rec.address_id
4680: (p_user_key_value => p_address_user_key
4681: ,p_unique_key_id => g_add_rec.address_id
4682: );
4683:
4684: hr_utility.set_location(' Hrdpp_Create_Person_Address.Insert_Batch_Lines: ' , 51);
4685: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
4686: HrDpp_Update_Person_Address.Insert_Batch_Lines
4687: (p_batch_id => p_batch_id
4688: ,p_user_sequence => p_user_sequence
4737: end if;
4738: close csr_secondary_add;
4739: end if;
4740:
4741: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
4742:
4743: exception
4744: when Others then
4745: if csr_primary_add%isopen then
4750: close csr_secondary_add;
4751: end if;
4752:
4753: --l_error_msg := Substr(SQLERRM,1,2000);
4754: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4751: end if;
4752:
4753: --l_error_msg := Substr(SQLERRM,1,2000);
4754: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4759: hr_utility.raise_error;
4752:
4753: --l_error_msg := Substr(SQLERRM,1,2000);
4754: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4759: hr_utility.raise_error;
4760:
4753: --l_error_msg := Substr(SQLERRM,1,2000);
4754: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4759: hr_utility.raise_error;
4760:
4761: end InsUpd_Batch_Address;
4754: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4759: hr_utility.raise_error;
4760:
4761: end InsUpd_Batch_Address;
4762:
4755: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4756: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4757: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4758: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4759: hr_utility.raise_error;
4760:
4761: end InsUpd_Batch_Address;
4762:
4763: -- =============================================================================
4807: l_party_id per_people_f.party_id%type;
4808:
4809:
4810: begin
4811: hr_utility.set_location('Entering: ' || l_proc_name, 10);
4812:
4813: if g_add_rec.address_line1 is null and g_add_rec.style is null then
4814: return;
4815: end if;
4813: if g_add_rec.address_line1 is null and g_add_rec.style is null then
4814: return;
4815: end if;
4816:
4817: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4818: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4819: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4820: --hr_utility.trace('MSG_AD c_effective_date='||p_effective_date);
4821:
4814: return;
4815: end if;
4816:
4817: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4818: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4819: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4820: --hr_utility.trace('MSG_AD c_effective_date='||p_effective_date);
4821:
4822:
4815: end if;
4816:
4817: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4818: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4819: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4820: --hr_utility.trace('MSG_AD c_effective_date='||p_effective_date);
4821:
4822:
4823: IF g_add_rec.primary_flag = 'Y' Then
4816:
4817: --hr_utility.trace('MSG_AD c_person_id='||g_add_rec.person_id);
4818: --hr_utility.trace('MSG_AD c_business_group_id='||g_add_rec.business_group_id);
4819: --hr_utility.trace('MSG_AD c_primary_flag='|| g_add_rec.primary_flag);
4820: --hr_utility.trace('MSG_AD c_effective_date='||p_effective_date);
4821:
4822:
4823: IF g_add_rec.primary_flag = 'Y' Then
4824:
4828: ,c_primary_flag => g_add_rec.primary_flag);
4829: fetch csr_primary_add into l_cur_add_rec;
4830:
4831: if csr_primary_add%notfound then
4832: hr_utility.set_location(' Primary Address Not found', 20);
4833: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4829: fetch csr_primary_add into l_cur_add_rec;
4830:
4831: if csr_primary_add%notfound then
4832: hr_utility.set_location(' Primary Address Not found', 20);
4833: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4837: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4831: if csr_primary_add%notfound then
4832: hr_utility.set_location(' Primary Address Not found', 20);
4833: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4837: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4838: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4839: if (g_crt_upd = 'C') then
4832: hr_utility.set_location(' Primary Address Not found', 20);
4833: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4837: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4838: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4839: if (g_crt_upd = 'C') then
4840: Pqp_Hrtca_Integration.Person_Address_Api
4833: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 25);
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4837: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4838: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4839: if (g_crt_upd = 'C') then
4840: Pqp_Hrtca_Integration.Person_Address_Api
4841: (p_HR_Address_Rec => g_add_rec
4834:
4835: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4836: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4837: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4838: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4839: if (g_crt_upd = 'C') then
4840: Pqp_Hrtca_Integration.Person_Address_Api
4841: (p_HR_Address_Rec => g_add_rec
4842: ,p_validate => false
4851: else
4852: raise e_crt_add_not_allowed;
4853: end if;
4854: else
4855: hr_utility.set_location(' Primary Address found: ' ||
4856: l_cur_add_rec.address_id, 30);
4857:
4858: if g_add_rec.date_from is null then
4859: g_add_rec.date_from := trunc(p_effective_date);
4858: if g_add_rec.date_from is null then
4859: g_add_rec.date_from := trunc(p_effective_date);
4860: end if;
4861:
4862: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4863: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4864: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4865: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4866:
4859: g_add_rec.date_from := trunc(p_effective_date);
4860: end if;
4861:
4862: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4863: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4864: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4865: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4866:
4867:
4860: end if;
4861:
4862: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4863: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4864: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4865: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4866:
4867:
4868: --hr_utility.trace('MSG_AD 11:'||p_effective_date);
4861:
4862: --hr_utility.trace('MSG_AD p_effective_date:'||p_effective_date);
4863: --hr_utility.trace('MSG_AD primary_flag:'||g_add_rec.primary_flag);
4864: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4865: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4866:
4867:
4868: --hr_utility.trace('MSG_AD 11:'||p_effective_date);
4869:
4864: --hr_utility.trace('MSG_AD address_id:'||g_add_rec.address_id);
4865: --hr_utility.trace('MSG_AD object_version_number:'||g_add_rec.object_version_number);
4866:
4867:
4868: --hr_utility.trace('MSG_AD 11:'||p_effective_date);
4869:
4870: g_add_rec.address_id := l_cur_add_rec.address_id;
4871: g_add_rec.object_version_number := l_cur_add_rec.object_version_number;
4872: g_add_rec.style := l_cur_add_rec.style;
4870: g_add_rec.address_id := l_cur_add_rec.address_id;
4871: g_add_rec.object_version_number := l_cur_add_rec.object_version_number;
4872: g_add_rec.style := l_cur_add_rec.style;
4873:
4874: --hr_utility.trace('MSG_AD 12:'||p_effective_date);
4875: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
4876: Pqp_Hrtca_Integration.Person_Address_Api
4877: (p_HR_Address_Rec => g_add_rec
4878: ,p_validate => false
4886: );
4887: else
4888: raise e_upl_not_allowed;
4889: end if;
4890: --hr_utility.trace('MSG_AD 13:'||p_effective_date);
4891:
4892: end if;
4893: close csr_primary_add;
4894: -- For Secondary Address
4893: close csr_primary_add;
4894: -- For Secondary Address
4895: ELSIF g_add_rec.primary_flag = 'N' Then
4896:
4897: --hr_utility.trace('Testing cursor');
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4894: -- For Secondary Address
4895: ELSIF g_add_rec.primary_flag = 'N' Then
4896:
4897: --hr_utility.trace('Testing cursor');
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4895: ELSIF g_add_rec.primary_flag = 'N' Then
4896:
4897: --hr_utility.trace('Testing cursor');
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4896:
4897: --hr_utility.trace('Testing cursor');
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4904: --hr_utility.trace('c_effective_date :'||p_effective_date);
4897: --hr_utility.trace('Testing cursor');
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4904: --hr_utility.trace('c_effective_date :'||p_effective_date);
4905:
4898: --hr_utility.trace('c_person_id :'||g_add_rec.person_id);
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4904: --hr_utility.trace('c_effective_date :'||p_effective_date);
4905:
4906: open csr_secondary_add (c_person_id => g_add_rec.person_id
4899: --hr_utility.trace('c_business_group_id :'||g_add_rec.business_group_id);
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4904: --hr_utility.trace('c_effective_date :'||p_effective_date);
4905:
4906: open csr_secondary_add (c_person_id => g_add_rec.person_id
4907: ,c_business_group_id => g_add_rec.business_group_id
4900: --hr_utility.trace('c_primary_flag :'||g_add_rec.primary_flag);
4901: --hr_utility.trace('c_style :'||g_add_rec.style);
4902: --hr_utility.trace('c_address_type :'||g_add_rec.address_type);
4903: --hr_utility.trace('c_date_from :'||g_add_rec.date_from);
4904: --hr_utility.trace('c_effective_date :'||p_effective_date);
4905:
4906: open csr_secondary_add (c_person_id => g_add_rec.person_id
4907: ,c_business_group_id => g_add_rec.business_group_id
4908: ,c_primary_flag => g_add_rec.primary_flag
4913:
4914: fetch csr_secondary_add into l_cur_add_rec;
4915:
4916: if csr_secondary_add%notfound then
4917: hr_utility.set_location(' Secondary Address Not found', 40);
4918: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 45);
4919: if (g_crt_upd = 'C') then
4920: Pqp_Hrtca_Integration.Person_Address_Api
4921: (p_HR_Address_Rec => g_add_rec
4914: fetch csr_secondary_add into l_cur_add_rec;
4915:
4916: if csr_secondary_add%notfound then
4917: hr_utility.set_location(' Secondary Address Not found', 40);
4918: hr_utility.set_location(' Person ID'||g_add_rec.person_id, 45);
4919: if (g_crt_upd = 'C') then
4920: Pqp_Hrtca_Integration.Person_Address_Api
4921: (p_HR_Address_Rec => g_add_rec
4922: ,p_validate => false
4931: else
4932: raise e_crt_add_not_allowed;
4933: end if;
4934: else
4935: hr_utility.set_location(' Secondary Address found: ' ||
4936: l_cur_add_rec.address_id, 50);
4937: if g_add_rec.date_from is null then
4938: g_add_rec.date_from := trunc(p_effective_date);
4939: end if;
4959: end if;
4960: close csr_secondary_add;
4961: end if;
4962:
4963: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
4964:
4965: exception
4966: when Others then
4967: if csr_primary_add%isopen then
4972: close csr_secondary_add;
4973: end if;
4974:
4975: --l_error_msg := Substr(SQLERRM,1,2000);
4976: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4973: end if;
4974:
4975: --l_error_msg := Substr(SQLERRM,1,2000);
4976: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4981: hr_utility.raise_error;
4974:
4975: --l_error_msg := Substr(SQLERRM,1,2000);
4976: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4981: hr_utility.raise_error;
4982:
4975: --l_error_msg := Substr(SQLERRM,1,2000);
4976: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4981: hr_utility.raise_error;
4982:
4983: end InsUpd_Address;
4976: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4981: hr_utility.raise_error;
4982:
4983: end InsUpd_Address;
4984: -- =============================================================================
4977: hr_utility.set_location('SQLERRM :' || SQLERRM,90);
4978: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
4979: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
4980: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
4981: hr_utility.raise_error;
4982:
4983: end InsUpd_Address;
4984: -- =============================================================================
4985: -- ~ Upd_Person_Details:
5004: l_error_msg varchar2(3000);
5005: l_proc_name constant varchar2(150):= g_pkg ||'Upd_Person_Details';
5006:
5007: begin
5008: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5009:
5010: l_per_rec := Get_PerRecord_Values(g_interface_code);
5011:
5012: open csr_per(c_person_id => g_per_rec.person_id
5014: ,c_effective_date => p_effective_date);
5015: fetch csr_per into l_cur_per_rec;
5016: close csr_per;
5017:
5018: hr_utility.set_location(' l_cur_per_rec: ' || l_cur_per_rec.person_id, 20);
5019:
5020: Dt_Api.Find_DT_Upd_Modes
5021: (p_effective_date => p_effective_date
5022: ,p_base_table_name => 'PER_ALL_PEOPLE_F'
5049: else
5050: l_datetrack_update_mode := 'CORRECTION';
5051: end if;
5052:
5053: hr_utility.set_location(' l_datetrack_update_mode: ' ||
5054: l_datetrack_update_mode, 30);
5055: hr_utility.set_location(' employee_number: ' ||
5056: l_cur_per_rec.employee_number, 30);
5057: hr_utility.set_location(' per ovn: ' ||
5051: end if;
5052:
5053: hr_utility.set_location(' l_datetrack_update_mode: ' ||
5054: l_datetrack_update_mode, 30);
5055: hr_utility.set_location(' employee_number: ' ||
5056: l_cur_per_rec.employee_number, 30);
5057: hr_utility.set_location(' per ovn: ' ||
5058: l_cur_per_rec.object_version_number, 30);
5059:
5053: hr_utility.set_location(' l_datetrack_update_mode: ' ||
5054: l_datetrack_update_mode, 30);
5055: hr_utility.set_location(' employee_number: ' ||
5056: l_cur_per_rec.employee_number, 30);
5057: hr_utility.set_location(' per ovn: ' ||
5058: l_cur_per_rec.object_version_number, 30);
5059:
5060: -- Need to pass the employee number when updating the person
5061: g_per_rec.object_version_number := l_cur_per_rec.object_version_number;
5210: ,p_adjusted_svc_date => p_adjusted_svc_date --Uncommented by pkagrawa
5211: );
5212:
5213: if g_debug then
5214: hr_utility.set_location('..effective_start_date : ' ||
5215: p_updper_api_out.effective_start_date,40);
5216: hr_utility.set_location('..effective_end_date : ' ||
5217: p_updper_api_out.effective_end_date,40);
5218: hr_utility.set_location('..full_name : ' ||
5212:
5213: if g_debug then
5214: hr_utility.set_location('..effective_start_date : ' ||
5215: p_updper_api_out.effective_start_date,40);
5216: hr_utility.set_location('..effective_end_date : ' ||
5217: p_updper_api_out.effective_end_date,40);
5218: hr_utility.set_location('..full_name : ' ||
5219: p_updper_api_out.full_name,40);
5220: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
5214: hr_utility.set_location('..effective_start_date : ' ||
5215: p_updper_api_out.effective_start_date,40);
5216: hr_utility.set_location('..effective_end_date : ' ||
5217: p_updper_api_out.effective_end_date,40);
5218: hr_utility.set_location('..full_name : ' ||
5219: p_updper_api_out.full_name,40);
5220: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
5221: end if;
5222:
5216: hr_utility.set_location('..effective_end_date : ' ||
5217: p_updper_api_out.effective_end_date,40);
5218: hr_utility.set_location('..full_name : ' ||
5219: p_updper_api_out.full_name,40);
5220: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
5221: end if;
5222:
5223: exception
5224: when e_future_chgs_exists then
5224: when e_future_chgs_exists then
5225: l_error_msg := 'This person cannot be created in HRMS as a Student '||
5226: 'Employee due to future changes beyond the date: '||p_effective_date;
5227:
5228: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5229: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5230: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5225: l_error_msg := 'This person cannot be created in HRMS as a Student '||
5226: 'Employee due to future changes beyond the date: '||p_effective_date;
5227:
5228: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5229: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5230: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5233:
5226: 'Employee due to future changes beyond the date: '||p_effective_date;
5227:
5228: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5229: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5230: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5233:
5234: when Others then
5227:
5228: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5229: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5230: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5233:
5234: when Others then
5235: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
5228: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5229: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5230: hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5233:
5234: when Others then
5235: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
5236: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5231: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5232: hr_utility.raise_error;
5233:
5234: when Others then
5235: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
5236: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5237: raise;
5238:
5239: end Upd_Person_Details;
5232: hr_utility.raise_error;
5233:
5234: when Others then
5235: hr_utility.set_location('SQLERRM :' || SQLCODE,90);
5236: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5237: raise;
5238:
5239: end Upd_Person_Details;
5240: -- =============================================================================
5299: l_unaccepted_asg_del_warning boolean;
5300: l_diff_date number; -- For Hiring applicant on the next day.
5301:
5302: begin
5303: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5304:
5305: g_debug := hr_utility.debug_enabled;
5306: l_effective_date := p_hire_date;
5307:
5301:
5302: begin
5303: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5304:
5305: g_debug := hr_utility.debug_enabled;
5306: l_effective_date := p_hire_date;
5307:
5308: -- Get the person details for the person
5309: open csr_per(c_person_id => g_per_rec.person_id
5310: ,c_business_group_id => g_per_rec.business_group_id
5311: ,c_effective_date => l_effective_date);
5312: fetch csr_per into l_cur_per_rec;
5313: close csr_per;
5314: hr_utility.set_location(' l_cur_per_rec: ' || l_cur_per_rec.person_id, 20);
5315:
5316: -- Get the Applicant assignment details
5317: open csr_asg (c_person_id => g_per_rec.person_id
5318: ,c_business_group_id => g_per_rec.business_group_id
5322: fetch csr_asg into l_perasg_rec;
5323: close csr_asg;
5324:
5325: if g_debug then
5326: hr_utility.set_location(' l_perasg_rec.person_id: ' ||
5327: l_perasg_rec.person_id, 30);
5328: hr_utility.set_location(' l_perasg_rec.asg_id: ' ||
5329: l_perasg_rec.assignment_id, 30);
5330: hr_utility.set_location(' l_perasg_rec.person_ovn: ' ||
5324:
5325: if g_debug then
5326: hr_utility.set_location(' l_perasg_rec.person_id: ' ||
5327: l_perasg_rec.person_id, 30);
5328: hr_utility.set_location(' l_perasg_rec.asg_id: ' ||
5329: l_perasg_rec.assignment_id, 30);
5330: hr_utility.set_location(' l_perasg_rec.person_ovn: ' ||
5331: l_perasg_rec.per_ovn, 30);
5332: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5326: hr_utility.set_location(' l_perasg_rec.person_id: ' ||
5327: l_perasg_rec.person_id, 30);
5328: hr_utility.set_location(' l_perasg_rec.asg_id: ' ||
5329: l_perasg_rec.assignment_id, 30);
5330: hr_utility.set_location(' l_perasg_rec.person_ovn: ' ||
5331: l_perasg_rec.per_ovn, 30);
5332: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5333: l_perasg_rec.asg_ovn, 30);
5334: hr_utility.set_location(' l_effective_date: ' ||
5328: hr_utility.set_location(' l_perasg_rec.asg_id: ' ||
5329: l_perasg_rec.assignment_id, 30);
5330: hr_utility.set_location(' l_perasg_rec.person_ovn: ' ||
5331: l_perasg_rec.per_ovn, 30);
5332: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5333: l_perasg_rec.asg_ovn, 30);
5334: hr_utility.set_location(' l_effective_date: ' ||
5335: l_effective_date, 30);
5336: end if;
5330: hr_utility.set_location(' l_perasg_rec.person_ovn: ' ||
5331: l_perasg_rec.per_ovn, 30);
5332: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5333: l_perasg_rec.asg_ovn, 30);
5334: hr_utility.set_location(' l_effective_date: ' ||
5335: l_effective_date, 30);
5336: end if;
5337: l_accp_asg_count := 0;
5338: for accp_ags in csr_accepted_asgs
5347: open diff_date (date1 =>l_effective_date
5348: ,date2 => l_perasg_rec.effective_start_date);
5349: fetch diff_date into l_diff_date;
5350:
5351: hr_utility.set_location(' l_diff_date: ' || l_diff_date, 40);
5352:
5353: if l_accp_asg_count < 1 then
5354: -- Means the Applicant Assignment is not accepted, so update the applicant
5355: -- as accepted as of the hire date.
5352:
5353: if l_accp_asg_count < 1 then
5354: -- Means the Applicant Assignment is not accepted, so update the applicant
5355: -- as accepted as of the hire date.
5356: hr_utility.set_location(' Asg Id NOT Accepted : ' || p_assignment_id, 40);
5357: if l_diff_date = 1 then -- Means The Applicant Assignment is to be corrected to
5358: Dt_Api.Find_DT_Upd_Modes -- Accepted.
5359: (p_effective_date => l_perasg_rec.effective_start_date
5360: ,p_base_table_name => 'PER_ALL_ASSIGNMENTS_F'
5388: l_datetrack_update_mode := 'CORRECTION';
5389: else
5390: l_datetrack_update_mode := 'CORRECTION';
5391: end if;
5392: hr_utility.set_location(' DT Mode for Update of Appl Asg : ' ||
5393: l_datetrack_update_mode, 50);
5394:
5395: -- Get the Accepted Applicant Status Id
5396: open csr_asg_status (c_leg_code => g_leg_code
5397: ,c_business_group_id => g_per_rec.business_group_id
5398: );
5399: fetch csr_asg_status into l_asg_status_rec;
5400: close csr_asg_status;
5401: hr_utility.set_location(' Accepted Asg Status ID: ' ||
5402: l_asg_status_rec.assignment_status_type_id, 60);
5403:
5404: -- Now accept the Applicant assigment used to hire the person
5405: HR_Assignment_API.Accept_APL_Asg
5413: ,p_effective_start_date => l_appl_asg_start_date
5414: ,p_effective_end_date => l_appl_asg_end_date
5415: );
5416: if g_debug then
5417: hr_utility.set_location(' l_appl_asg_start_date: ' ||
5418: l_appl_asg_start_date, 70);
5419: hr_utility.set_location(' l_appl_asg_end_date: ' ||
5420: l_appl_asg_end_date, 70);
5421: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5415: );
5416: if g_debug then
5417: hr_utility.set_location(' l_appl_asg_start_date: ' ||
5418: l_appl_asg_start_date, 70);
5419: hr_utility.set_location(' l_appl_asg_end_date: ' ||
5420: l_appl_asg_end_date, 70);
5421: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5422: l_perasg_rec.asg_ovn, 70);
5423: end if;
5417: hr_utility.set_location(' l_appl_asg_start_date: ' ||
5418: l_appl_asg_start_date, 70);
5419: hr_utility.set_location(' l_appl_asg_end_date: ' ||
5420: l_appl_asg_end_date, 70);
5421: hr_utility.set_location(' l_perasg_rec.asg_ovn: ' ||
5422: l_perasg_rec.asg_ovn, 70);
5423: end if;
5424:
5425: -- Get again the person details for the person
5427: ,c_business_group_id => g_per_rec.business_group_id
5428: ,c_effective_date => l_effective_date);
5429: fetch csr_per into l_cur_per_rec;
5430: close csr_per;
5431: hr_utility.set_location(' per_rec.ovn: ' ||
5432: l_cur_per_rec.object_version_number, 80);
5433: else
5434: hr_utility.set_location(' Asg Id Accepted Already: ' ||
5435: p_assignment_id, 90);
5430: close csr_per;
5431: hr_utility.set_location(' per_rec.ovn: ' ||
5432: l_cur_per_rec.object_version_number, 80);
5433: else
5434: hr_utility.set_location(' Asg Id Accepted Already: ' ||
5435: p_assignment_id, 90);
5436: end if;
5437:
5438: -- Get the count of accepted Applicant Assignments
5490: else
5491: l_datetrack_update_mode := 'CORRECTION';
5492: end if;
5493:
5494: hr_utility.set_location(' l_datetrack_update_mode: ' ||
5495: l_datetrack_update_mode, 100);
5496: g_per_rec.object_version_number := l_cur_per_rec.object_version_number;
5497: if l_tot_appl_asgs = 1 then
5498: -- As the person has only one applicant assignment then hire person so that
5549: fetch csr_per into l_cur_per_rec;
5550: close csr_per;
5551:
5552: if g_debug then
5553: hr_utility.set_location('..effective_start_date : ' ||
5554: p_HireAppapi_out.effective_start_date, 110);
5555: hr_utility.set_location('..effective_end_date : ' ||
5556: p_HireAppapi_out.effective_end_date, 110);
5557: hr_utility.set_location('..Old:object_version_number : ' ||
5551:
5552: if g_debug then
5553: hr_utility.set_location('..effective_start_date : ' ||
5554: p_HireAppapi_out.effective_start_date, 110);
5555: hr_utility.set_location('..effective_end_date : ' ||
5556: p_HireAppapi_out.effective_end_date, 110);
5557: hr_utility.set_location('..Old:object_version_number : ' ||
5558: l_cur_per_rec.object_version_number, 110);
5559: end if;
5553: hr_utility.set_location('..effective_start_date : ' ||
5554: p_HireAppapi_out.effective_start_date, 110);
5555: hr_utility.set_location('..effective_end_date : ' ||
5556: p_HireAppapi_out.effective_end_date, 110);
5557: hr_utility.set_location('..Old:object_version_number : ' ||
5558: l_cur_per_rec.object_version_number, 110);
5559: end if;
5560: l_datetrack_update_mode := 'CORRECTION';
5561: --
5569: ,p_adjusted_svc_date => p_adjusted_svc_date -- Added by pkagrawa
5570: ,p_updper_api_out => l_UpdEmp_Api
5571: );
5572: if g_debug then
5573: hr_utility.set_location('..effective_start_date : ' ||
5574: p_updper_api_out.effective_start_date, 120);
5575: hr_utility.set_location('..effective_end_date : ' ||
5576: p_updper_api_out.effective_end_date, 120);
5577: hr_utility.set_location('..full_name : ' ||
5571: );
5572: if g_debug then
5573: hr_utility.set_location('..effective_start_date : ' ||
5574: p_updper_api_out.effective_start_date, 120);
5575: hr_utility.set_location('..effective_end_date : ' ||
5576: p_updper_api_out.effective_end_date, 120);
5577: hr_utility.set_location('..full_name : ' ||
5578: p_updper_api_out.full_name, 120);
5579: hr_utility.set_location('Leaving: ' || l_proc_name, 120);
5573: hr_utility.set_location('..effective_start_date : ' ||
5574: p_updper_api_out.effective_start_date, 120);
5575: hr_utility.set_location('..effective_end_date : ' ||
5576: p_updper_api_out.effective_end_date, 120);
5577: hr_utility.set_location('..full_name : ' ||
5578: p_updper_api_out.full_name, 120);
5579: hr_utility.set_location('Leaving: ' || l_proc_name, 120);
5580: end if;
5581:
5575: hr_utility.set_location('..effective_end_date : ' ||
5576: p_updper_api_out.effective_end_date, 120);
5577: hr_utility.set_location('..full_name : ' ||
5578: p_updper_api_out.full_name, 120);
5579: hr_utility.set_location('Leaving: ' || l_proc_name, 120);
5580: end if;
5581:
5582: --
5583: -- Address record
5597: if csr_asg_status%isopen then
5598: close csr_asg_status;
5599: end if;
5600: --l_error_msg := Substr(SQLERRM,1,2000);
5601: hr_utility.set_location('SQLCODE :' || SQLCODE, 130);
5602: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5603: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5604: hr_utility.set_location('Leaving: ' || l_proc_name, 130);
5605: hr_utility.raise_error;
5598: close csr_asg_status;
5599: end if;
5600: --l_error_msg := Substr(SQLERRM,1,2000);
5601: hr_utility.set_location('SQLCODE :' || SQLCODE, 130);
5602: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5603: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5604: hr_utility.set_location('Leaving: ' || l_proc_name, 130);
5605: hr_utility.raise_error;
5606:
5599: end if;
5600: --l_error_msg := Substr(SQLERRM,1,2000);
5601: hr_utility.set_location('SQLCODE :' || SQLCODE, 130);
5602: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5603: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5604: hr_utility.set_location('Leaving: ' || l_proc_name, 130);
5605: hr_utility.raise_error;
5606:
5607: end Hire_Applicant_IntoEmp;
5600: --l_error_msg := Substr(SQLERRM,1,2000);
5601: hr_utility.set_location('SQLCODE :' || SQLCODE, 130);
5602: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5603: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5604: hr_utility.set_location('Leaving: ' || l_proc_name, 130);
5605: hr_utility.raise_error;
5606:
5607: end Hire_Applicant_IntoEmp;
5608:
5601: hr_utility.set_location('SQLCODE :' || SQLCODE, 130);
5602: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5603: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5604: hr_utility.set_location('Leaving: ' || l_proc_name, 130);
5605: hr_utility.raise_error;
5606:
5607: end Hire_Applicant_IntoEmp;
5608:
5609: -- =============================================================================
5642: l_error_msg varchar2(2000);
5643: l_proc_name constant varchar2(150):= g_pkg ||'Hire_Person_IntoEmp';
5644: e_future_chgs_exists exception;
5645: begin
5646: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5647:
5648: open csr_per(c_person_id => g_per_rec.person_id
5649: ,c_business_group_id => g_per_rec.business_group_id
5650: ,c_effective_date => p_hire_date);
5649: ,c_business_group_id => g_per_rec.business_group_id
5650: ,c_effective_date => p_hire_date);
5651: fetch csr_per into l_cur_per_rec;
5652: close csr_per;
5653: hr_utility.set_location(' l_cur_per_rec: ' || l_cur_per_rec.person_id, 20);
5654:
5655: Dt_Api.Find_DT_Upd_Modes
5656: (p_effective_date => p_hire_date
5657: ,p_base_table_name => 'PER_ALL_PEOPLE_F'
5685: else
5686: l_datetrack_update_mode := 'CORRECTION';
5687: end if;
5688:
5689: hr_utility.set_location('l_datetrack_update_mode: ' ||
5690: l_datetrack_update_mode, 30);
5691: g_per_rec.object_version_number := l_cur_per_rec.object_version_number;
5692:
5693: Hr_Employee_Api.Hire_Into_Job
5720: fetch csr_per into l_cur_per_rec;
5721: close csr_per;
5722:
5723: if g_debug then
5724: hr_utility.set_location('..effective_start_date : ' ||
5725: p_HireToJobapi_out.effective_start_date,40);
5726: hr_utility.set_location('..effective_end_date : ' ||
5727: p_HireToJobapi_out.effective_end_date,40);
5728: hr_utility.set_location('..New:object_version_number : ' ||
5722:
5723: if g_debug then
5724: hr_utility.set_location('..effective_start_date : ' ||
5725: p_HireToJobapi_out.effective_start_date,40);
5726: hr_utility.set_location('..effective_end_date : ' ||
5727: p_HireToJobapi_out.effective_end_date,40);
5728: hr_utility.set_location('..New:object_version_number : ' ||
5729: g_per_rec.object_version_number,40);
5730: hr_utility.set_location('..Old:object_version_number : ' ||
5724: hr_utility.set_location('..effective_start_date : ' ||
5725: p_HireToJobapi_out.effective_start_date,40);
5726: hr_utility.set_location('..effective_end_date : ' ||
5727: p_HireToJobapi_out.effective_end_date,40);
5728: hr_utility.set_location('..New:object_version_number : ' ||
5729: g_per_rec.object_version_number,40);
5730: hr_utility.set_location('..Old:object_version_number : ' ||
5731: l_cur_per_rec.object_version_number,40);
5732: hr_utility.set_location('..New:Assignment Id : ' ||
5726: hr_utility.set_location('..effective_end_date : ' ||
5727: p_HireToJobapi_out.effective_end_date,40);
5728: hr_utility.set_location('..New:object_version_number : ' ||
5729: g_per_rec.object_version_number,40);
5730: hr_utility.set_location('..Old:object_version_number : ' ||
5731: l_cur_per_rec.object_version_number,40);
5732: hr_utility.set_location('..New:Assignment Id : ' ||
5733: p_HireToJobapi_out.assignment_id,40);
5734: end if;
5728: hr_utility.set_location('..New:object_version_number : ' ||
5729: g_per_rec.object_version_number,40);
5730: hr_utility.set_location('..Old:object_version_number : ' ||
5731: l_cur_per_rec.object_version_number,40);
5732: hr_utility.set_location('..New:Assignment Id : ' ||
5733: p_HireToJobapi_out.assignment_id,40);
5734: end if;
5735: l_datetrack_update_mode := 'CORRECTION';
5736:
5741: ,p_adjusted_svc_date => null
5742: ,p_updper_api_out => l_UpdEmp_Api
5743: );
5744: if g_debug then
5745: hr_utility.set_location('..effective_start_date : ' ||
5746: p_updper_api_out.effective_start_date, 50);
5747: hr_utility.set_location('..effective_end_date : ' ||
5748: p_updper_api_out.effective_end_date, 50);
5749: hr_utility.set_location('..full_name : ' ||
5743: );
5744: if g_debug then
5745: hr_utility.set_location('..effective_start_date : ' ||
5746: p_updper_api_out.effective_start_date, 50);
5747: hr_utility.set_location('..effective_end_date : ' ||
5748: p_updper_api_out.effective_end_date, 50);
5749: hr_utility.set_location('..full_name : ' ||
5750: p_updper_api_out.full_name, 50);
5751: hr_utility.set_location('Leaving: ' || l_proc_name, 50);
5745: hr_utility.set_location('..effective_start_date : ' ||
5746: p_updper_api_out.effective_start_date, 50);
5747: hr_utility.set_location('..effective_end_date : ' ||
5748: p_updper_api_out.effective_end_date, 50);
5749: hr_utility.set_location('..full_name : ' ||
5750: p_updper_api_out.full_name, 50);
5751: hr_utility.set_location('Leaving: ' || l_proc_name, 50);
5752: end if;
5753:
5747: hr_utility.set_location('..effective_end_date : ' ||
5748: p_updper_api_out.effective_end_date, 50);
5749: hr_utility.set_location('..full_name : ' ||
5750: p_updper_api_out.full_name, 50);
5751: hr_utility.set_location('Leaving: ' || l_proc_name, 50);
5752: end if;
5753:
5754: exception
5755: when e_future_chgs_exists then
5755: when e_future_chgs_exists then
5756: l_error_msg := 'This person cannot be created/updated in HRMS as the '||
5757: 'Person has future changes beyond the date: '||p_hire_date;
5758:
5759: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5760: hr_utility.set_message(8303, 'PQP_230491_RIW_PER_NOT_CREATED');
5761: hr_utility.set_message_token('TOKEN',p_hire_date );
5762: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5763: hr_utility.raise_error;
5756: l_error_msg := 'This person cannot be created/updated in HRMS as the '||
5757: 'Person has future changes beyond the date: '||p_hire_date;
5758:
5759: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5760: hr_utility.set_message(8303, 'PQP_230491_RIW_PER_NOT_CREATED');
5761: hr_utility.set_message_token('TOKEN',p_hire_date );
5762: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5763: hr_utility.raise_error;
5764:
5757: 'Person has future changes beyond the date: '||p_hire_date;
5758:
5759: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5760: hr_utility.set_message(8303, 'PQP_230491_RIW_PER_NOT_CREATED');
5761: hr_utility.set_message_token('TOKEN',p_hire_date );
5762: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5763: hr_utility.raise_error;
5764:
5765: when Others then
5758:
5759: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5760: hr_utility.set_message(8303, 'PQP_230491_RIW_PER_NOT_CREATED');
5761: hr_utility.set_message_token('TOKEN',p_hire_date );
5762: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5763: hr_utility.raise_error;
5764:
5765: when Others then
5766: if csr_asg%isopen then
5759: hr_utility.set_location('..Future Update exists for the Student Employee', 60);
5760: hr_utility.set_message(8303, 'PQP_230491_RIW_PER_NOT_CREATED');
5761: hr_utility.set_message_token('TOKEN',p_hire_date );
5762: hr_utility.set_location('Leaving: ' || l_proc_name, 60);
5763: hr_utility.raise_error;
5764:
5765: when Others then
5766: if csr_asg%isopen then
5767: close csr_asg;
5769: if csr_per%isopen then
5770: close csr_per;
5771: end if;
5772: --l_error_msg := Substr(SQLERRM,1,2000);
5773: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
5774: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5775: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5776: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5777: hr_utility.raise_error;
5770: close csr_per;
5771: end if;
5772: --l_error_msg := Substr(SQLERRM,1,2000);
5773: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
5774: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5775: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5776: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5777: hr_utility.raise_error;
5778:
5771: end if;
5772: --l_error_msg := Substr(SQLERRM,1,2000);
5773: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
5774: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5775: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5776: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5777: hr_utility.raise_error;
5778:
5779: end Hire_Person_IntoEmp;
5772: --l_error_msg := Substr(SQLERRM,1,2000);
5773: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
5774: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5775: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5776: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5777: hr_utility.raise_error;
5778:
5779: end Hire_Person_IntoEmp;
5780:
5773: hr_utility.set_location('SQLCODE :' || SQLCODE,90);
5774: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
5775: --hr_utility.set_message_token('GENERIC_TOKEN',substr(l_error_msg,1,50) );
5776: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
5777: hr_utility.raise_error;
5778:
5779: end Hire_Person_IntoEmp;
5780:
5781: -- =============================================================================
5794:
5795: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Employee';
5796:
5797: begin
5798: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5799:
5800: if p_action_mode = 'CREATE_EMPLOYEE' then
5801:
5802: --hr_utility.trace('Before Call to Hr_Employee_Api.Create_Employee:');
5798: hr_utility.set_location('Entering: ' || l_proc_name, 10);
5799:
5800: if p_action_mode = 'CREATE_EMPLOYEE' then
5801:
5802: --hr_utility.trace('Before Call to Hr_Employee_Api.Create_Employee:');
5803: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5804: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5805:
5806:
5799:
5800: if p_action_mode = 'CREATE_EMPLOYEE' then
5801:
5802: --hr_utility.trace('Before Call to Hr_Employee_Api.Create_Employee:');
5803: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5804: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5805:
5806:
5807: Hr_Employee_Api.Create_Employee
5800: if p_action_mode = 'CREATE_EMPLOYEE' then
5801:
5802: --hr_utility.trace('Before Call to Hr_Employee_Api.Create_Employee:');
5803: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5804: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5805:
5806:
5807: Hr_Employee_Api.Create_Employee
5808: (p_validate => p_validate
5974: g_add_rec.person_id := g_per_rec.person_id;
5975: g_add_rec.date_from := g_per_rec.start_date;
5976: g_add_rec.date_to := null;
5977:
5978: --hr_utility.trace('After Call to Hr_Employee_Api.Create_Employee:');
5979: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5980: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5981: --hr_utility.trace('assignment_sequence =>'|| g_asg_rec.assignment_sequence);
5982:
5975: g_add_rec.date_from := g_per_rec.start_date;
5976: g_add_rec.date_to := null;
5977:
5978: --hr_utility.trace('After Call to Hr_Employee_Api.Create_Employee:');
5979: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5980: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5981: --hr_utility.trace('assignment_sequence =>'|| g_asg_rec.assignment_sequence);
5982:
5983: elsif p_action_mode = 'HIRE_PERSON_INTOEMP' then
5976: g_add_rec.date_to := null;
5977:
5978: --hr_utility.trace('After Call to Hr_Employee_Api.Create_Employee:');
5979: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5980: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5981: --hr_utility.trace('assignment_sequence =>'|| g_asg_rec.assignment_sequence);
5982:
5983: elsif p_action_mode = 'HIRE_PERSON_INTOEMP' then
5984:
5977:
5978: --hr_utility.trace('After Call to Hr_Employee_Api.Create_Employee:');
5979: --hr_utility.trace('p_employee_number=>'|| g_per_rec.employee_number);
5980: --hr_utility.trace('p_assignment_number=>'|| g_asg_rec.assignment_number);
5981: --hr_utility.trace('assignment_sequence =>'|| g_asg_rec.assignment_sequence);
5982:
5983: elsif p_action_mode = 'HIRE_PERSON_INTOEMP' then
5984:
5985: Hire_Person_IntoEmp
6014:
6015: end if;
6016:
6017: if g_debug then
6018: hr_utility.set_location('..person_id : ' ||
6019: p_emp_api_out.person_id,20);
6020: hr_utility.set_location('..assignment_id : ' ||
6021: p_emp_api_out.assignment_id,20);
6022: hr_utility.set_location('..per_object_version_number : ' ||
6016:
6017: if g_debug then
6018: hr_utility.set_location('..person_id : ' ||
6019: p_emp_api_out.person_id,20);
6020: hr_utility.set_location('..assignment_id : ' ||
6021: p_emp_api_out.assignment_id,20);
6022: hr_utility.set_location('..per_object_version_number : ' ||
6023: p_emp_api_out.per_object_version_number,20);
6024: hr_utility.set_location('..asg_object_version_number : ' ||
6018: hr_utility.set_location('..person_id : ' ||
6019: p_emp_api_out.person_id,20);
6020: hr_utility.set_location('..assignment_id : ' ||
6021: p_emp_api_out.assignment_id,20);
6022: hr_utility.set_location('..per_object_version_number : ' ||
6023: p_emp_api_out.per_object_version_number,20);
6024: hr_utility.set_location('..asg_object_version_number : ' ||
6025: p_emp_api_out.asg_object_version_number,20);
6026: hr_utility.set_location('..per_effective_start_date : ' ||
6020: hr_utility.set_location('..assignment_id : ' ||
6021: p_emp_api_out.assignment_id,20);
6022: hr_utility.set_location('..per_object_version_number : ' ||
6023: p_emp_api_out.per_object_version_number,20);
6024: hr_utility.set_location('..asg_object_version_number : ' ||
6025: p_emp_api_out.asg_object_version_number,20);
6026: hr_utility.set_location('..per_effective_start_date : ' ||
6027: p_emp_api_out.per_effective_start_date,20);
6028: hr_utility.set_location('..per_effective_end_date : ' ||
6022: hr_utility.set_location('..per_object_version_number : ' ||
6023: p_emp_api_out.per_object_version_number,20);
6024: hr_utility.set_location('..asg_object_version_number : ' ||
6025: p_emp_api_out.asg_object_version_number,20);
6026: hr_utility.set_location('..per_effective_start_date : ' ||
6027: p_emp_api_out.per_effective_start_date,20);
6028: hr_utility.set_location('..per_effective_end_date : ' ||
6029: p_emp_api_out.per_effective_end_date,20);
6030: hr_utility.set_location('..full_name : ' ||
6024: hr_utility.set_location('..asg_object_version_number : ' ||
6025: p_emp_api_out.asg_object_version_number,20);
6026: hr_utility.set_location('..per_effective_start_date : ' ||
6027: p_emp_api_out.per_effective_start_date,20);
6028: hr_utility.set_location('..per_effective_end_date : ' ||
6029: p_emp_api_out.per_effective_end_date,20);
6030: hr_utility.set_location('..full_name : ' ||
6031: p_emp_api_out.full_name,20);
6032: hr_utility.set_location('..per_comment_id : ' ||
6026: hr_utility.set_location('..per_effective_start_date : ' ||
6027: p_emp_api_out.per_effective_start_date,20);
6028: hr_utility.set_location('..per_effective_end_date : ' ||
6029: p_emp_api_out.per_effective_end_date,20);
6030: hr_utility.set_location('..full_name : ' ||
6031: p_emp_api_out.full_name,20);
6032: hr_utility.set_location('..per_comment_id : ' ||
6033: p_emp_api_out.per_comment_id,20);
6034: hr_utility.set_location('..assignment_sequence : ' ||
6028: hr_utility.set_location('..per_effective_end_date : ' ||
6029: p_emp_api_out.per_effective_end_date,20);
6030: hr_utility.set_location('..full_name : ' ||
6031: p_emp_api_out.full_name,20);
6032: hr_utility.set_location('..per_comment_id : ' ||
6033: p_emp_api_out.per_comment_id,20);
6034: hr_utility.set_location('..assignment_sequence : ' ||
6035: p_emp_api_out.assignment_sequence,20);
6036: hr_utility.set_location('..assignment_number : ' ||
6030: hr_utility.set_location('..full_name : ' ||
6031: p_emp_api_out.full_name,20);
6032: hr_utility.set_location('..per_comment_id : ' ||
6033: p_emp_api_out.per_comment_id,20);
6034: hr_utility.set_location('..assignment_sequence : ' ||
6035: p_emp_api_out.assignment_sequence,20);
6036: hr_utility.set_location('..assignment_number : ' ||
6037: p_emp_api_out.assignment_number,20);
6038: end if;
6032: hr_utility.set_location('..per_comment_id : ' ||
6033: p_emp_api_out.per_comment_id,20);
6034: hr_utility.set_location('..assignment_sequence : ' ||
6035: p_emp_api_out.assignment_sequence,20);
6036: hr_utility.set_location('..assignment_number : ' ||
6037: p_emp_api_out.assignment_number,20);
6038: end if;
6039:
6040: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6036: hr_utility.set_location('..assignment_number : ' ||
6037: p_emp_api_out.assignment_number,20);
6038: end if;
6039:
6040: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6041:
6042: exception
6043: when Others then
6044: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6040: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6041:
6042: exception
6043: when Others then
6044: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6045: raise;
6046:
6047: end InsUpd_Employee;
6048:
6075:
6076: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Applicant';
6077:
6078: begin
6079: hr_utility.set_location('Entering: ' || l_proc_name, 10);
6080:
6081: Get_DataTrack_Mode
6082: (p_datetrack_update_mode => l_datetrack_update_mode
6083: );
6083: );
6084:
6085: if p_action_mode ='CREATE_APPLICANT' then
6086:
6087: --hr_utility.trace('Before CREATE_APPLICANT');
6088:
6089: HR_Applicant_API.Create_Applicant
6090: (p_validate => p_validate
6091: ,p_date_received => g_per_rec.start_date
6219: ,p_orig_hire_warning => p_appl_api_out.orig_hire_warning
6220: );
6221:
6222:
6223: --hr_utility.trace('After CREATE_APPLICANT Value of l_application_id'||l_application_id);
6224:
6225: g_asg_rec.application_id := l_application_id; -- Change by pkagrawa
6226: --
6227: -- Person record
6404:
6405: end if;
6406:
6407: if g_debug then
6408: hr_utility.set_location('..person_id : ' ||
6409: p_appl_api_out.person_id,20);
6410: hr_utility.set_location('..assignment_id : ' ||
6411: p_appl_api_out.assignment_id,20);
6412: hr_utility.set_location('..per_object_version_number : ' ||
6406:
6407: if g_debug then
6408: hr_utility.set_location('..person_id : ' ||
6409: p_appl_api_out.person_id,20);
6410: hr_utility.set_location('..assignment_id : ' ||
6411: p_appl_api_out.assignment_id,20);
6412: hr_utility.set_location('..per_object_version_number : ' ||
6413: p_appl_api_out.per_object_version_number,20);
6414: hr_utility.set_location('..asg_object_version_number : ' ||
6408: hr_utility.set_location('..person_id : ' ||
6409: p_appl_api_out.person_id,20);
6410: hr_utility.set_location('..assignment_id : ' ||
6411: p_appl_api_out.assignment_id,20);
6412: hr_utility.set_location('..per_object_version_number : ' ||
6413: p_appl_api_out.per_object_version_number,20);
6414: hr_utility.set_location('..asg_object_version_number : ' ||
6415: p_appl_api_out.asg_object_version_number,20);
6416: hr_utility.set_location('..per_effective_start_date : ' ||
6410: hr_utility.set_location('..assignment_id : ' ||
6411: p_appl_api_out.assignment_id,20);
6412: hr_utility.set_location('..per_object_version_number : ' ||
6413: p_appl_api_out.per_object_version_number,20);
6414: hr_utility.set_location('..asg_object_version_number : ' ||
6415: p_appl_api_out.asg_object_version_number,20);
6416: hr_utility.set_location('..per_effective_start_date : ' ||
6417: p_appl_api_out.per_effective_start_date,20);
6418: hr_utility.set_location('..per_effective_end_date : ' ||
6412: hr_utility.set_location('..per_object_version_number : ' ||
6413: p_appl_api_out.per_object_version_number,20);
6414: hr_utility.set_location('..asg_object_version_number : ' ||
6415: p_appl_api_out.asg_object_version_number,20);
6416: hr_utility.set_location('..per_effective_start_date : ' ||
6417: p_appl_api_out.per_effective_start_date,20);
6418: hr_utility.set_location('..per_effective_end_date : ' ||
6419: p_appl_api_out.per_effective_end_date,20);
6420: hr_utility.set_location('..full_name : ' ||
6414: hr_utility.set_location('..asg_object_version_number : ' ||
6415: p_appl_api_out.asg_object_version_number,20);
6416: hr_utility.set_location('..per_effective_start_date : ' ||
6417: p_appl_api_out.per_effective_start_date,20);
6418: hr_utility.set_location('..per_effective_end_date : ' ||
6419: p_appl_api_out.per_effective_end_date,20);
6420: hr_utility.set_location('..full_name : ' ||
6421: p_appl_api_out.full_name,20);
6422: hr_utility.set_location('..per_comment_id : ' ||
6416: hr_utility.set_location('..per_effective_start_date : ' ||
6417: p_appl_api_out.per_effective_start_date,20);
6418: hr_utility.set_location('..per_effective_end_date : ' ||
6419: p_appl_api_out.per_effective_end_date,20);
6420: hr_utility.set_location('..full_name : ' ||
6421: p_appl_api_out.full_name,20);
6422: hr_utility.set_location('..per_comment_id : ' ||
6423: p_appl_api_out.per_comment_id,20);
6424: hr_utility.set_location('..assignment_sequence : ' ||
6418: hr_utility.set_location('..per_effective_end_date : ' ||
6419: p_appl_api_out.per_effective_end_date,20);
6420: hr_utility.set_location('..full_name : ' ||
6421: p_appl_api_out.full_name,20);
6422: hr_utility.set_location('..per_comment_id : ' ||
6423: p_appl_api_out.per_comment_id,20);
6424: hr_utility.set_location('..assignment_sequence : ' ||
6425: p_appl_api_out.assignment_sequence,20);
6426: hr_utility.set_location('..assignment_number : ' ||
6420: hr_utility.set_location('..full_name : ' ||
6421: p_appl_api_out.full_name,20);
6422: hr_utility.set_location('..per_comment_id : ' ||
6423: p_appl_api_out.per_comment_id,20);
6424: hr_utility.set_location('..assignment_sequence : ' ||
6425: p_appl_api_out.assignment_sequence,20);
6426: hr_utility.set_location('..assignment_number : ' ||
6427: p_appl_api_out.assignment_number,20);
6428: end if;
6422: hr_utility.set_location('..per_comment_id : ' ||
6423: p_appl_api_out.per_comment_id,20);
6424: hr_utility.set_location('..assignment_sequence : ' ||
6425: p_appl_api_out.assignment_sequence,20);
6426: hr_utility.set_location('..assignment_number : ' ||
6427: p_appl_api_out.assignment_number,20);
6428: end if;
6429:
6430: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6426: hr_utility.set_location('..assignment_number : ' ||
6427: p_appl_api_out.assignment_number,20);
6428: end if;
6429:
6430: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6431:
6432: exception
6433: when Others then
6434: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6430: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6431:
6432: exception
6433: when Others then
6434: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6435: raise;
6436:
6437: end InsUpd_Applicant;
6438: -- =============================================================================
6452: l_datetrack_update_mode varchar2(150);
6453: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Contingent_Worker';
6454:
6455: begin
6456: hr_utility.set_location('Entering: ' || l_proc_name, 10);
6457:
6458: Get_DataTrack_Mode
6459: (p_datetrack_update_mode => l_datetrack_update_mode
6460: );
6458: Get_DataTrack_Mode
6459: (p_datetrack_update_mode => l_datetrack_update_mode
6460: );
6461:
6462: --hr_utility.trace('Inside InsUpd_Contingent_Worker before CREATE_CWK');
6463: --hr_utility.trace('p_person_type_id'||g_per_rec.person_type_id);
6464:
6465: if p_action_mode ='CREATE_CWK' then
6466:
6459: (p_datetrack_update_mode => l_datetrack_update_mode
6460: );
6461:
6462: --hr_utility.trace('Inside InsUpd_Contingent_Worker before CREATE_CWK');
6463: --hr_utility.trace('p_person_type_id'||g_per_rec.person_type_id);
6464:
6465: if p_action_mode ='CREATE_CWK' then
6466:
6467: HR_Contingent_Worker_API.Create_CWK
6705: g_add_rec.date_to := null;
6706: end if;
6707:
6708: if g_debug then
6709: hr_utility.set_location('..person_id : ' ||
6710: p_cwk_api_out.person_id,20);
6711: hr_utility.set_location('..assignment_id : ' ||
6712: p_cwk_api_out.assignment_id,20);
6713: hr_utility.set_location('..per_object_version_number : ' ||
6707:
6708: if g_debug then
6709: hr_utility.set_location('..person_id : ' ||
6710: p_cwk_api_out.person_id,20);
6711: hr_utility.set_location('..assignment_id : ' ||
6712: p_cwk_api_out.assignment_id,20);
6713: hr_utility.set_location('..per_object_version_number : ' ||
6714: p_cwk_api_out.per_object_version_number,20);
6715: hr_utility.set_location('..asg_object_version_number : ' ||
6709: hr_utility.set_location('..person_id : ' ||
6710: p_cwk_api_out.person_id,20);
6711: hr_utility.set_location('..assignment_id : ' ||
6712: p_cwk_api_out.assignment_id,20);
6713: hr_utility.set_location('..per_object_version_number : ' ||
6714: p_cwk_api_out.per_object_version_number,20);
6715: hr_utility.set_location('..asg_object_version_number : ' ||
6716: p_cwk_api_out.asg_object_version_number,20);
6717: hr_utility.set_location('..per_effective_start_date : ' ||
6711: hr_utility.set_location('..assignment_id : ' ||
6712: p_cwk_api_out.assignment_id,20);
6713: hr_utility.set_location('..per_object_version_number : ' ||
6714: p_cwk_api_out.per_object_version_number,20);
6715: hr_utility.set_location('..asg_object_version_number : ' ||
6716: p_cwk_api_out.asg_object_version_number,20);
6717: hr_utility.set_location('..per_effective_start_date : ' ||
6718: p_cwk_api_out.per_effective_start_date,20);
6719: hr_utility.set_location('..per_effective_end_date : ' ||
6713: hr_utility.set_location('..per_object_version_number : ' ||
6714: p_cwk_api_out.per_object_version_number,20);
6715: hr_utility.set_location('..asg_object_version_number : ' ||
6716: p_cwk_api_out.asg_object_version_number,20);
6717: hr_utility.set_location('..per_effective_start_date : ' ||
6718: p_cwk_api_out.per_effective_start_date,20);
6719: hr_utility.set_location('..per_effective_end_date : ' ||
6720: p_cwk_api_out.per_effective_end_date,20);
6721: hr_utility.set_location('..full_name : ' ||
6715: hr_utility.set_location('..asg_object_version_number : ' ||
6716: p_cwk_api_out.asg_object_version_number,20);
6717: hr_utility.set_location('..per_effective_start_date : ' ||
6718: p_cwk_api_out.per_effective_start_date,20);
6719: hr_utility.set_location('..per_effective_end_date : ' ||
6720: p_cwk_api_out.per_effective_end_date,20);
6721: hr_utility.set_location('..full_name : ' ||
6722: p_cwk_api_out.full_name,20);
6723: hr_utility.set_location('..per_comment_id : ' ||
6717: hr_utility.set_location('..per_effective_start_date : ' ||
6718: p_cwk_api_out.per_effective_start_date,20);
6719: hr_utility.set_location('..per_effective_end_date : ' ||
6720: p_cwk_api_out.per_effective_end_date,20);
6721: hr_utility.set_location('..full_name : ' ||
6722: p_cwk_api_out.full_name,20);
6723: hr_utility.set_location('..per_comment_id : ' ||
6724: p_cwk_api_out.per_comment_id,20);
6725: hr_utility.set_location('..assignment_sequence : ' ||
6719: hr_utility.set_location('..per_effective_end_date : ' ||
6720: p_cwk_api_out.per_effective_end_date,20);
6721: hr_utility.set_location('..full_name : ' ||
6722: p_cwk_api_out.full_name,20);
6723: hr_utility.set_location('..per_comment_id : ' ||
6724: p_cwk_api_out.per_comment_id,20);
6725: hr_utility.set_location('..assignment_sequence : ' ||
6726: p_cwk_api_out.assignment_sequence,20);
6727: hr_utility.set_location('..assignment_number : ' ||
6721: hr_utility.set_location('..full_name : ' ||
6722: p_cwk_api_out.full_name,20);
6723: hr_utility.set_location('..per_comment_id : ' ||
6724: p_cwk_api_out.per_comment_id,20);
6725: hr_utility.set_location('..assignment_sequence : ' ||
6726: p_cwk_api_out.assignment_sequence,20);
6727: hr_utility.set_location('..assignment_number : ' ||
6728: p_cwk_api_out.assignment_number,20);
6729: end if;
6723: hr_utility.set_location('..per_comment_id : ' ||
6724: p_cwk_api_out.per_comment_id,20);
6725: hr_utility.set_location('..assignment_sequence : ' ||
6726: p_cwk_api_out.assignment_sequence,20);
6727: hr_utility.set_location('..assignment_number : ' ||
6728: p_cwk_api_out.assignment_number,20);
6729: end if;
6730:
6731: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6727: hr_utility.set_location('..assignment_number : ' ||
6728: p_cwk_api_out.assignment_number,20);
6729: end if;
6730:
6731: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6732:
6733: exception
6734: when Others then
6735: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6731: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6732:
6733: exception
6734: when Others then
6735: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6736: raise;
6737:
6738: end InsUpd_Contingent_Worker;
6739: -- =============================================================================
6748:
6749: l_proc_name constant varchar2(150):= g_pkg ||'InsUpd_Contact_Person';
6750:
6751: begin
6752: hr_utility.set_location('Entering: ' || l_proc_name, 10);
6753:
6754: Hr_Contact_Api.Create_Person
6755: (p_validate => p_validate
6756: ,p_start_date => g_per_rec.start_date
6875: g_add_rec.date_from := g_per_rec.start_date;
6876: g_add_rec.date_to := null;
6877:
6878: if g_debug then
6879: hr_utility.set_location('..person_id : ' ||
6880: p_contact_api_out.person_id,20);
6881: hr_utility.set_location('..per_object_version_number : ' ||
6882: p_contact_api_out.per_object_version_number,20);
6883: hr_utility.set_location('..per_effective_start_date : ' ||
6877:
6878: if g_debug then
6879: hr_utility.set_location('..person_id : ' ||
6880: p_contact_api_out.person_id,20);
6881: hr_utility.set_location('..per_object_version_number : ' ||
6882: p_contact_api_out.per_object_version_number,20);
6883: hr_utility.set_location('..per_effective_start_date : ' ||
6884: p_contact_api_out.per_effective_start_date,20);
6885: hr_utility.set_location('..per_effective_end_date : ' ||
6879: hr_utility.set_location('..person_id : ' ||
6880: p_contact_api_out.person_id,20);
6881: hr_utility.set_location('..per_object_version_number : ' ||
6882: p_contact_api_out.per_object_version_number,20);
6883: hr_utility.set_location('..per_effective_start_date : ' ||
6884: p_contact_api_out.per_effective_start_date,20);
6885: hr_utility.set_location('..per_effective_end_date : ' ||
6886: p_contact_api_out.per_effective_end_date,20);
6887: hr_utility.set_location('..full_name : ' ||
6881: hr_utility.set_location('..per_object_version_number : ' ||
6882: p_contact_api_out.per_object_version_number,20);
6883: hr_utility.set_location('..per_effective_start_date : ' ||
6884: p_contact_api_out.per_effective_start_date,20);
6885: hr_utility.set_location('..per_effective_end_date : ' ||
6886: p_contact_api_out.per_effective_end_date,20);
6887: hr_utility.set_location('..full_name : ' ||
6888: p_contact_api_out.full_name,20);
6889: hr_utility.set_location('..per_comment_id : ' ||
6883: hr_utility.set_location('..per_effective_start_date : ' ||
6884: p_contact_api_out.per_effective_start_date,20);
6885: hr_utility.set_location('..per_effective_end_date : ' ||
6886: p_contact_api_out.per_effective_end_date,20);
6887: hr_utility.set_location('..full_name : ' ||
6888: p_contact_api_out.full_name,20);
6889: hr_utility.set_location('..per_comment_id : ' ||
6890: p_contact_api_out.per_comment_id,20);
6891: end if;
6885: hr_utility.set_location('..per_effective_end_date : ' ||
6886: p_contact_api_out.per_effective_end_date,20);
6887: hr_utility.set_location('..full_name : ' ||
6888: p_contact_api_out.full_name,20);
6889: hr_utility.set_location('..per_comment_id : ' ||
6890: p_contact_api_out.per_comment_id,20);
6891: end if;
6892:
6893: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6889: hr_utility.set_location('..per_comment_id : ' ||
6890: p_contact_api_out.per_comment_id,20);
6891: end if;
6892:
6893: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6894:
6895: exception
6896: when Others then
6897: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6893: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
6894:
6895: exception
6896: when Others then
6897: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
6898: raise;
6899:
6900: end InsUpd_Contact_Person;
6901: -- =============================================================================
6912:
6913: l_proc_name constant varchar2(150):= g_pkg ||'Upd_Batch_Employee_Asg';
6914:
6915: begin
6916: hr_utility.set_location('Entering: ' || l_proc_name, 5);
6917:
6918: --$ Update Assignment only if User wants to i.e. he has chosen mandatory column
6919: -- 'Assign Organization' in the layout and entered a value
6920: if (g_asg_rec.organization_id is NULL) then
6917:
6918: --$ Update Assignment only if User wants to i.e. he has chosen mandatory column
6919: -- 'Assign Organization' in the layout and entered a value
6920: if (g_asg_rec.organization_id is NULL) then
6921: Hr_Utility.set_location('Leaving: '||l_proc_name, 6);
6922: return;
6923: end if;
6924:
6925: --$ Upload supervisor id
7033: );
7034:
7035: p_user_sequence := p_user_sequence + 1;
7036:
7037: hr_utility.set_location('..Inserted into Hrdpp_Update_Emp_Asg', 10);
7038:
7039: Hrdpp_Update_Emp_Asg_Criteria.Insert_Batch_Lines
7040: (p_batch_id => p_batch_id
7041: ,p_user_sequence => p_user_sequence
7087: ,P_EMPLOYMENT_CATEGORY => g_asg_rec.assignment_category
7088: ,p_language_code => userenv('LANG')
7089: ,p_con_seg_user_name => null
7090: );
7091: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
7092:
7093: end Upd_Batch_Employee_Asg;
7094: -- =============================================================================
7095: -- Update_Batch_Assignment:
7143: e_sec_asg exception;
7144: l_error_mesg varchar2(2000);
7145: l_secondary boolean;
7146: begin
7147: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
7148:
7149: if g_asg_rec.organization_id is null or
7150: --$ Commented the following condition
7151: -- g_asg_rec.assignment_status_type_id is null or
7149: if g_asg_rec.organization_id is null or
7150: --$ Commented the following condition
7151: -- g_asg_rec.assignment_status_type_id is null or
7152: g_asg_rec.assignment_number is null then
7153: Hr_Utility.set_location('Leaving: '||l_proc_name, 6);
7154: return;
7155: end if;
7156:
7157: if g_asg_rec.assignment_number is null AND g_migration_flag = 'N' then
7154: return;
7155: end if;
7156:
7157: if g_asg_rec.assignment_number is null AND g_migration_flag = 'N' then
7158: hr_utility.set_location('Inside else ', 7);
7159: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
7160: open csr_asg_id (c_assignment_id => g_asg_rec.assignment_id
7161: ,c_person_id => p_person_id
7162: ,c_business_group_id => p_business_group_id
7155: end if;
7156:
7157: if g_asg_rec.assignment_number is null AND g_migration_flag = 'N' then
7158: hr_utility.set_location('Inside else ', 7);
7159: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
7160: open csr_asg_id (c_assignment_id => g_asg_rec.assignment_id
7161: ,c_person_id => p_person_id
7162: ,c_business_group_id => p_business_group_id
7163: ,c_effective_date => p_effective_date
7215: l_secondary := false;
7216: end if;
7217: end if ;*/
7218: if l_secondary then
7219: Hr_Utility.set_location('Leaving: '||l_proc_name, 7);
7220: --$
7221: l_error_mesg := 'Use direct API mode to create secondary assignments';
7222: raise e_sec_asg;
7223: return;
7242: elsif l_dt_upd_override or
7243: l_upd_chg_ins then
7244: --Else USE Correction Mode
7245: l_datetrack_update_mode := 'CORRECTION';
7246: hr_utility.set_location(' l_dt_upd_override or l_upd_chg_ins ', 8);
7247: else
7248: l_datetrack_update_mode := 'CORRECTION';
7249: end if;
7250: end if;
7272: elsif l_asg_rec.assignment_type ='A' then
7273: null;
7274: end if;
7275:
7276: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
7277:
7278: --$
7279: exception
7280: when e_sec_asg then
7277:
7278: --$
7279: exception
7280: when e_sec_asg then
7281: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7282: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7283: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7284: hr_utility.raise_error;
7285: end Update_Batch_Assignment;
7278: --$
7279: exception
7280: when e_sec_asg then
7281: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7282: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7283: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7284: hr_utility.raise_error;
7285: end Update_Batch_Assignment;
7286:
7279: exception
7280: when e_sec_asg then
7281: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7282: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7283: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7284: hr_utility.raise_error;
7285: end Update_Batch_Assignment;
7286:
7287: -- =============================================================================
7280: when e_sec_asg then
7281: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7282: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7283: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7284: hr_utility.raise_error;
7285: end Update_Batch_Assignment;
7286:
7287: -- =============================================================================
7288: -- DataPump_API_Call: p_data_pump_batch_line_id is used as link_value_id in the
7337: e_hire_applicant exception;
7338: e_apply_for_job exception;
7339: e_cwk exception;
7340: begin
7341: hr_utility.set_location('Entering: ' || l_proc_name, 5);
7342:
7343: l_user_sequence := 1;
7344: --
7345: -- Creating User Keys for Person, Address, Assignment and Contact
7349: DBMS_Utility.get_Hash_Value(g_per_rec.last_name||
7350: g_per_rec.sex||
7351: g_per_rec.first_name,0,1000);
7352:
7353: --hr_utility.trace('p_batch_id: '||p_batch_id);
7354:
7355: l_person_user_key := 'HROSS~PER~'||l_temp;
7356: l_address_user_key := 'HROSS~ADD~'||l_temp;
7357: l_assignment_user_key := 'HROSS~ASG~'||l_temp;
7361: --$ To upload supervisor id use global var
7362: g_supervisor_user_key := 'HROSS~SUP~'||l_temp;
7363:
7364: if g_debug then
7365: hr_utility.set_location(' l_person_user_key: ' || l_person_user_key, 10);
7366: hr_utility.set_location(' l_address_user_key: ' || l_address_user_key, 10);
7367: hr_utility.set_location(' l_assignment_user_key: ' || l_assignment_user_key, 10);
7368: hr_utility.set_location(' l_contact_key: ' || l_contact_key, 10);
7369: hr_utility.set_location(' l_xtra_info_key: ' || l_xtra_info_key, 10);
7362: g_supervisor_user_key := 'HROSS~SUP~'||l_temp;
7363:
7364: if g_debug then
7365: hr_utility.set_location(' l_person_user_key: ' || l_person_user_key, 10);
7366: hr_utility.set_location(' l_address_user_key: ' || l_address_user_key, 10);
7367: hr_utility.set_location(' l_assignment_user_key: ' || l_assignment_user_key, 10);
7368: hr_utility.set_location(' l_contact_key: ' || l_contact_key, 10);
7369: hr_utility.set_location(' l_xtra_info_key: ' || l_xtra_info_key, 10);
7370: end if;
7363:
7364: if g_debug then
7365: hr_utility.set_location(' l_person_user_key: ' || l_person_user_key, 10);
7366: hr_utility.set_location(' l_address_user_key: ' || l_address_user_key, 10);
7367: hr_utility.set_location(' l_assignment_user_key: ' || l_assignment_user_key, 10);
7368: hr_utility.set_location(' l_contact_key: ' || l_contact_key, 10);
7369: hr_utility.set_location(' l_xtra_info_key: ' || l_xtra_info_key, 10);
7370: end if;
7371: --
7364: if g_debug then
7365: hr_utility.set_location(' l_person_user_key: ' || l_person_user_key, 10);
7366: hr_utility.set_location(' l_address_user_key: ' || l_address_user_key, 10);
7367: hr_utility.set_location(' l_assignment_user_key: ' || l_assignment_user_key, 10);
7368: hr_utility.set_location(' l_contact_key: ' || l_contact_key, 10);
7369: hr_utility.set_location(' l_xtra_info_key: ' || l_xtra_info_key, 10);
7370: end if;
7371: --
7372: -- Get the User Person Type for the id passed
7365: hr_utility.set_location(' l_person_user_key: ' || l_person_user_key, 10);
7366: hr_utility.set_location(' l_address_user_key: ' || l_address_user_key, 10);
7367: hr_utility.set_location(' l_assignment_user_key: ' || l_assignment_user_key, 10);
7368: hr_utility.set_location(' l_contact_key: ' || l_contact_key, 10);
7369: hr_utility.set_location(' l_xtra_info_key: ' || l_xtra_info_key, 10);
7370: end if;
7371: --
7372: -- Get the User Person Type for the id passed
7373: --
7405: l_link_value := p_batch_link;
7406: end if;
7407:
7408: if g_debug then
7409: hr_utility.set_location(' l_user_person_type: '|| l_user_person_type, 15);
7410: hr_utility.set_location(' l_link_value: '|| l_link_value, 15);
7411: end if;
7412:
7413: --$ Get the value of "Benefit Group Name" from ID if not null
7406: end if;
7407:
7408: if g_debug then
7409: hr_utility.set_location(' l_user_person_type: '|| l_user_person_type, 15);
7410: hr_utility.set_location(' l_link_value: '|| l_link_value, 15);
7411: end if;
7412:
7413: --$ Get the value of "Benefit Group Name" from ID if not null
7414: if g_per_rec.benefit_group_id is not null then
7442: ,p_Convert_To_CWK => l_Convert_To_CWK
7443: ,p_Per_Exists_InHR => l_Per_Exists_InHR
7444: );
7445: --
7446: --hr_utility.trace(' After Chk_Person_InHR call');
7447: --hr_utility.trace('$$_PSG l_Input_PerType ='||l_Input_PerType);
7448:
7449: Get_DataTrack_Mode
7450: (p_datetrack_update_mode => l_datetrack_update_mode
7443: ,p_Per_Exists_InHR => l_Per_Exists_InHR
7444: );
7445: --
7446: --hr_utility.trace(' After Chk_Person_InHR call');
7447: --hr_utility.trace('$$_PSG l_Input_PerType ='||l_Input_PerType);
7448:
7449: Get_DataTrack_Mode
7450: (p_datetrack_update_mode => l_datetrack_update_mode
7451: );
7450: (p_datetrack_update_mode => l_datetrack_update_mode
7451: );
7452: --
7453: if g_debug then
7454: hr_utility.set_location(' p_batch_id : ' || p_batch_id, 20);
7455: hr_utility.set_location(' l_user_sequence: ' || l_user_sequence, 20);
7456: hr_utility.set_location(' l_link_value : ' || l_link_value, 20);
7457: hr_utility.set_location(' l_datetrack_update_mode: ' || l_datetrack_update_mode, 20);
7458: end if;
7451: );
7452: --
7453: if g_debug then
7454: hr_utility.set_location(' p_batch_id : ' || p_batch_id, 20);
7455: hr_utility.set_location(' l_user_sequence: ' || l_user_sequence, 20);
7456: hr_utility.set_location(' l_link_value : ' || l_link_value, 20);
7457: hr_utility.set_location(' l_datetrack_update_mode: ' || l_datetrack_update_mode, 20);
7458: end if;
7459: --
7452: --
7453: if g_debug then
7454: hr_utility.set_location(' p_batch_id : ' || p_batch_id, 20);
7455: hr_utility.set_location(' l_user_sequence: ' || l_user_sequence, 20);
7456: hr_utility.set_location(' l_link_value : ' || l_link_value, 20);
7457: hr_utility.set_location(' l_datetrack_update_mode: ' || l_datetrack_update_mode, 20);
7458: end if;
7459: --
7460: -- Update existing person
7453: if g_debug then
7454: hr_utility.set_location(' p_batch_id : ' || p_batch_id, 20);
7455: hr_utility.set_location(' l_user_sequence: ' || l_user_sequence, 20);
7456: hr_utility.set_location(' l_link_value : ' || l_link_value, 20);
7457: hr_utility.set_location(' l_datetrack_update_mode: ' || l_datetrack_update_mode, 20);
7458: end if;
7459: --
7460: -- Update existing person
7461: --
7532: else
7533: raise e_crt_per_not_allowed;
7534: end if;
7535: end if;
7536: hr_utility.set_location(l_proc_name, 25);
7537: --
7538:
7539: --hr_utility.trace(' l_action_mode ='||l_action_mode);
7540:
7535: end if;
7536: hr_utility.set_location(l_proc_name, 25);
7537: --
7538:
7539: --hr_utility.trace(' l_action_mode ='||l_action_mode);
7540:
7541: if l_action_mode in ('CREATE_EMPLOYEE',
7542: 'HIRE_INTO_JOB') then
7543: InsUpd_Batch_Employee
7558: end if;
7559: --
7560: -- Insert/Update Person Primary Address
7561: --
7562: hr_utility.set_location(l_proc_name, 30);
7563: l_user_sequence := l_user_sequence + 1;
7564: --
7565: -- Insert/Update Primary Address
7566: --
7573: );
7574: --
7575: -- Update the Employee Assignment
7576: --
7577: hr_utility.set_location(l_proc_name, 35);
7578: l_datetrack_update_mode := 'CORRECTION';
7579: l_user_sequence := l_user_sequence + 1;
7580:
7581: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
7593: end if;
7594: --
7595: -- Creating an Applicant for a Job
7596: --
7597: --hr_utility.trace(' l_Input_PerType ='||l_Input_PerType);
7598:
7599: if l_Input_PerType = 'APL' then
7600: if l_Convert_To_Applicant or
7601: l_Apply_ForJob then
7627: );
7628: --
7629: -- Insert/Update Person Primary Address
7630: --
7631: hr_utility.set_location(l_proc_name, 30);
7632: l_user_sequence := l_user_sequence + 1;
7633:
7634: InsUpd_Batch_Address
7635: (p_batch_id => p_batch_id
7677: raise e_upl_not_allowed;
7678: end if;
7679: end if;
7680:
7681: hr_utility.set_location(l_proc_name, 30);
7682: l_user_sequence := l_user_sequence + 1;
7683: --
7684: -- Insert/Update Primary Address
7685: --
7715: -- Update the Contingent Worker assignment
7716: --
7717: end if;
7718:
7719: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
7720:
7721: exception
7722: when e_hire_applicant then
7723: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7719: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
7720:
7721: exception
7722: when e_hire_applicant then
7723: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7724: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7720:
7721: exception
7722: when e_hire_applicant then
7723: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7724: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7721: exception
7722: when e_hire_applicant then
7723: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7724: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7722: when e_hire_applicant then
7723: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7724: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7724: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7725: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7726: hr_utility.raise_error;
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7727: when e_apply_for_job then
7728: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7729: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7736: hr_utility.raise_error;
7737: when Others then
7730: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7736: hr_utility.raise_error;
7737: when Others then
7738: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7731: hr_utility.raise_error;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7736: hr_utility.raise_error;
7737: when Others then
7738: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7739: raise;
7732: when e_cwk then
7733: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7736: hr_utility.raise_error;
7737: when Others then
7738: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7739: raise;
7740:
7734: hr_utility.set_message_token('GENERIC_TOKEN',l_error_mesg);
7735: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7736: hr_utility.raise_error;
7737: when Others then
7738: hr_utility.set_location('Leaving: ' || l_proc_name, 90);
7739: raise;
7740:
7741: end DataPump_API_Call;
7742:
7881:
7882: l_pradd_ovlapval_override boolean;
7883:
7884: begin
7885: hr_utility.set_location('Entering: ' || l_proc_name, 10);
7886:
7887: -- Check if operation being corrected was insert or update because of
7888: -- duplicate person id based on the API_MODULE_ID in hr_pump_batch_lines
7889: -- and then set dp_mode flag respectively
8650: end loop;
8651:
8652: close csr_get_api_names;
8653:
8654: hr_utility.set_location('Leaving: ' || l_proc_name, 30);
8655:
8656: exception
8657: when Others then
8658: if csr_get_api_names%isopen then
8657: when Others then
8658: if csr_get_api_names%isopen then
8659: close csr_get_api_names;
8660: end if;
8661: hr_utility.set_location('Leaving: ' || l_proc_name, 40);
8662: raise;
8663:
8664: end HR_DataPumpErr;
8665:
8676:
8677: l_proc_name constant varchar2(150):= g_pkg ||'Create_Person_Contact';
8678:
8679: begin
8680: hr_utility.set_location('Entering: ' || l_proc_name, 10);
8681:
8682: Hr_Contact_Rel_Api.create_contact
8683: (p_start_date => p_effective_date
8684: ,p_business_group_id => g_cnt_rec.business_group_id
8699: ,p_name_combination_warning => p_crt_cntct_out.name_combination_warning
8700: ,p_orig_hire_warning => p_crt_cntct_out.orig_hire_warning
8701: );
8702:
8703: hr_utility.set_location('Leaving: ' || l_proc_name, 20);
8704:
8705: end Create_Person_Contact;
8706: */
8707: -- =============================================================================
8716:
8717: l_cont_object_version_num number;
8718: l_proc_name constant varchar2(150):= g_pkg ||'Update_Person_Contact';
8719: begin
8720: hr_utility.set_location('Entering: ' || l_proc_name, 10);
8721:
8722: open csr_ck_cont_xsts(c_person_id => g_per_rec.person_id
8723: ,c_business_group_id => g_add_rec.business_group_id
8724: ,c_effective_date => g_per_rec.start_date);
8776: );
8777:
8778: end if;
8779:
8780: hr_utility.set_location('Leaving: ' || l_proc_name, 20);
8781:
8782: end Update_Person_Contact;
8783:
8784: -- =============================================================================
8801: l_proc_name constant varchar2(170):= g_pkg ||'Create_DataPump_BatchHeader';
8802: l_reference varchar2(80);
8803:
8804: begin
8805: hr_utility.set_location('Entering: ' || l_proc_name, 10);
8806: select hr_pump_batch_headers_s.nextval
8807: into p_batch_process_id
8808: from dual;
8809: --
8850: ,l_bg_name
8851: --,nvl(l_bg_name,'PQPD115 Business Group') -- remove the NVL()
8852: ,l_reference);
8853:
8854: hr_utility.set_location('Leaving: ' || l_proc_name, 80);
8855:
8856: end Create_DataPump_BatchHeader;
8857: -- =============================================================================
8858: -- Update_Assignment:
8923: l_appl_override_warning boolean;
8924: l_concat_segments varchar2(2000);
8925: l_secondary boolean;
8926: begin
8927: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
8928:
8929: --$ check already made before making call to this procedure from
8930: --the procedure Direct_API_Call. Also as for "APPLICANT" assignment_number
8931: -- will always be null hence should not be included in the check condition.
8933: /*
8934: if g_asg_rec.organization_id is null or
8935: g_asg_rec.assignment_status_type_id is null or
8936: g_asg_rec.assignment_number is null then
8937: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
8938: return;
8939: end if;
8940: */
8941:
8940: */
8941:
8942: if g_asg_rec.assignment_number is null then
8943: if g_migration_flag = 'Y' then
8944: hr_utility.set_location('Inside else ', 7);
8945: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
8946: open csr_apl_asg (c_person_id => p_person_id
8947: ,c_business_group_id => p_business_group_id
8948: ,c_effective_date => p_effective_date
8941:
8942: if g_asg_rec.assignment_number is null then
8943: if g_migration_flag = 'Y' then
8944: hr_utility.set_location('Inside else ', 7);
8945: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
8946: open csr_apl_asg (c_person_id => p_person_id
8947: ,c_business_group_id => p_business_group_id
8948: ,c_effective_date => p_effective_date
8949: );
8955: close csr_apl_asg;
8956: l_secondary := false;
8957: end if;
8958: else
8959: hr_utility.set_location('Inside else ', 7);
8960: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
8961: open csr_asg (c_assignment_id => g_asg_rec.assignment_id
8962: ,c_person_id => p_person_id
8963: ,c_business_group_id => p_business_group_id
8956: l_secondary := false;
8957: end if;
8958: else
8959: hr_utility.set_location('Inside else ', 7);
8960: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
8961: open csr_asg (c_assignment_id => g_asg_rec.assignment_id
8962: ,c_person_id => p_person_id
8963: ,c_business_group_id => p_business_group_id
8964: ,c_effective_date => p_effective_date
9002: close csr_asg_num;
9003: l_secondary := false;
9004: end if;
9005: else
9006: hr_utility.set_location('Inside else ', 7);
9007: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
9008: open csr_asg (c_assignment_id => g_asg_rec.assignment_id
9009: ,c_person_id => p_person_id
9010: ,c_business_group_id => p_business_group_id
9003: l_secondary := false;
9004: end if;
9005: else
9006: hr_utility.set_location('Inside else ', 7);
9007: hr_utility.set_location('The assignment id is : '||g_asg_rec.assignment_id, 8);
9008: open csr_asg (c_assignment_id => g_asg_rec.assignment_id
9009: ,c_person_id => p_person_id
9010: ,c_business_group_id => p_business_group_id
9011: ,c_effective_date => p_effective_date
9021: end if;*/
9022:
9023:
9024:
9025: /*hr_utility.trace('CURSOR : select * from per_all_assignments_f paf
9026: where paf.person_id =' ||p_person_id || 'and paf.assignment_number = ' ||
9027: g_asg_rec.assignment_number || 'and paf.business_group_id = ' || p_business_group_id
9028: || 'and ' || sysdate|| ' between paf.effective_start_date
9029: and paf.effective_end_date' );*/
9348: end if;
9349: elsif l_pty_rec.system_person_type = 'APL' then
9350:
9351: if(g_crt_upd = 'C') then
9352: hr_utility.set_location('Creating secondary assignment', 11);
9353: hr_assignment_api.create_secondary_apl_asg
9354: (p_validate => false
9355: ,p_effective_date => p_effective_date
9356: ,p_person_id => p_person_id
9543: --g_asg_rec.assignment_status_type_id := l_asg_rec.assignment_status_type_id;
9544: end if;
9545:
9546:
9547: --hr_utility.trace('BEFORE ENTERING Update_Employee_Asg with assntype as E' );
9548:
9549: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
9550: if l_asg_rec.assignment_type ='E' then
9551: Update_Employee_Asg
9552: (p_effective_date => p_effective_date
9553: ,p_asg_crit_out => l_AsgUpdCrit_Api
9554: );
9555:
9556: --hr_utility.trace('AFTER Update_Employee_Asg with assntype as E' );
9557:
9558: elsif l_asg_rec.assignment_type ='C' then
9559: Upd_Contingent_Asg
9560: (p_effective_date => p_effective_date
9569: else
9570: raise e_upl_not_allowed;
9571: end if;
9572:
9573: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
9574:
9575: end Update_Assignment;
9576: -- =============================================================================
9577: -- Direct_API_Call:
9601: l_action_mode varchar2(90);
9602: l_proc_name constant varchar2(150) := g_pkg||'Direct_API_Call';
9603:
9604: begin
9605: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
9606: --
9607: -- If person id is passed check the creating person type with the person
9608: -- type of the person present in HRMS, to select the appropiate action.
9609: --
9606: --
9607: -- If person id is passed check the creating person type with the person
9608: -- type of the person present in HRMS, to select the appropiate action.
9609: --
9610: --hr_utility.trace('Inside Direct_API_Call');
9611:
9612: Chk_Person_InHR
9613: (p_dup_person_id => p_dup_person_id
9614: ,p_dup_party_id => p_dup_party_id
9626: --
9627: -- Creating an Employee
9628: --
9629:
9630: --hr_utility.trace(' l_Input_PerType='||l_Input_PerType);
9631:
9632: if l_Input_PerType = 'EMP' then
9633:
9634: --hr_utility.trace(' Inside PerType=EMP');
9630: --hr_utility.trace(' l_Input_PerType='||l_Input_PerType);
9631:
9632: if l_Input_PerType = 'EMP' then
9633:
9634: --hr_utility.trace(' Inside PerType=EMP');
9635:
9636: if l_hire_Into_Employee then
9637: if (g_crt_upd = 'C') then
9638: l_action_mode := 'HIRE_PERSON_INTOEMP';
9652: raise e_crt_per_not_allowed;
9653: end if;
9654: end if;
9655: --
9656: --hr_utility.trace(' l_action_mode='||l_action_mode);
9657:
9658: if l_action_mode in ('CREATE_EMPLOYEE',
9659: 'HIRE_PERSON_INTOEMP') then
9660: InsUpd_Employee
9711: -- Creating a Contingent Worker
9712: --
9713: if l_Input_PerType = 'CWK' then
9714:
9715: --hr_utility.trace(' Inside PerType=CWK');
9716:
9717: if l_Convert_To_CWK then
9718: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
9719: l_action_mode := 'CONVERT_TO_CWK';
9772:
9773:
9774: if l_Input_PerType = 'APL' then
9775:
9776: --hr_utility.trace(' Inside PerType=APL');
9777:
9778: if l_Convert_To_Applicant or
9779: l_Apply_ForJob then
9780: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
9835: --
9836:
9837: if l_Input_PerType = 'OTHER' then
9838:
9839: --hr_utility.trace('Inside PerType=OTHER');
9840:
9841: if not l_Per_Exists_InHR then
9842: if (g_crt_upd = 'C') then
9843: InsUpd_Contact_Person
9880: --
9881:
9882: if l_Input_PerType = 'UPD_PERSON' then
9883:
9884: --hr_utility.trace(' Inside PerType=UPD_PERSON');
9885: if (g_crt_upd = 'C' or g_crt_upd = 'U') then
9886: Upd_Person_Details
9887: (p_validate => false
9888: ,p_effective_date => p_effective_date
9921: end if;
9922:
9923: end if;
9924:
9925: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
9926:
9927: end Direct_API_Call;
9928:
9929: -- =============================================================================
9968: l_apl_asg_id number;
9969: l_proc_name constant varchar2(150) := g_pkg||'Get_AplAsg_Id';
9970:
9971: begin
9972: Hr_Utility.set_location('Entering: '||l_proc_name, 5);
9973: if p_apl_asg_no is not null then
9974: open csr_asg (c_assignment_number => p_apl_asg_no
9975: ,c_person_id => p_person_id
9976: ,c_business_group_id => p_business_group_id
10001: close csr_asg_n;
10002: return l_apl_asg_id;
10003: end if;
10004:
10005: Hr_Utility.set_location('Leaving: '||l_proc_name, 80);
10006:
10007: end Get_AplAsg_Id;
10008: -- =============================================================================
10009: -- ~ InsUpd_PerAsgAdd_Rec:
10425:
10426: begin
10427:
10428: savepoint InsUpd_PerAsgAdd_Rec;
10429: g_debug := hr_utility.debug_enabled;
10430: hr_utility.set_location('Entering: ' || l_proc_name, 5);
10431:
10432: l_migration_allowed := SUBSTR(p_crt_upd,3,1);
10433: g_migration_flag := l_migration_allowed;
10426: begin
10427:
10428: savepoint InsUpd_PerAsgAdd_Rec;
10429: g_debug := hr_utility.debug_enabled;
10430: hr_utility.set_location('Entering: ' || l_proc_name, 5);
10431:
10432: l_migration_allowed := SUBSTR(p_crt_upd,3,1);
10433: g_migration_flag := l_migration_allowed;
10434: l_crt_upd := SUBSTR(p_crt_upd,1,1);
10431:
10432: l_migration_allowed := SUBSTR(p_crt_upd,3,1);
10433: g_migration_flag := l_migration_allowed;
10434: l_crt_upd := SUBSTR(p_crt_upd,1,1);
10435: hr_utility.trace('l_crt_upd ='||l_crt_upd);
10436:
10437: if (l_crt_upd is not null) then
10438: g_crt_upd := l_crt_upd;
10439: end if;
10447: -- People Group KFF and Assignment Soft Coding KFF records.
10448: --
10449:
10450:
10451: --hr_utility.trace_on(null,'TTT');
10452: --hr_utility.trace('employee_category='||p_employee_category);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10448: --
10449:
10450:
10451: --hr_utility.trace_on(null,'TTT');
10452: --hr_utility.trace('employee_category='||p_employee_category);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10449:
10450:
10451: --hr_utility.trace_on(null,'TTT');
10452: --hr_utility.trace('employee_category='||p_employee_category);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10450:
10451: --hr_utility.trace_on(null,'TTT');
10452: --hr_utility.trace('employee_category='||p_employee_category);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10451: --hr_utility.trace_on(null,'TTT');
10452: --hr_utility.trace('employee_category='||p_employee_category);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10453: --hr_utility.trace('p_address_style = ' ||p_address_style);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10454: --hr_utility.trace('P_PRIMARY_FLAG = ' ||P_PRIMARY_FLAG);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10455: --hr_utility.trace('P_ADDRESS_DATE_FROM = ' ||P_ADDRESS_DATE_FROM);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10456:
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10457: --hr_utility.trace('p_data_pump_flag .....' || p_data_pump_flag);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10458: --hr_utility.trace('p_batch_id .....' || p_batch_id);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10459: --hr_utility.trace('p_user_person_type = ' ||p_user_person_type);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10460: --hr_utility.trace('p_employee_number = ' ||p_employee_number);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10461: --hr_utility.trace('p_assign_organization = ' ||p_assign_organization);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10462: --hr_utility.trace('p_apl_assignment_id = ' ||p_apl_assignment_id);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10463: --hr_utility.trace('p_status = ' ||p_status);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10464: --hr_utility.trace('p_assignment_no = ' ||p_assignment_number);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10465: --hr_utility.trace('p_business_group_id = ' ||p_business_group_id);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10466: --hr_utility.trace('p_interface_code = ' ||p_interface_code);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10467: --hr_utility.trace('p_gre = ' ||p_gre);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10468: --hr_utility.trace('ass_attribute1 = ' ||p_ass_attribute1);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10469: --hr_utility.trace('ass_attribute2 = ' ||p_ass_attribute2);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10470: --hr_utility.trace('ass_attribute3 = ' ||p_ass_attribute3);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10471: --hr_utility.trace('ass_attribute4 = ' ||p_ass_attribute4);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10472: --hr_utility.trace('ass_attribute5 = ' ||p_ass_attribute5);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10473: --hr_utility.trace('ass_attribute6 = ' ||p_ass_attribute6);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10474: --hr_utility.trace('ass_attribute7 = ' ||p_ass_attribute7);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10475: --hr_utility.trace('ass_attribute8 = ' ||p_ass_attribute8);
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10476: --hr_utility.trace('ass_attribute9 = ' ||p_ass_attribute9);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10477: --hr_utility.trace('ass_attribute10 = ' ||p_ass_attribute10);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10478: --hr_utility.trace('ass_attribute11 = ' ||p_ass_attribute11);
10479: --hr_utility.trace('ass_attribute12 = ' ||p_ass_attribute12);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10480: --hr_utility.trace('ass_attribute13 = ' ||p_ass_attribute13);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10481: --hr_utility.trace('ass_attribute14 = ' ||p_ass_attribute14);
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10489:
10482: --hr_utility.trace('ass_attribute15 = ' ||p_ass_attribute15);
10483:
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10489:
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10484: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10485: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10489:
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10486: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10489:
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10487:
10488: --hr_utility.trace('Person Type = ' ||p_interface_code);
10489:
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10489:
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10490: --hr_utility.trace(' Person id = ' ||P_DUP_PERSON_ID);
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10491: --hr_utility.trace(' Party id = ' ||P_DUP_PARTY_ID);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10492:
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10493: --hr_utility.trace(' p_adr_attribute1 = ' ||p_adr_attribute1);
10494: --hr_utility.trace(' p_adr_attribute2 = ' ||p_adr_attribute2);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10501: --hr_utility.trace(' P_COUNTRY_OF_BIRTH = '||P_COUNTRY_OF_BIRTH);
10495: --hr_utility.trace(' p_adr_attribute3 = ' ||p_adr_attribute3);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10501: --hr_utility.trace(' P_COUNTRY_OF_BIRTH = '||P_COUNTRY_OF_BIRTH);
10502:
10503: hr_utility.set_location(' Initializing records ', 5);
10496: --hr_utility.trace(' p_adr_attribute_category = ' ||p_adr_attribute_category);
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10501: --hr_utility.trace(' P_COUNTRY_OF_BIRTH = '||P_COUNTRY_OF_BIRTH);
10502:
10503: hr_utility.set_location(' Initializing records ', 5);
10504: g_per_rec := null; g_grp_rec := null;
10497: --hr_utility.trace(' p_add_information16 = ' ||p_add_information16);
10498:
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10501: --hr_utility.trace(' P_COUNTRY_OF_BIRTH = '||P_COUNTRY_OF_BIRTH);
10502:
10503: hr_utility.set_location(' Initializing records ', 5);
10504: g_per_rec := null; g_grp_rec := null;
10505: g_scl_rec := null; g_asg_rec := null;
10499: --hr_utility.trace(' P_INTERNAL_LOCATION = '||P_INTERNAL_LOCATION);
10500: --hr_utility.trace(' P_ADJUSTED_SVC_DATE = '||P_ADJUSTED_SVC_DATE);
10501: --hr_utility.trace(' P_COUNTRY_OF_BIRTH = '||P_COUNTRY_OF_BIRTH);
10502:
10503: hr_utility.set_location(' Initializing records ', 5);
10504: g_per_rec := null; g_grp_rec := null;
10505: g_scl_rec := null; g_asg_rec := null;
10506: g_add_rec := null; g_phn_rec := null;
10507: g_interface_code := nvl(p_interface_code,'PQP_FLEXIBLE_WEBADI_INTF');
10524: ,g_business_group_id;
10525: close csr_bg_code;
10526:
10527: if g_debug then
10528: hr_utility.set_location(' l_effective_date: '||l_effective_date, 10);
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10525: close csr_bg_code;
10526:
10527: if g_debug then
10528: hr_utility.set_location(' l_effective_date: '||l_effective_date, 10);
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10533: hr_utility.set_location(' p_interface_code : '||p_interface_code, 10);
10526:
10527: if g_debug then
10528: hr_utility.set_location(' l_effective_date: '||l_effective_date, 10);
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10533: hr_utility.set_location(' p_interface_code : '||p_interface_code, 10);
10534:
10527: if g_debug then
10528: hr_utility.set_location(' l_effective_date: '||l_effective_date, 10);
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10533: hr_utility.set_location(' p_interface_code : '||p_interface_code, 10);
10534:
10535: end if;
10528: hr_utility.set_location(' l_effective_date: '||l_effective_date, 10);
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10533: hr_utility.set_location(' p_interface_code : '||p_interface_code, 10);
10534:
10535: end if;
10536: --
10529: hr_utility.set_location(' g_leg_code : '||g_leg_code, 10);
10530: hr_utility.set_location(' g_emp_num_gen : '||g_emp_num_gen, 10);
10531: hr_utility.set_location(' l_party_number : '||l_party_number, 10);
10532: hr_utility.set_location(' p_business_group_id : '||p_business_group_id, 10);
10533: hr_utility.set_location(' p_interface_code : '||p_interface_code, 10);
10534:
10535: end if;
10536: --
10537: -- Get the Un-Masked National Indentifier
10545: );
10546: --
10547: -- Get Party Id corresponding to Party Number is entered
10548: --
10549: hr_utility.set_location('l_party_number '|| l_party_number, 30);
10550: if (l_party_number is not null) then
10551: hr_utility.set_location(' Party number is not null ', 30);
10552: l_sql_qry := 'select party_id
10553: from hz_parties
10547: -- Get Party Id corresponding to Party Number is entered
10548: --
10549: hr_utility.set_location('l_party_number '|| l_party_number, 30);
10550: if (l_party_number is not null) then
10551: hr_utility.set_location(' Party number is not null ', 30);
10552: l_sql_qry := 'select party_id
10553: from hz_parties
10554: where party_number ='||l_party_number;
10555: open csr_get_party_id for l_sql_qry;
10556: fetch csr_get_party_id into l_party_id;
10557: close csr_get_party_id;
10558: end if;
10559:
10560: hr_utility.set_location('l_party_id '|| l_party_id, 50);
10561: hr_utility.set_location('Start of filling person rec ', 50);
10562:
10563: -- ===========================================================================
10564: -- ~ Person Details
10557: close csr_get_party_id;
10558: end if;
10559:
10560: hr_utility.set_location('l_party_id '|| l_party_id, 50);
10561: hr_utility.set_location('Start of filling person rec ', 50);
10562:
10563: -- ===========================================================================
10564: -- ~ Person Details
10565: -- ===========================================================================
10640: g_per_rec.on_military_service := nvl(p_on_military_service,'N');
10641: g_per_rec.internal_location := P_INTERNAL_LOCATION; -- Added by pkagrawa
10642:
10643:
10644: hr_utility.set_location('Person Details assigned to record : g_per_rec ',
10645: 60);
10646: -- ===========================================================================
10647: -- Person DF: Customer defined
10648: -- ===========================================================================
10652:
10653: if p_per_attribute_category is null then
10654: for i in 1..30 loop
10655: if (temp||to_char(i)) is null then
10656: --hr_utility.trace('Check PER_ATT NULL'||(temp||to_char(i)));
10657: null;
10658: else
10659: g_per_rec.attribute_category := 'Global Data Elements';
10660: --hr_utility.trace('Check PER_ATT_CAT NULL - Global Val'||p_per_attribute_category);
10656: --hr_utility.trace('Check PER_ATT NULL'||(temp||to_char(i)));
10657: null;
10658: else
10659: g_per_rec.attribute_category := 'Global Data Elements';
10660: --hr_utility.trace('Check PER_ATT_CAT NULL - Global Val'||p_per_attribute_category);
10661: exit;
10662: end if;
10663: end loop;
10664: end if;
10700: g_per_rec.attribute28 := p_per_attribute28;
10701: g_per_rec.attribute29 := p_per_attribute29;
10702: g_per_rec.attribute30 := p_per_attribute30;
10703: end if;
10704: hr_utility.set_location('Person DF assigned to record :g_per_rec ', 70);
10705:
10706: -- ===========================================================================
10707: -- Person DDF: Different for each legislation
10708: -- ===========================================================================
10744:
10745: end if;
10746: close csr_style;
10747:
10748: hr_utility.set_location('Person DDF assigned to record : '||
10749: p_per_information_category, 80);
10750:
10751: -- ===========================================================================
10752: -- ~ Person Address Record
10785: g_add_rec.add_information20 := p_add_information20;
10786:
10787: end if;
10788:
10789: hr_utility.set_location('Address Style: '||p_address_style, 90);
10790:
10791: -- ===========================================================================
10792: -- Address DF: Customer defined DF
10793: -- ===========================================================================
10797:
10798: if p_adr_attribute_category is null then
10799: for i in 1..20 loop
10800: if (temp||to_char(i)) is null then
10801: --hr_utility.trace('Check ADDR_ATT NULL'||(temp||to_char(i)));
10802: null;
10803: else
10804: g_add_rec.addr_attribute_category := 'Global Data Elements';
10805: --hr_utility.trace('Check ADDR_ATT_CAT NULL - Global Val'||p_adr_attribute_category);
10801: --hr_utility.trace('Check ADDR_ATT NULL'||(temp||to_char(i)));
10802: null;
10803: else
10804: g_add_rec.addr_attribute_category := 'Global Data Elements';
10805: --hr_utility.trace('Check ADDR_ATT_CAT NULL - Global Val'||p_adr_attribute_category);
10806: exit;
10807: end if;
10808: end loop;
10809: end if;
10837: g_add_rec.addr_attribute20 := p_adr_attribute20;
10838:
10839: end if;
10840:
10841: hr_utility.set_location('Address DF category: '||p_adr_attribute_category, 100);
10842:
10843: -- ===========================================================================
10844: -- ~ Person Primary Assignment
10845: -- ===========================================================================
10887: --Added by Dbansal
10888: g_asg_comments := p_asg_comments;
10889:
10890:
10891: --hr_utility.trace('LOCATION_ID = '||g_asg_rec.location_id);
10892: --hr_utility.trace('g_asg_rec.employee_category='||g_asg_rec.employee_category);
10893: --hr_utility.trace('g_asg_rec.assignment_category'||g_asg_rec.assignment_category);
10894: hr_utility.set_location('Primary Assignment details assigned to record', 110);
10895:
10888: g_asg_comments := p_asg_comments;
10889:
10890:
10891: --hr_utility.trace('LOCATION_ID = '||g_asg_rec.location_id);
10892: --hr_utility.trace('g_asg_rec.employee_category='||g_asg_rec.employee_category);
10893: --hr_utility.trace('g_asg_rec.assignment_category'||g_asg_rec.assignment_category);
10894: hr_utility.set_location('Primary Assignment details assigned to record', 110);
10895:
10896: -- ===========================================================================
10889:
10890:
10891: --hr_utility.trace('LOCATION_ID = '||g_asg_rec.location_id);
10892: --hr_utility.trace('g_asg_rec.employee_category='||g_asg_rec.employee_category);
10893: --hr_utility.trace('g_asg_rec.assignment_category'||g_asg_rec.assignment_category);
10894: hr_utility.set_location('Primary Assignment details assigned to record', 110);
10895:
10896: -- ===========================================================================
10897: -- Additional Assignment Details
10890:
10891: --hr_utility.trace('LOCATION_ID = '||g_asg_rec.location_id);
10892: --hr_utility.trace('g_asg_rec.employee_category='||g_asg_rec.employee_category);
10893: --hr_utility.trace('g_asg_rec.assignment_category'||g_asg_rec.assignment_category);
10894: hr_utility.set_location('Primary Assignment details assigned to record', 110);
10895:
10896: -- ===========================================================================
10897: -- Additional Assignment Details
10898: -- ===========================================================================
10902:
10903: if p_ass_attribute_category is null then
10904: for i in 1..30 loop
10905: if (temp||to_char(i)) is null then
10906: --hr_utility.trace('Check ASS_ATT NULL'||(temp||to_char(i)));
10907: null;
10908: else
10909: g_asg_rec.ass_attribute_category := 'Global Data Elements';
10910: --hr_utility.trace('Check ASS_ATT_CAT NULL - Global Val'||p_ass_attribute_category);
10906: --hr_utility.trace('Check ASS_ATT NULL'||(temp||to_char(i)));
10907: null;
10908: else
10909: g_asg_rec.ass_attribute_category := 'Global Data Elements';
10910: --hr_utility.trace('Check ASS_ATT_CAT NULL - Global Val'||p_ass_attribute_category);
10911: exit;
10912: end if;
10913: end loop;
10914: end if;
10953: g_asg_rec.ass_attribute30 := p_ass_attribute30;
10954:
10955: end if;
10956:
10957: hr_utility.set_location('Assignment DF category: '||p_ass_attribute_category, 120);
10958:
10959: -- ===========================================================================
10960: -- ~ Contact Details
10961: -- ===========================================================================
10967: g_cnt_rec.primary_contact_flag := p_primary_contact;
10968: g_cnt_rec.personal_flag := p_personal_flag;
10969:
10970: end if;
10971: hr_utility.set_location('Contact details assigned to record ', 130);
10972:
10973: -- ===========================================================================
10974: -- ~ Person Phones
10975: -- ===========================================================================
10981: g_phn_rec.date_from := p_phone_date_from;
10982: g_phn_rec.date_to := p_phone_date_to;
10983: g_phn_rec.parent_table := 'PER_ALL_PEOPLE_F';
10984: end if;
10985: hr_utility.set_location('Phone Details assigned to record ', 140);
10986:
10987: -- ===========================================================================
10988: -- ~ Soft Coding Keyflex field
10989: -- ===========================================================================
10986:
10987: -- ===========================================================================
10988: -- ~ Soft Coding Keyflex field
10989: -- ===========================================================================
10990: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10991: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10992: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10993:
10994: g_scl_rec.concatenated_segments := p_soft_segments;
10987: -- ===========================================================================
10988: -- ~ Soft Coding Keyflex field
10989: -- ===========================================================================
10990: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10991: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10992: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10993:
10994: g_scl_rec.concatenated_segments := p_soft_segments;
10995: g_scl_rec.segment1 := nvl(p_soft_segment1, p_gre);
10988: -- ~ Soft Coding Keyflex field
10989: -- ===========================================================================
10990: --hr_utility.trace('p_soft_segments = ' ||p_soft_segments);
10991: --hr_utility.trace('p_soft_segment1 = ' ||p_soft_segment1);
10992: --hr_utility.trace('p_soft_segment2 = ' ||p_soft_segment2);
10993:
10994: g_scl_rec.concatenated_segments := p_soft_segments;
10995: g_scl_rec.segment1 := nvl(p_soft_segment1, p_gre);
10996: g_scl_rec.segment2 := p_soft_segment2;
11083: g_scl_rec.segment30 := null;
11084: End;
11085: -------------------------------------------------------------------------
11086:
11087: hr_utility.set_location('Soft Coding KFF segments assigned to record: ' ||
11088: 'g_scl_rec ', 150);
11089: -- ===========================================================================
11090: -- ~ People Group Keyflex
11091: -- ===========================================================================
11121: g_grp_rec.segment28 := p_people_segment28;
11122: g_grp_rec.segment29 := p_people_segment29;
11123: g_grp_rec.segment30 := p_people_segment30;
11124:
11125: hr_utility.set_location('People Grp KFF segments assigned to record: ' ||
11126: 'g_grp_rec ', 160);
11127: hr_utility.trace('l_migration_allowed ='||l_migration_allowed);
11128: --$ If migration allowed only call Chk_NI_Exists. Modification for Applicant Issue.
11129: --if l_migration_allowed ='Y' then
11123: g_grp_rec.segment30 := p_people_segment30;
11124:
11125: hr_utility.set_location('People Grp KFF segments assigned to record: ' ||
11126: 'g_grp_rec ', 160);
11127: hr_utility.trace('l_migration_allowed ='||l_migration_allowed);
11128: --$ If migration allowed only call Chk_NI_Exists. Modification for Applicant Issue.
11129: --if l_migration_allowed ='Y' then
11130: l_person_id := Chk_NI_Exists
11131: (p_national_identifier => g_per_rec.national_identifier
11156: if g_asg_rec.assignment_id is not null then
11157: l_apl_assignment_id := g_asg_rec.assignment_id;
11158: end if;
11159:
11160: --hr_utility.trace(' l_apl_assignment_id = ' ||l_apl_assignment_id);
11161: -- if g_asg_rec.assignment_id is null then
11162: -- g_asg_rec.assignment_id := l_apl_assignment_id;
11163: -- end if;
11164:
11163: -- end if;
11164:
11165: if p_data_pump_flag = 'Y' then
11166:
11167: --hr_utility.trace('DataPump_API_Call');
11168:
11169: DataPump_API_Call
11170: (p_data_pump_batch_line_id => p_data_pump_batch_line_id
11171: ,p_batch_id => p_batch_id
11177: --$ Pass Link value in case of updating batch lines
11178: ,p_batch_link => p_batch_link
11179: );
11180: else
11181: --hr_utility.trace('Direct_API_Call');
11182:
11183: Direct_API_Call
11184: (p_dup_person_id => l_person_id
11185: ,p_dup_party_id => p_dup_party_id
11202: if(MSGNAME <> 'CONC-SINGLE PENDING REQUEST' OR MSGAPP<>'FND') then
11203: fnd_message.set_name(MSGAPP, MSGNAME);
11204: end if;
11205:
11206: hr_utility.set_location('Leaving: ' || l_proc_name, 350);
11207:
11208: exception
11209: when e_upl_not_allowed then
11210: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11206: hr_utility.set_location('Leaving: ' || l_proc_name, 350);
11207:
11208: exception
11209: when e_upl_not_allowed then
11210: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11211: hr_utility.set_message_token('GENERIC_TOKEN',g_upl_err_msg);
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11207:
11208: exception
11209: when e_upl_not_allowed then
11210: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11211: hr_utility.set_message_token('GENERIC_TOKEN',g_upl_err_msg);
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11208: exception
11209: when e_upl_not_allowed then
11210: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11211: hr_utility.set_message_token('GENERIC_TOKEN',g_upl_err_msg);
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11209: when e_upl_not_allowed then
11210: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11211: hr_utility.set_message_token('GENERIC_TOKEN',g_upl_err_msg);
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11211: hr_utility.set_message_token('GENERIC_TOKEN',g_upl_err_msg);
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11212: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11213: hr_utility.raise_error;
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11214: when e_crt_per_not_allowed then
11215: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11216: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_per_err_msg);
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11217: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11218: hr_utility.raise_error;
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11219: when e_crt_asg_not_allowed then
11220: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11221: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_asg_err_msg);
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11228: hr_utility.raise_error;
11229: when Others then
11222: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11228: hr_utility.raise_error;
11229: when Others then
11230: -- close chk_party;
11223: hr_utility.raise_error;
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11228: hr_utility.raise_error;
11229: when Others then
11230: -- close chk_party;
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11224: when e_crt_add_not_allowed then
11225: hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11226: hr_utility.set_message_token('GENERIC_TOKEN',g_crt_add_err_msg);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11228: hr_utility.raise_error;
11229: when Others then
11230: -- close chk_party;
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11227: hr_utility.set_location('Leaving: ' || l_proc_name, 370);
11228: hr_utility.raise_error;
11229: when Others then
11230: -- close chk_party;
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11233: hr_utility.set_location('sqlerrm' || substr(sqlerrm,101,150), 370);
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11228: hr_utility.raise_error;
11229: when Others then
11230: -- close chk_party;
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11233: hr_utility.set_location('sqlerrm' || substr(sqlerrm,101,150), 370);
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11236: --hr_utility.set_message_token('GENERIC_TOKEN',substr(sqlerrm,1,50) );
11229: when Others then
11230: -- close chk_party;
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11233: hr_utility.set_location('sqlerrm' || substr(sqlerrm,101,150), 370);
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11236: --hr_utility.set_message_token('GENERIC_TOKEN',substr(sqlerrm,1,50) );
11237:
11231: hr_utility.set_location('sqlerrm' || substr(sqlerrm,1,50), 370);
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11233: hr_utility.set_location('sqlerrm' || substr(sqlerrm,101,150), 370);
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11236: --hr_utility.set_message_token('GENERIC_TOKEN',substr(sqlerrm,1,50) );
11237:
11238: --hr_utility.trace(' Final Error = '||sqlerrm);
11239:
11232: hr_utility.set_location('sqlerrm' || substr(sqlerrm,51,100), 370);
11233: hr_utility.set_location('sqlerrm' || substr(sqlerrm,101,150), 370);
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11236: --hr_utility.set_message_token('GENERIC_TOKEN',substr(sqlerrm,1,50) );
11237:
11238: --hr_utility.trace(' Final Error = '||sqlerrm);
11239:
11240: rollback to InsUpd_PerAsgAdd_Rec;
11234:
11235: --hr_utility.set_message(8303, 'PQP_230500_HROSS_GENERIC_ERR');
11236: --hr_utility.set_message_token('GENERIC_TOKEN',substr(sqlerrm,1,50) );
11237:
11238: --hr_utility.trace(' Final Error = '||sqlerrm);
11239:
11240: rollback to InsUpd_PerAsgAdd_Rec;
11241: hr_utility.raise_error;
11242:
11237:
11238: --hr_utility.trace(' Final Error = '||sqlerrm);
11239:
11240: rollback to InsUpd_PerAsgAdd_Rec;
11241: hr_utility.raise_error;
11242:
11243: end InsUpd_PerAsgAdd_Rec;
11244:
11245: end PQP_PerAsgAdd_RIW;