cancel
Showing results for 
Search instead for 
Did you mean: 

half day leave configuration

Former Member
0 Kudos

hi Gurus,

I need help for configuring half day leave. An employee's working hours is 8 hours per day and when an employee applies for 4 hours or less than 4 hours of leave it should be taken as 0.50 days. If an employee applies for 5 hours or more than hours it should be taken as 1 day.

I have done the below configuration

Rounting rule:

Lower limit upper limit target

0 0.5 0.5

0.5 1 1

Counting rule:

In have defined two counting rules with different sequesnce numbers.

I have selected the below fileds for half day

1. Planned hours = 0

2. Planned hours > 0

3. < 1 day

4. Quota multiplier 50% against hours field

I have selected the below fields for full day counting

1. Planned hours = 0

2. Planned hours > 0

3. Full day

3. Quota multiplier 100% against days field

Appreciate for the earliest response

Regards

Martina

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Martina,

It is enough to have only one counting rule (for both less and more than one day, quota multiplier should be always 100%, and rounding should be done first). Rounding rule should make its job to round abcense according with your requirements.

You also should pay attention to other configuration for counting - especially to day type, class for period and daily WS. If your configuration doesn't work try to select all and then test again.

Good luck!

Former Member
0 Kudos

Check This user exit, modify accordingly.

  • 2. Default the timings for half day absentees

  • For First Half

IF INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE'.

ASSIGN <PNNNN> TO <C_PNNNN> CASTING.

MOVE INNNN TO <C_PNNNN>.

<PNNNN>-BEGUZ = 'Start Time'.

<PNNNN>-ENDUZ = 'End Time'.

MOVE <C_PNNNN> TO INNNN.

UNASSIGN : <PNNNN>, <C_PNNNN>.

ENDIF.

  • For Second Half

IF INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE' OR

INNNN-SUBTY = 'LEAVE TYPE'.

ASSIGN <PNNNN> TO <C_PNNNN> CASTING.

MOVE INNNN TO <C_PNNNN>.

<PNNNN>-BEGUZ = 'Start Time ex. - 133000'.

<PNNNN>-ENDUZ = 'End Time ex. - 180000'.

MOVE <C_PNNNN> TO INNNN.

UNASSIGN : <PNNNN>, <C_PNNNN>.

ENDIF.

Former Member
0 Kudos

Hi Deepthi,

For this u need to have a small rule wriiten in Time .

Thanks

Swati