on 09-24-2014 2:07 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please try with PT90 and PT_QTA10.
Thanks,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.