SAP Knowledge Base Article - Public

2770843 - How to prevent a user from creating time sheet in the future only for specific time types

Symptom

You have to following scenario:

Your employees should not be able to save time sheets in any future date when using time type A or B.

For other time types there is no restriction.

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 (EC) - All Versions
  • SAP SuccessFactors Time Sheet

Reproducing the Issue

  1. Go to one specific employee and open his/her time sheet;
  2. Select any future date;
  3. Select time type A or B and try to save;
  4. You expect to have an error message being triggered. 

Resolution

The best practice on how to achieve this is by using the Validation Rules in the time recording profile of the employee, below you can see one example on how this rule could be configured:

Please remember that when we talk about validation rules you should always use the Time Sheet Validation scenario.

FUNCTIONS USED:

  • Today ()
  • Cardinality()

RULE EXAMPLE:

KB1.jpg

Note: Each recording profile accepts only one validation rule so if you already have a rule there you must add this logic in the existing rule as an "else if" block;

See Also

2605223 - Prevent Users From Submitting Future Timesheets

Keywords

time sheet validation prevent creation of time sheet in the future raise error message in time sheet for future entries , KBA , LOD-SF-EC-TMS-WFL , Workflows and Alerts , How To

Product

SAP SuccessFactors Employee Central all versions