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: 

Absence days caliculation based on working days HR ABAP

Former Member
0 Kudos

Hi experts,

I am developing one report that is for Variable Bonus report. We are evaluating the data based on the Variable Bonus period based on Selection-screen. for ex: 01.04.2007 to 31.03.2008

There is one record in the IT2001 with begin date 26.01.2008 end date 25.07.2008 for the absence type 0620(Unpaid leave). But our Variable Bonus period is 01.04.2007 to 31.03.2008. I want to calculate absence days for the above record from 26.01.2008 to 01.04.2008 and 26.01.2008 to 31.03.2008

Please let me know any function module which gives me exact absence days.

i have tried RKE_SELECT_FACTDAYS_FOR_PERIOD... but its giving based on factory id but in my requirement the working days differ from each employee ...for ex: 5 working days in a week or 5.5 working days in a week, 6 working days in a week ....for each employee....

Please suggest me what could be done to achieve this.....

<REMOVED BY MODERATOR>

Thanks in advance....

Sreenivasa Sarma K.

Edited by: Alvaro Tejada Galindo on Apr 9, 2008 6:02 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi kashi,

jus have alook into this program RPTABS20.u might get some ideas...

for my requirement which is with in the period..

i used three function modules

CALL FUNCTION 'NAMETAB_GET'

CALL FUNCTION 'HR_TIM_REPORT_ABSENCE_DATA_INI'

CALL FUNCTION 'HR_TIM_REPORT_ABSENCE_DATA'

regards

6 REPLIES 6

Former Member
0 Kudos

Hi,

Try to post your thread in HR area so that u can get gud answers.....

Cheers,

Brahma

peter_ruiz2
Active Contributor
0 Kudos

hi,

take a look at these FMs.

HR_P_GET_ABSENCE_COUNTER

HR_QUOTAS_DEDUCTED_BY_ABSENCE

PGET_ABSENCES

Former Member
0 Kudos

There is a field in infotype 2001 named Absence Days (ABWTG). Is that what you need?

If that's it, you don't need a function module to calculate it. Just retrieve the value of that field.

If not, try posting your query to HR forum.

Hope this will help.

Former Member
0 Kudos

hi kashi,

do u want absent days for an employee ina given period on the selection screen ?if yes...jus say yes ...ino how to do it..

regards

0 Kudos

Hi sudheer,

Thanks for your reply.

Yes i need to caliculate the absence days based on S_vbpd(vb period from selection screen). but here in IT2001 Absence day are maintained as contract period ... for example..

vb period 01.04.2007 to 31.03.2008

start date end date

25.03.2007 03.04.2007

20.03.2008 05.04.2008

01042007 31.03.2008

___________|___________________________________|_____



25032007 03042007 20.03.2008 05.04.2008

But system caliculating absence days for period 25.03.2007 to 03.04.2007 and 20.03.2008 to 05.04.2008 in infotype IT2001 total but i need absences from VB period start date and contract enddate(01.04.2007 to 03042007) next period (20.03.2008 to 31.03.2008).

Please help me for the above scenario.....i hope i made it clear my requirement...

Regards,

Sreenivasa sarma k.

Former Member
0 Kudos

hi kashi,

jus have alook into this program RPTABS20.u might get some ideas...

for my requirement which is with in the period..

i used three function modules

CALL FUNCTION 'NAMETAB_GET'

CALL FUNCTION 'HR_TIM_REPORT_ABSENCE_DATA_INI'

CALL FUNCTION 'HR_TIM_REPORT_ABSENCE_DATA'

regards