cancel
Showing results for 
Search instead for 
Did you mean: 

Time Off Recruit Rule: Rounding up in 0.5s

Antonis
Explorer
0 Kudos
844

Hi experts,

I have a problem in Time Management I cant get quite right. Our company keeps a rather simple system for time off, just assigning Days to be booked at half or full increments. 

We are flexible for new joiners and try to round up when their time off is in the form of a decimal place. For example, our full balance is 26 days for the year, and when someone joins the system will take 15.2 and default up to 16 for example. In reality, it would be more appropriate to get it to 15.5.

AIs there some way to get the rounding to be more to 0.5 as to +1?

Antonis_0-1716562657358.png

Thank you,

Accepted Solutions (1)

Accepted Solutions (1)

EvangeliaP
Participant
0 Kudos

Hi @Antonis and Welcome in this Community! There are also many guides which help you on such rules, for example, you can take a look on this one: Half-Rounding in Accrual Rules | SAP Help Portal. 

Good Luck!

BR,

Evangelia

Antonis
Explorer
0 Kudos

Hi @EvangeliaP,

This is rather helpful, we have set-up an accrual rule but when I run a test with this new rule it seems it doesn't recognise our accrual values. In the simulator it returns:

"Please assign a value to the following mandatory fields: Amount posted."

Accrual:

Antonis_1-1716964165119.png

Recruit Rule:

Antonis_0-1716964108806.png

 

If you may be able to point me in the right direction it would be a big help.

Kind regards,

EvangeliaP
Participant
0 Kudos

HI @Antonis, a first thing I can already see is that you use in your "Then" Section the Accrual Rule Variables.Balance, But you did not define it anywhere in the previous step. After fixing this, check also if the Average Full Time Equivalent Field in Accrual Rule variables Object is receiving the same Data Type as your Result (i.e. they need to both be in the same unit - decimals). A rule Trace is always a good idea to pinpoint where your issue is exactly. Let me know if you need anything else.

Antonis
Explorer
0 Kudos
Hi Evangelia, I will definitely follow that up thank you for your support.

Answers (1)

Answers (1)

SoraiaLatif
Product and Topic Expert
Product and Topic Expert

Hi @Antonis ,

There is a nice KBA article covering this requirement: 2321693 - Rules - Round down to multiples of 0.5 - SAP for Me

Hope it helps,

Soraia

Antonis
Explorer
0 Kudos

Hi Sorai,

I did in fact find that previously but I was looking to round up as to down, and struggled anyway to replicate it.

Best regards,