SAP Knowledge Base Article - Public

3593292 - On Change Rules Are Not Working Correctly In Time Off Mobile App

Symptom

  • On Change rules are not working correctly in time off mobile app, but works fine in Web browser
  • Validation is not triggering in Mobile App, but works fine in Web browser

Environment

SAP SuccessFactors Employee Central - Time Off

Reproducing the Issue

Scenario:

  • A custom field "AM/PM" is configured in Employee Time object
  • An on change rule is configured on the custom field "AM/PM" to automatically defaults the 'Start Time' and 'End Time' based on the "AM/PM" value.
  • On change rules are also configured in the 'Start Time' & 'End Time' fields (In Employee Time object), to raise error based on the value in "AM/PM" field i.e
    • When employee choose a value in "AM/PM" field , the on change rule assigned to the field will automatically defaults the Start time and End time to the correct value.
    • Now, if Start Time or End Time is changed, and it doesn't match the value in "AM/PM" field, as per the on change rule logic an error message will be raised.

Steps to Reproduce:

  1. Request Time Off in mobile app
  2. Select an absence type
  3. Uncheck Full Day
  4. Select the "AM/PM" field (custom field) as 'AM'
  5. Select the 'End Time' as 1:00 PM
    • Excepted Behavior: The validation error message from on change rule is raised
    • Actual Behavior: The validation error message from on change rule is not raised (but works correctly in web browser)

Cause

Defaulting via on change rules is not currently supported in mobile app.

Resolution

  • For Web browser: the on change rules are only executed when the corresponding field is changed. Example If the 'End Time' is changed, the on change rule attached to the 'End Time' field is only executed, no other on change rule(s) are executed.
  • For Mobile App: ALL on change rules are executed after each change on the mobile app UI. i.e 
    • When the employee selects 'AM' in the custom field "AM/PM" > on change rules are triggered > start time and end time are set as per the rule configured in the field.
    • Now the employee changes the 'End Time' > again ALL on change rules are executed, even the on change rule assigned to "AM/PM" field. And the end time is again set to the correct value based on the on change rule. Therefore no validation error is raised as everything is fine from the on change rule logic.
  • This is currently the expected behavior. An enhancement is present to enhance this behavior (TIM-48721) but not yet planned. Please reach out to your CSM/CEE to track the progress of the enhancement.
  • For more details, refer handbook Mobile Time Off Features
    • "The on-change rules is not working properly if the field value that was defaulted or set using the on change rule is changed by the end user again. It only works if the field is not changed again. The reason is because the on change rule is triggered for all fields again if any field is changed."

Workaround:

  • Even though the behavior is not same as Web browser, the current system behavior (of triggering all on change rules in mobile app) will prevent save of any wrong data. Therefore, no action is needed OR
  • Remove the take rule.

See Also

Mobile Time Off Features

Keywords

Time off, mobile, app, on change, onchange, rule, validation, validating, INC11743232, TIM-48721 , KBA , LOD-SF-EC-TIM-MOB , Time Mobile , Problem

Product

SAP SuccessFactors Employee Central 2411