SAP Knowledge Base Article - Public

2507209 - Wrong Time Type is Saved When Requesting Absence

Symptom

  • You are experiencing an issue where the wrong time type is being saved when you request absence.
    • Specifically, regardless of whether you select time type B, C, or D, time type A is saved every time.
  • The imported Employee Times are showing the same leaves multiple times on the Workbench / MTO Page.
    • These times were imported to the system via the Import and Export Data > Import Employee Times path.
  • To give a clearer picture of the issue, as shown in below image, no matter what time type is selected, only the Sickness employee leave is saved.

imported employee times.jpg

If you export employee times and apply a filter by a specific user, you may notice that only one entry exists for a particular date.

  • This situation can also influence the display on the Team Absence Calendar. For instance, during weeks where these employee times exist, you might not see any users on the calendar.

Environment

Employee Central

Employee Central Time Off - Absence

Reproducing the Issue

  1. Navigate to 'request absence'.
  2. Select time type B, C, or D as needed.
  3. Click on 'Submit'.
  4. Verify the saved record.
  5. Notice that no matter which time type you select, only time type A is being displayed in the saved record.

This is not the expected behavior, as the selected time type should be accurately reflected in the saved record. For instance, if you select 'Vacation', it should show as such in the record, not as time type 'Sickness employee leave'.

Cause

  • The time type includes special characters like "\" or "\n". This is causing some confusion for the system.
  • For instance, when employee times are created or imported with external codes that has "/" symbols included, the system doesn't handle it correctly. An example of an external code could be "3074_02/27/2017", but it should actually be formatted as 3074_02272017.
    • The reason for this is that in programming language, "\n" signifies a new line, causing the system to skip the selection.

Resolution

To avoid this issue in the future, please ensure that the external codes are formatted correctly, without the special characters such s "/" symbol.

Regarding Employee Times:

  1. It's not feasible to edit the external codes for employee times through manage data or import.
  2. The solution here is to cancel or delete the absences and then recreate them with the correct external code. If you're using import, leave the external code field blank so the system can generate the correct external code.
  3. Please note that this also applies to the external codes on time types. If special characters are used, it can confuse the system and potentially cause errors.

Regarding Time Types:

For the affected time types, you'll need to rename the external codes. This can be done either through import or manually via Manage time off Structures.

Approach 1:

  1. Temporarily change all instances of the 'time type with the special character' to another name and save those changes.
  2. Edit the time type once more and change the names back to 'name without the special character' and save those changes.
  3. Thereafter all should display as expected

Approach 2:

  1. Export Data for time types and download the data sheet.
  2. Remove the line breaks from the downloaded data sheet.
  3. Import that data for the time types again.
  4. Thereafter all should display as expected

To fix the incorrect time type in the time off workbench. Here's what you need to do:

  1. Edit the absence in the workbench.
  2. Select the correct time type.
  3. Submit your changes.
  4. Thereafter the correct time type should show.

Keywords

Employee time external code,Duplicate leave requests,Missing leave requests,special characters, team absence calendar shows no users for some weeks, team absence calendar stops showing data, team absence calendar is empty , KBA , LOD-SF-EC-TIM , Time Off , LOD-SF-EC-TIM-ABS , Absence error's - Calculations, Deductions, TT&ET , Problem

Product

SAP SuccessFactors Employee Central 1611 ; SAP SuccessFactors Employee Central 1702 ; SAP SuccessFactors Employee Central 1705 ; SAP SuccessFactors Employee Central 1708