SAP Knowledge Base Article - Public

2404884 - Error Message From Take Rules Is Not Getting Auto-Refreshed On Applying Time Off

Symptom

Error message from Take rules is not getting auto-refreshed on applying time off.

Environment

Successfactors - Employee Central Time Off

Reproducing the Issue

  1. A rule is created to raise a warning message if the attachment is not added.
  2. It is linked to the Take Rule section in the Time Type.
  3. In Time off page, on selecting the Time Type, the warning message appears as expected.
  4. But after adding the attachment, the warning message is still there (i.e the screen is not refreshing).

Cause

  • This is an expected behavior in the Time off ESS UI and in v12 Manage Time off UI.
  • There is only a simulation(or refresh) when a simulation relevant field (time type, start date, end date, start time, end time) is changed. This triggers the execution of the take rule.
  • Therefore the warning message will not be updated as long as the simulation relevant fields are not changed.

Resolution

WORKAROUND 1

  1. Remove the rule from Take Rule section of the Time Types
  2. Navigate to Admin Center -> Configure Object Definition -> Select 'Employee Time'
  3. Click on 'Details' beside the attachment field.
  4. There is a section named 'Condition'. In the fieldId enter 'timeType.externalCode'. Under the section conditionValues, add the external code of the time types for which you need the comment to be mandatory.
  5. Now while applying time off (In Administer Time or Time off),you will see this Attachment field will appear as mandatory only for those Time Types that are added in the 'ConditionValues'(here it's 'VACATION')

WORKAROUND 2

  1. The rule parameter "Take Rule Parameters" has a field "Processing mode" with values "Simulation Only" and "Standard".
  2. If you just make changes in the request form, that value is equal to Simulation Only.
  3. If you save / submit the absence, it is equal to Standard.
  • For example, the customer could define a rule like this:

IF processingMode = Standard

AND the "existing conditions" RAISE ERROR

ELSE IF "the existing conditions" RAISE WARNING

Example:

AttachmentMandatoryRule.jpg

  •  Please make sure you use the Absence Validation rule scenario, and not basic rule, as the code needs to be entered as "takeRuleParameters" exactly.

NOTE:

  • This will be fixed when the Time Off ESS UI is enhanced to the new PP3 UI.
  • The Product Management has confirmed that this is an enhancement.
  • Currently the Enhancement has no fix date, and is currently in discussion for b1808 but not confirmed. You can track the release of this Enhancement by checking the release notes in each release for ECT-49793.
  • Please reach out to your CSM if further tracking of ECT-49793 is required. 

Keywords

Take Rule Attachment Time Off Rule Manage Time Off Administer Time Take rule not refreshed Make attachment mandatory ECT-49793 Raise message Time off ESS UI V12 UI Refresh Error Warning , KBA , LOD-SF-EC-TIM , Time-Off , Problem

Product

SAP SuccessFactors HCM Suite all versions