cancel
Showing results for 
Search instead for 
Did you mean: 

REG : Issue fetching the recreation leave balance.

Former Member
0 Kudos


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

View Entire Topic
Sanky
Active Contributor
0 Kudos

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