SAP Knowledge Base Article - Public

2834968 - Is It Possible To Restrict A Time Sheet Validation Only On The Submit Button?

Symptom

  • How to have a validation for Time Sheet which triggers only when the employee click on the 'Submit' button?
  • The validation should not execute when employee click in the 'Save Draft' button.

Environment

  • SAP SuccessFactors Employee Central – Time Sheet
  • SAP SuccessFactors Time Tracking

Reproducing the Issue

  1. Go to Employee Profile.
  2. Go to Time Sheet.
  3. Select a number of hours for a day less than the value expected as defined in the validation and then click"Save Draft".
  4. Validation error is displayed according to the validation defined.
  5. Click "Submit" then the validation error also is displayed.

Resolution

It is not possible to achive this via Time Sheet Validation Rule, because the Time Sheet Day base object used in Time Sheet Validation Rule cannot help to navigate to the Employee Time Sheet of the particular week, then it is not possible to retrieve the workflow action of the time sheet week to check whether it is Save, or Submit.

As workaround, you can consider setting up business rule based on Employee Time Sheet Entry or Employee Time Sheet object, where it is possible to check the workflow action by Employee Time Sheet Entry.parent.Workflow Action or Employee Time Sheet.Workflow Action respectively.

See Also

Time Sheet Validation Rule

Notes on Rule Functions in Time Sheet

Keywords

Restrict Time Sheet Validation, Time Sheet, TimeSheet, Validation Rule, Save Draft, Only, Submit Button, Submit, timesheetday, TimeSheetDayJTS, tms, ttr, tracking, validate, validation, mdf, business, rule , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-EC-TMS-UI , UI - Errors, Trace, RBP, Permissions, Status , LOD-SF-TTR , Time Tracking , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions