cancel
Showing results for 
Search instead for 
Did you mean: 

Time Type Validation

k_SuccessFC
Galactic 7
Galactic 7
0 Kudos

Dear SAP Community, 

I would like to ask for an insight how to carry out this requirement. 

There are conditions that error message will appear when raising Sick Leave with Certificate Leave Type. 

• Total of 5 days taken in each accrual year. OR
• Maximum 2 successive days taken.

What functions do I need to use for these scenarios? If I use the first function on the attached screenshot, it will only take if the days are successively requested. Example Feb 17, 2023- Feb 18, 2023. But if you file these days separately e.g. Feb 17, 2023, and then another one for Feb 18, the function will not cover the scenario. And as for the conditions for 5 days taken per accrual year (second function), it conflicts with the one for two successive days. How can we cover these both? The time type is in hours unit. 
rule.PNG

Thanks! 

Answers (1)

Answers (1)

Virginie_Klein
Employee
Employee
0 Kudos

Hi @k_SuccessFC,

for the first condition I suggest the rule function Get Absence in Days For Period Based on Working Days for Time Types() (start and end date need to cover the accrual year).

for the second condition I suggest the rule function Is Consecutive Limit for Time Types Reached().

You can check the implementation guide for more information on those rule functions.

Kind regards

Virginie

 
k_SuccessFC
Galactic 7
0 Kudos
Thank you Virginie!