Message type: E = Error
Message class:  HRRSM00 - Process External HR Master Data 
Message number: 222
Message text: Employee is not active: leaving action could not be completed
As the employee does not have the status 'active' in your enterprise,
you cannot execute the leaving action.
The data could not be processed.
Use the 'Reorganize' function to remove data that has already been
transferred.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message HRRSM00222, which states "Employee is not active: leaving action could not be completed," typically occurs in the Human Resources (HR) module when attempting to process a leaving action (such as termination or resignation) for an employee who is not currently active in the system. Here’s a breakdown of the cause, potential solutions, and related information:
Cause: Inactive Employee Status: The employee may have already been terminated or is in a status that does not allow for further actions (e.g., retired, on leave, etc.). Incorrect Date: The action may be attempted on a date that is outside the employee's active period. Data Entry Error: There may be a mistake in the employee's data, such as incorrect personnel number or organizational assignment. Pending Actions: There might be pending actions or processes that need to be completed before the leaving action can be processed.
Solution: Check Employee Status: Verify the employee's current status in the system.
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
HRRSM00221 Only the head office of an employee can initiate a leaving action
What causes this issue?  Only the personnel department of the employee's head office can change employee data. This data has been sent by a branc...
HRRSM00220 The leaving action was successfully completed
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRRSM00230 The re-hiring action was successfully completed
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
HRRSM00231 The employee cannot be re-hired: he/she is already active
What causes this issue?  The employee has the status 'active' in your enterprise, and therefore cannot be rehired.System Response  The data ...
Click on this link to search all SAP messages.