In HRMS, there are different types of conversions at times we may get requirement for loading the contingent workers into the Oracle Instance. For more information you can check in the Employee types.
Below is the API which is used for loading the Contingent Employee, for non-Saudi 'SA' can be removed.
HR_SA_CONTINGENT_WORKER_API.CREATE_SA_CWK (
p_validate =>false
,P_START_DATE =>I.HIRE_DATE
,p_business_group_id => L_BUSINESS_GROUP_ID
,p_family_name => I.FAMILY_NAME
,P_PERSON_TYPE_ID =>L_PERSON_TYPE_ID
,P_NPW_NUMBER =>L_EMPLOYEE_NUMBER --IN OUT NOCOPY VARCHAR2
,P_BACKGROUND_CHECK_STATUS =>NULL
,P_BACKGROUND_DATE_CHECK =>NULL
,P_BLOOD_TYPE =>NULL
,P_COMMENTS =>NULL
,P_CORRESPONDENCE_LANGUAGE =>NULL
,P_COUNTRY_OF_BIRTH =>L_COUNTRY_OF_BIRTH
,P_DATE_OF_BIRTH =>I.DATE_OF_BIRTH
,P_DATE_OF_DEATH =>NULL
,P_DPDNT_ADOPTION_DATE =>NULL
,P_DPDNT_VLNTRY_SVCE_FLAG =>NULL
,P_EMAIL_ADDRESS =>I.EMAIL
,P_FIRST_NAME =>I.FIRST_NAME
,P_FTE_CAPACITY =>NULL
,P_HONORS =>NULL
,P_INTERNAL_LOCATION =>I.location
,P_KNOWN_AS =>NULL
,P_LAST_MEDICAL_TEST_BY =>NULL
,P_LAST_MEDICAL_TEST_DATE =>NULL
,P_MAILSTOP =>NULL
,P_MARITAL_STATUS =>L_MARITAL_STATUS
,P_NATIONAL_IDENTIFIER =>L_NATIONAL_IDENTIFIER
,P_NATIONALITY =>L_NATIONALITY
,P_OFFICE_NUMBER =>I.OFFICE
,P_ON_MILITARY_SERVICE =>NULL
,P_PARTY_ID =>NULL
,P_PREVIOUS_LAST_NAME =>NULL
,P_PROJECTED_PLACEMENT_END =>NULL
,P_RECEIPT_OF_DEATH_CERT_DATE =>NULL
,P_REGION_OF_BIRTH =>I.REGION_OF_BIRTH
,P_REGISTERED_DISABLED_FLAG =>L_DISABLED
,P_RESUME_EXISTS =>NULL
,P_RESUME_LAST_UPDATED =>NULL
,P_SECOND_PASSPORT_EXISTS =>NULL
,p_sex =>L_GENDER
,P_STUDENT_STATUS =>NULL
,P_TITLE =>L_TITLE
,P_TOWN_OF_BIRTH => I.TOWN_OF_BIRTH
,P_USES_TOBACCO_FLAG =>NULL
,P_VENDOR_ID =>NULL
,P_WORK_SCHEDULE =>NULL
,P_WORK_TELEPHONE =>NULL
,P_EXP_CHECK_SEND_TO_ADDRESS =>NULL
,P_HOLD_APPLICANT_DATE_UNTIL =>NULL
,P_DATE_EMPLOYEE_DATA_VERIFIED =>NULL
,P_BENEFIT_GROUP_ID =>NULL
,P_COORD_BEN_MED_PLN_NO =>NULL
,P_COORD_BEN_NO_CVG_FLAG =>NULL
,P_ORIGINAL_DATE_OF_HIRE =>NULL
,P_ATTRIBUTE_CATEGORY =>NULL
,P_ATTRIBUTE1 =>I.TEMPORARY_RESOURCE
,P_ATTRIBUTE2 =>I.SHIFT_REGULAR_EMLOYEE
,P_ATTRIBUTE3 =>I.TICKET_DESTINATION
,P_ATTRIBUTE4 =>I.NUMBER_OF_TICKET_EMPLOYEE
,P_ATTRIBUTE5 =>I.NUMBER_OF_TICKET_DEPENDENT
,P_ATTRIBUTE6 =>I.AGE_ON_HIJRAH_DATE
,P_ATTRIBUTE7 =>NULL
,P_ATTRIBUTE8 =>NULL
,P_ATTRIBUTE9 =>NULL
,P_ATTRIBUTE10 =>NULL
,P_FATHER_NAME =>I.FATHER_NAME
,P_GRANDFATHER_NAME =>I.GRAND_FATHER_NAME
,P_ALT_FIRST_NAME =>I.FIRST_NAME_ARABIC
,P_ALT_FATHER_NAME =>I.SECONED_NAME_ARABIC
,P_ALT_GRANDFATHER_NAME =>I.THIRD_NAME_ARABIC
,P_ALT_FAMILY_NAME =>I.FAMILY_NAME_ARABIC
,P_RELIGION =>L_RELIGION
,P_HIJRAH_BIRTH_DATE =>I.HIJRAH_DATE_OF_BIRTH
,P_EDUCATION_LEVEL =>L_EDUCATION_LEVEL
,p_person_id => p_person_id
,p_per_object_version_number => P_PER_OBJECT_VERSION_NUMBER
,p_per_effective_start_date => P_PER_EFFECTIVE_START_DATE
,P_PER_EFFECTIVE_END_DATE => P_PER_EFFECTIVE_END_DATE
,p_pdp_object_version_number =>p_pdp_object_version_number-- out nocopy number
,P_FULL_NAME => P_FULL_NAME
,p_comment_id => p_comment_id
,p_assignment_id => p_assignment_id
,p_asg_object_version_number => P_ASG_OBJECT_VERSION_NUMBER
,p_assignment_sequence => P_ASSIGNMENT_SEQUENCE
,p_assignment_number => P_ASSIGNMENT_NUMBER
,p_name_combination_warning => P_NAME_COMBINATION_WARNING
);
Below is the API which is used for loading the Contingent Employee, for non-Saudi 'SA' can be removed.
HR_SA_CONTINGENT_WORKER_API.CREATE_SA_CWK (
p_validate =>false
,P_START_DATE =>I.HIRE_DATE
,p_business_group_id => L_BUSINESS_GROUP_ID
,p_family_name => I.FAMILY_NAME
,P_PERSON_TYPE_ID =>L_PERSON_TYPE_ID
,P_NPW_NUMBER =>L_EMPLOYEE_NUMBER --IN OUT NOCOPY VARCHAR2
,P_BACKGROUND_CHECK_STATUS =>NULL
,P_BACKGROUND_DATE_CHECK =>NULL
,P_BLOOD_TYPE =>NULL
,P_COMMENTS =>NULL
,P_CORRESPONDENCE_LANGUAGE =>NULL
,P_COUNTRY_OF_BIRTH =>L_COUNTRY_OF_BIRTH
,P_DATE_OF_BIRTH =>I.DATE_OF_BIRTH
,P_DATE_OF_DEATH =>NULL
,P_DPDNT_ADOPTION_DATE =>NULL
,P_DPDNT_VLNTRY_SVCE_FLAG =>NULL
,P_EMAIL_ADDRESS =>I.EMAIL
,P_FIRST_NAME =>I.FIRST_NAME
,P_FTE_CAPACITY =>NULL
,P_HONORS =>NULL
,P_INTERNAL_LOCATION =>I.location
,P_KNOWN_AS =>NULL
,P_LAST_MEDICAL_TEST_BY =>NULL
,P_LAST_MEDICAL_TEST_DATE =>NULL
,P_MAILSTOP =>NULL
,P_MARITAL_STATUS =>L_MARITAL_STATUS
,P_NATIONAL_IDENTIFIER =>L_NATIONAL_IDENTIFIER
,P_NATIONALITY =>L_NATIONALITY
,P_OFFICE_NUMBER =>I.OFFICE
,P_ON_MILITARY_SERVICE =>NULL
,P_PARTY_ID =>NULL
,P_PREVIOUS_LAST_NAME =>NULL
,P_PROJECTED_PLACEMENT_END =>NULL
,P_RECEIPT_OF_DEATH_CERT_DATE =>NULL
,P_REGION_OF_BIRTH =>I.REGION_OF_BIRTH
,P_REGISTERED_DISABLED_FLAG =>L_DISABLED
,P_RESUME_EXISTS =>NULL
,P_RESUME_LAST_UPDATED =>NULL
,P_SECOND_PASSPORT_EXISTS =>NULL
,p_sex =>L_GENDER
,P_STUDENT_STATUS =>NULL
,P_TITLE =>L_TITLE
,P_TOWN_OF_BIRTH => I.TOWN_OF_BIRTH
,P_USES_TOBACCO_FLAG =>NULL
,P_VENDOR_ID =>NULL
,P_WORK_SCHEDULE =>NULL
,P_WORK_TELEPHONE =>NULL
,P_EXP_CHECK_SEND_TO_ADDRESS =>NULL
,P_HOLD_APPLICANT_DATE_UNTIL =>NULL
,P_DATE_EMPLOYEE_DATA_VERIFIED =>NULL
,P_BENEFIT_GROUP_ID =>NULL
,P_COORD_BEN_MED_PLN_NO =>NULL
,P_COORD_BEN_NO_CVG_FLAG =>NULL
,P_ORIGINAL_DATE_OF_HIRE =>NULL
,P_ATTRIBUTE_CATEGORY =>NULL
,P_ATTRIBUTE1 =>I.TEMPORARY_RESOURCE
,P_ATTRIBUTE2 =>I.SHIFT_REGULAR_EMLOYEE
,P_ATTRIBUTE3 =>I.TICKET_DESTINATION
,P_ATTRIBUTE4 =>I.NUMBER_OF_TICKET_EMPLOYEE
,P_ATTRIBUTE5 =>I.NUMBER_OF_TICKET_DEPENDENT
,P_ATTRIBUTE6 =>I.AGE_ON_HIJRAH_DATE
,P_ATTRIBUTE7 =>NULL
,P_ATTRIBUTE8 =>NULL
,P_ATTRIBUTE9 =>NULL
,P_ATTRIBUTE10 =>NULL
,P_FATHER_NAME =>I.FATHER_NAME
,P_GRANDFATHER_NAME =>I.GRAND_FATHER_NAME
,P_ALT_FIRST_NAME =>I.FIRST_NAME_ARABIC
,P_ALT_FATHER_NAME =>I.SECONED_NAME_ARABIC
,P_ALT_GRANDFATHER_NAME =>I.THIRD_NAME_ARABIC
,P_ALT_FAMILY_NAME =>I.FAMILY_NAME_ARABIC
,P_RELIGION =>L_RELIGION
,P_HIJRAH_BIRTH_DATE =>I.HIJRAH_DATE_OF_BIRTH
,P_EDUCATION_LEVEL =>L_EDUCATION_LEVEL
,p_person_id => p_person_id
,p_per_object_version_number => P_PER_OBJECT_VERSION_NUMBER
,p_per_effective_start_date => P_PER_EFFECTIVE_START_DATE
,P_PER_EFFECTIVE_END_DATE => P_PER_EFFECTIVE_END_DATE
,p_pdp_object_version_number =>p_pdp_object_version_number-- out nocopy number
,P_FULL_NAME => P_FULL_NAME
,p_comment_id => p_comment_id
,p_assignment_id => p_assignment_id
,p_asg_object_version_number => P_ASG_OBJECT_VERSION_NUMBER
,p_assignment_sequence => P_ASSIGNMENT_SEQUENCE
,p_assignment_number => P_ASSIGNMENT_NUMBER
,p_name_combination_warning => P_NAME_COMBINATION_WARNING
);
No comments:
Post a Comment