SAP Knowledge Base Article - Public

2705283 - Validations are not Refreshed Based on Updated Field Values Populated by Rule

Symptom

Onchange rule on Employee Time Field is not working as expected on absence request UI

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

Environment

Employee Central, Time Off

Reproducing the Issue

  1. You have a rule on the start date field of employee time object, to populate the expected end date field to start date + 10 days.
  2. End date populates as expected +10 days, once you reselect a date after choosing time type, but error still appears "Expected return date must be one day later than end date."
    (The system does not recognise the updated end date)
  3. Validations will also not be refreshed. For example, if the start date is a public holiday, the system will ask that you enter atleast one workday, even though the request is actually for 10 calendar days which includes work days.

Resolution

Add the rule to the Time Type field in addition to the start date field on employee time object.

*Note: Known issue where the error still appears with Canadian Time Zone (UTC -5).

If you re using this time zone the end date will be calculated wrongly. Even if you do not see the end date for LOA in the absence request UI for new absence, it is still there.
The end date should be always one day before the expected return date. However, with the Canadian Time Zone it is two days before the expected return date.
We will fix this issue in 1905.

Workaround:


As the end date always should be one day before the expected return date, you can simply set the end date directly in the same rule.

workaround rule.png

Keywords

TIM-7156, defaulting expected return date not working, onchange rule is not working in time off, auto populate end date, set expected return date, set LOA end date , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors Employee Central 1808