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

Get vacation quota

hi guys,

i need to know if an employee has enough quota to have vacations, i know that that info comes from it 2006, my problem is that with out time managment, every employee earn vacation days during the year.

so sometimes in it 2006 you will have enough quota, but if u try to give them vacation by pa30, sap return a message that the employee does not have enough vacation quota.

i need some function that returns me the real value, not the one from it 2006,

i debbuged pa30 and uses the function HR_DEDUCE_QUOTA, is there another way to get this?

tks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 09:12 PM

    This FM will give you deductions.

          pernum           = p_pernr
          sbegda           = pn-begda
          sendda           = pn-endda
          qdisded          = dedu
          record_not_found = 1
          OTHERS           = 2.

    this FM will give you accruals which get listed in PT50.

          int_pernr             = p_pernr
          int_begda             = pn-begda
          int_endda             = pn-endda
          int_cltyp             = '1'
          int_time_results      = time_results
          no_period_specified   = 1
          wrong_cluster_version = 2
          no_read_authority     = 3
          cluster_archived      = 4
          technical_error       = 5
          OTHERS                = 6.

    Other importan FM is HR_GET_QUOTA_DATA

    hope this helps.


    <i><b>Reward points for each helpful answer.</b></i>

    Add a comment
    10|10000 characters needed characters exceeded

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.