cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase leave quantity has to be limited to maximum of the standard weekly hours of the employees.

vidya_duddukuri
Newcomer
0 Kudos

Hi All,

SAP has provided the Purchase Leave functionality for Australia and now made available for other countries as well. We have a requirement for the UK client to implement the purchase leave functionality. The requirement is to restrict the purchase quantity to maximum of employees standard weekly hours (but they can purchase them on different transactions).

Employee's working hours determine the eligibility for Purchase Leave benefit. If employee working is 37 hours, then employee is eligible for cumulatively 37 hours only in the entire calendar year (Jan to Dec). That is he can purchase leave only up to 37 hours for the entire year. He can apply as 10 on first occasion or 20 on next and 7 after that, but needs to ensure it doesn't exceed 37 hours i.e., their standard weekly hours.

We have configured a business rule that says:

If

Time Account.Purchase Quantity > Time Account Purchase. User. Job Information. Standard Weekly Hours

Then

Raise an Error Message.

This above rule is allowing us to restrict the purchase of the leaves to maximum of employee's standard weekly hours by considering Today().whereas when we request a purchase of leave on the next day, we are again able to book the maximum of standard weekly hours. It should be restricted to the employee's standard weekly hours for the calendar year allowing them to purchase the leaves on multiple transactions (Eg. If the standard weekly hours of the employee is 37 hours - He can apply it as 10+10+10+7 etc., and not just 37 hours at one transaction.)

We tried using another function is the Business rule: Get Purchased Leave Quantity Or Equivalent Quantity (in weeks) for period() but still could not achieve the requirement.

Can anyone help us to achieve this requirement please?

Thanks!

Accepted Solutions (0)

Answers (0)