Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

No. of Worked days in month

former_member386202
Active Contributor
0 Kudos

Hi friends,

I would like to know how i would be able to find the number of paid days for an employee in a particular month.

Regards,

Prashant

7 REPLIES 7

former_member181995
Active Contributor
0 Kudos

Get total number of days in month and subtract the holidays than.

0 Kudos

Hi Amit,

Thanks for ur reply but how about employee leaves???

How will we come to know that no. leaves employee took in that month?

Regards,

Prashant

0 Kudos

hi,

you can get employee leave details from 416 infotype or use pa0416 table.

0 Kudos

for getting public holiday you may refer the above person's reply(Holiday_get) .and for getting the personal leave you must have to maintain the ESS and get the details from HR_GET_LEAVE_DATA.finally sum both and subtract from total days.

Update:But you must take care one thing if there is public holiday than employee not came its fine but the problem would occurs if employee may be come on public holiday(like in india for hourly wage employees) also than you must need to maintain their presence in infotype 2002 as well.

but above case only once in while but possibilities are there

Cheers

Edited by: Ámit Güjärgoüd on Oct 14, 2008 9:50 AM

GauthamV
Active Contributor
0 Kudos

hi,

check this function module.

RKE_SELECT_FACTDAYS_FOR_PERIOD.

Former Member
0 Kudos

hiii

you can use FM

HOLIDAY_GET -get holidays in month and subtract it from total no of days.

refer to following link .i think it will be helpful to you.

regards

twinkal

Former Member
0 Kudos

Hi,

I hope that this FM will be of help to you.

HR_AUPBS_CALC_ABSENCES

Regards.