Symptom
Together with the Monthly Time Sheet released with 1H 2024, a new option of "Consider only allowances that have changed" is introduced in the Amendment Scenario parameter of Get Number of Allowances In Period() and Has Allowances In Period(). More details can be found in What's New Viewer Enhancement of the Rule Functions Get Number of Allowances In Period and Has Allowances In Period
Currently the "Consider only allowances that have changed" will count the approved allowance recordings when system generates a new amendment monthly time sheet.
For example, there is already an approved monthly time sheet with 2 allowance recordings. And you are to add a 3rd allowance to this approved monthly time sheet. This action will generate an amendment monthly time sheet. When the amendment time sheet is saved with the new allowance recording added, the Get Number of Allowances In Period() and Has Allowances In Period() functions with "Consider only allowances that have changed" set in the Amendment Scenario parameter will also consider the 2 approved allowance recordings together with the 1 newly added allowance recording.
This symptom does not happen with original monthly time sheet, or amendment monthly time sheet if the amendment monthly time sheet has already been saved to DB before.
Environment
SAP SuccessFactors Time Tracking
Resolution
This is a known behaviour designed intentionally.
Because the Get Number of Allowances In Period() and Has Allowances In Period() functions are not meant for Evaluate or Validate purpose on save rules on Employee Time Sheet object.
They are expected to be used for workflow triggering, or described scenario as documented in Use Case part of Get Number of Allowances in Period(), in which scenarios the Employee Time Sheet (amendment or not) is already persisted on DB.
So the symptom described in the Symptom section would not happen at all when these functions are used in expected scenarios.
To sum up, please make sure these functions Get Number of Allowances In Period() and Has Allowances In Period() are used in expected scenarios as described above, where the employee time sheet is already persisted.
Keywords
TIM-44165, monthly, time, sheet, tracking, timesheet, ttr, tms, ui, view, allowance, recording, allowancrecording, business, rule, save, wfl , KBA , LOD-SF-TTR-TMS , Time Sheet , LOD-SF-TTR , Time Tracking , Problem