450:
451: open csr_get_hr_sess_id(l_session_id);
452: fetch csr_get_hr_sess_id into l_session_id1;
453: if(csr_get_hr_sess_id%notfound) then
454: hr_startup_data_api_support.create_owner_definition('PAY');
455: end if;
456: close csr_get_hr_sess_id;
457:
458: --set user mode based on value of OWNER
458: --set user mode based on value of OWNER
459: if (p_OWNER ='SEED') then
460:
461: if(p_BUSINESS_GROUP_NAME is null AND p_LEGISLATION_CODE is null)then
462: hr_startup_data_api_support.enable_startup_mode('GENERIC');
463:
464: else
465: hr_startup_data_api_support.enable_startup_mode('STARTUP');
466: end if ;
461: if(p_BUSINESS_GROUP_NAME is null AND p_LEGISLATION_CODE is null)then
462: hr_startup_data_api_support.enable_startup_mode('GENERIC');
463:
464: else
465: hr_startup_data_api_support.enable_startup_mode('STARTUP');
466: end if ;
467: --Need to set the AOL WHO columns properly. Hence call this
468: hr_general2.init_fndload(800,1);
469:
470: elsif (p_OWNER='CUSTOM') then
471:
472: if(p_BUSINESS_GROUP_NAME is null AND p_LEGISLATION_CODE is null)then
473:
474: hr_startup_data_api_support.enable_startup_mode('GENERIC');
475:
476: elsif(p_BUSINESS_GROUP_NAME is not null
477: AND p_LEGISLATION_CODE is null) then
478:
475:
476: elsif(p_BUSINESS_GROUP_NAME is not null
477: AND p_LEGISLATION_CODE is null) then
478:
479: hr_startup_data_api_support.enable_startup_mode('USER');
480:
481: end if;
482: --Need to set the AOL WHO columns properly. Hence call this
483: hr_general2.init_fndload(800,-1);
640: open csr_get_hr_sess_id(l_session_id);
641: fetch csr_get_hr_sess_id into l_session_id1;
642: if(csr_get_hr_sess_id%notfound) then
643:
644: hr_startup_data_api_support.create_owner_definition('PAY');
645:
646: end if;
647: close csr_get_hr_sess_id;
648:
648:
649: --set user mode based on value of OWNER
650: if (p_OWNER ='SEED') then
651:
652: hr_startup_data_api_support.enable_startup_mode('STARTUP');
653: --Need to set the AOL WHO columns properly. Hence call this
654: hr_general2.init_fndload(800,1);
655:
656: elsif (p_OWNER='CUSTOM') then
656: elsif (p_OWNER='CUSTOM') then
657:
658: if(p_BUSINESS_GROUP_NAME is null AND p_LEGISLATION_CODE is null) then
659:
660: hr_startup_data_api_support.enable_startup_mode('GENERIC');
661:
662: elsif(p_BUSINESS_GROUP_NAME is not null
663: AND p_LEGISLATION_CODE is null) then
664:
661:
662: elsif(p_BUSINESS_GROUP_NAME is not null
663: AND p_LEGISLATION_CODE is null) then
664:
665: hr_startup_data_api_support.enable_startup_mode('USER');
666:
667: end if;
668: --Need to set the AOL WHO columns properly. Hence call this
669: hr_general2.init_fndload(800,-1);
841: open csr_get_hr_sess_id(l_session_id);
842: fetch csr_get_hr_sess_id into l_session_id1;
843: if(csr_get_hr_sess_id%notfound) then
844:
845: hr_startup_data_api_support.create_owner_definition('PAY');
846: end if;
847: close csr_get_hr_sess_id;
848:
849: --set user mode based on value of OWNER
848:
849: --set user mode based on value of OWNER
850: if (p_OWNER ='SEED') then
851:
852: hr_startup_data_api_support.enable_startup_mode('STARTUP');
853: --Need to set the AOL WHO columns properly. Hence call this
854: hr_general2.init_fndload(800,1);
855:
856: elsif (p_OWNER='CUSTOM') then
855:
856: elsif (p_OWNER='CUSTOM') then
857:
858: if(p_BUSINESS_GROUP_NAME is null AND p_LEGISLATION_CODE is null) then
859: hr_startup_data_api_support.enable_startup_mode('GENERIC');
860:
861: elsif(p_BUSINESS_GROUP_NAME is not null
862: AND p_LEGISLATION_CODE is null) then
863:
860:
861: elsif(p_BUSINESS_GROUP_NAME is not null
862: AND p_LEGISLATION_CODE is null) then
863:
864: hr_startup_data_api_support.enable_startup_mode('USER');
865:
866: end if;
867: --Need to set the AOL WHO columns properly. Hence call this
868: hr_general2.init_fndload(800,-1);