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

REG : Issue fetching the recreation leave balance.


Hi SAP Gurus,

I have a requirement where in I need to fetch the Remaining time quota for an employee for Annual Leave (AQ 60).

I found a field in P2006-ANZHL, but this field gives the total time evaluated, not the time remaining.

When I went to tcode PT50, I am able to see the remaining time as well as the total time (ANZHL).

Do we have any FM or table which stores the remaining time quota. As we need it to display on the WD screen.

Also,

We also want a check wherein, if the Annual Leave (AQ 60 ) is greater then 40 days, error should be populated.

I am new to HR so please help me in getting this done.

Please provide sample logic too if possible as as per I know, time displayed will be in Hours, need to convert it into days and then validate.

Waiting for your valuable feedback.


Regards,

Aakash Awasthi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Sep 24, 2014 at 03:24 PM

    HI Aakash,

    Are you running time evaluation and there you want to crossscheck remaining balance of Time quota against quota type 60?

    If yes then use the below operation in your PCR and inser after QUOTA function with P2006 function.

    HRS=FRXXC (XX=60)

    Regards,

    Sankarsan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 24, 2014 at 01:31 PM

    Hi

    Please try with PT90 and PT_QTA10.

    Thanks,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2014 at 07:40 PM

    Hi Santosh and Sankarsan,

    We are creating a webdynpro view, where in I need to display the remaining leaves absence quota (AQ 60) that we see in PT50.... Is there any table or FM from which I can read this value as per abap perspective ??

    Also there is a validation where we need to check the employees Annual leave shud not be greater than 20 days....

    Now this too we need to check...as all the time data is in hours and we need to convert it into days and validate.

    Can you guys provide the sample logic for the above two scenarios... ??

    Regards,

    Aakash Awasthi

    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.