SAP Knowledge Base Article - Public

2742204 - Time Sheet Validation Rule To Restrict One Allowance Entry or One Recording Entry of a particular Time Type Per Week

Symptom

How to configure a time sheet validation rule to restrict more than one allowance entry or recording of a particular time type to be recorded per week?

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

Environment

  • SAP SuccessFactors Employee Central - Timesheet
  • SAP SuccessFactors Time Tracking

Resolution

General direction is to create save rule for Validate purpose on Employee Time Sheet object, and within this rule, Cardinality() function can be utilized to count the total number of the allowance or recording entry and then raise error if a threshold is reached.

Below is just one sample using allowance as example. You can further adjust according to your business requirement details.

1. In Admin Center > Configure Business Rules, create a business rule using Basic rule scenario and then Employee Time Sheet as Base object.

EmployeeTimeSheet_AllowanceValidation.png

2. Go to Admin Center > Configure Object Definitions then open 'Employee Time Sheet' object definition. Click on Take Action and assign the rule under Save Rules section then save the changes.

ObjectDefinition_EmployeeTimeSheetSaveRules.png

In the sample rule configuration above, system will validate if there are already 2 or more Extra Allowance entries recorded for the time sheet week.

See Also

Implementing Employee Central Time Sheet

Keywords

Time sheet, Employee Time Sheet, Validation, Rule, Allowance, TMS, EC, recording, cardinality, validate, prevent, entry, cardinality, count, number , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-TTR , Time Tracking , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions ; SAP SuccessFactors Time Tracking all versions