For Worker: This is straight forward when there are no changes to the Hire assignment.
The hire date is the start date of a work relationship. To change the hire date, provide the new date on the NewStartDate attribute of the Work Relationship component. You can load just the work relationship record. The employment terms and assignment records are maintained automatically.
This example changes the hire date for an existing worker:
SET PURGE_FUTURE_CHANGES N
METADATA|WorkRelationship|SourceSystemOwner|SourceSystemId|PersonId(SourceSystemId)|LegalEmployerName|NewStartDate
MERGE|WorkRelationship|<SRC_OWNER>|<SRCID>|<PERSONID>|<LEGALEMPLOYER>|<NewStartDate>
For Pending Worker: As this is Pending Worker, we will have to follow these options.
Step 1: Cancel the Incorrect Pending Worker Record
To remove the pending hire with the incorrect start date, use HCM Data Loader (HDL) as follows:1. Create a .dat file specifically to cancel the existing pending work relationship.
2. Use the MERGE instruction on the WorkRelationship business object with the CANCEL action code.
E.g.: METADATA|WorkRelationship|PersonNumber|LegalEmployerName|ActionCode
MERGE|WorkRelationship|<PersonNumber>|<LegalEmployerName>|CANCEL
3. Load this HDL file. This will cancel the future-dated work relationship.
Step 2: Re-create the New Hire with the Correct Start Date
1. After successful cancellation of the incorrect record, proceed with hiring the employee.
2. Use your original HDL file for the new hire, but ensure the start date is correct.
3. Load the corrected HDL file. Since the conflicting record has been removed, the new hire process should now complete successfully.
No comments:
Post a Comment