Time Sheet Workflow Based on Time Valuation Result... - SAP Community
source link: https://community.sap.com/t5/human-capital-management-blogs-by-sap/time-sheet-workflow-based-on-time-valuation-results/ba-p/13534871
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Time Sheet Workflow Based on Time Valuation Result...
02-18-2022 3:14 PM
We often receive the question to have a workflow based on different time valuation results. Most of them might not be aware that the time sheet workflow does not only handle simple cases like triggering a workflow to a manager, HR but can now also handle complex situations where you decide which workflow should be triggered based on a time valuation result like Overtime values
In this sample case, let me take an example of the following scenario
- 0 overtime hours --> should trigger no workflow
- 1-5 overtime hours --> manager approval
- 6-20 overtime hours --> manager and HR
Sample Time Recording Profile
In the above time recording profile, we are basically splitting Recorded time in Public Holiday group and then in Non PH Group.In the final valuation we take the recorded hours on working days and compare it with scheduled working day for that day. Anything in access is moved to a time type group “OT1.5_WK” Note: Again, This is just a sample time valuation. Your OT calculation could differ from mine. The basic idea is to capture OT , be it on a Public Holiday, Non-working Day (Sun, Sat) , working Day etc in a time type group. As an example, for demonstration, I am taking OT hours which are in Non-Public Holidays, but you could calculate for a full week or so.
Workflow Rule
Construct a workflow rule like below and attach it to Employee Time Sheet Object Definition The Rule Does the following- The rule function “Get Number of Valuated Hours For Time Sheet ()” uses Time type group as a parameter. The Time Type Group OT1.5_WK is used here. The will retrieve the OT value from time valuation in time sheet when Workflow is submitted
- Based on the value of this time type group appropriate workflow is triggered i.e. either to manager or manager & HR etc
- The other conditions checks if the action is submit and current approval status is “To be Submitted “.
- Further conditions can be added like, legal entity, Time Recording profiles, Employee Group/Class etc if you further want to differentiate Overtime calculation and values for different employee groups
Testing
Case 1)For a particular week, the OT value is 6 hours So, Workflow triggered is “Manager and HR” Case 2)
OT is 2 hours For 2 hours, workflow is triggered to manager only Some limitations where this will not work:
- If your time type group (TTG) is a time collector, this will not work. Ensure that your TTG is not a collector
- This will not work if you are using time type group value in rule which is part of time valuation "Filter Input groups ...." Ensure you use the TTG from valuation like "Aggregate and split " or "Deduct groups from input groups..."
Best Regards
Neelesh
Product Management, SAP Best practices for SuccessFactors
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK