Skip to Content
author's profile photo Former Member
Former Member

Absence days caliculation based on working days HR ABAP

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 08:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 09:17 AM

    Hi,

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

    Cheers,

    Brahma

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 09, 2008 at 09:21 AM

    hi,

    take a look at these FMs.

    HR_P_GET_ABSENCE_COUNTER

    HR_QUOTAS_DEDUCTED_BY_ABSENCE

    PGET_ABSENCES

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 09:23 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 03:44 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.