Symptom
When hiring an employee through Web Service managepersonnelhiringin in SOAP UI or via Migration of Employee Data, you are getting the below error:
Error Message: <Note>VALIDITY_PERIOD-END_DATE is read only</Note>
Environment
SAP Business ByDesign
Cause
If you are using Web Service:
Cause: You are trying to set a Leaving Date while you are hiring a Permanent employee using the below parameter
<LeavingDate>XXXX-YY-ZZ</LeavingDate>
If you are using Migration:
Cause: It is not allowed to specify the Termination Date for an employee whose Work Agreement Type is Permanent.
Resolution
If you are using Web Service:
Solution: You need to either remove the leaving date or set the TypeCode to 2, Which is under the <WorkAgreement> parameter.
If you are using Migration:
Solution: Specify the Termination Date for such Employees as Unlimited. If you wish to terminate the employee, that can be done from the Personnel Administration work center's Terminate Relationship with Employee regular task.
Keywords