SAP Knowledge Base Article - Public

2615583 - Users Cannot Terminate Themselves With a Past or Current Date set as the 'Termination Date'

Symptom

While trying to perform a self-termination with the 'Termination Date' set in the past or on today's date, the system issues and error "Error : You can only terminate your employment in the future."

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP SuccessFactors - Employee Central 

Reproducing the Issue

  1. Proxy as the user to be Terminated > Navigate to 'Admin Center' > 'Employee File';
  2. Click on 'Take Action' > Terminate;
    Self_Terminate.png

    Image_from_demo_system.png
  3. Set the 'Termination Date' to enter a date in the past OR today's date;
  4. Click 'Save' > Error Message appears 'Error : You can only terminate your employment in the future.'
  5. Error_Message.png

Cause

This is default system behaviour: an error is raised when the termination date is earlier than or on "today".
Code: i.e. DateUtils.compareDateIgnoreTime(terminationDate, today) <= 0

This will also depend on where the system is located. For example;

  1. If the local time is Oct 20th, 09:00a.m in Shanghai, and the system time is Oct 19th 18:00p.m in Palo Alto, the current logic will NOT raise an error, because the code is only checking against the date and ignoring the time.
  2. On the other hand, if the local time is Oct 21st, 12:00a.m in Shanghai, and the system time is Oct 20th, 09:00a.m in Palo Alto, the current logic WILL raise an error.

Resolution

Though the user cannot perform this termination themselves, it is still possible to terminate the user. This can be done either by;

  •  Proxying as a user with the correct permissions to terminate this user

or

Keywords

Employee Central, Termination, Self-Termination, You can only terminate your employment in the future, Current Date, Past Date, Termination Date , KBA , LOD-SF-EC-EMP , Employment Information (Employment & Termination Details) , Problem

Product

SAP SuccessFactors HXM Suite all versions