on 12-02-2011 9:08 PM
In Leave Request Overview screen, Time Accounts Overview is displaying only current year balances. I checked employee's Absence Quotas infotype and I do see we quotas have been maintained for 01/01/2011 thru 12/31/2011 and 01/01/2012 thru 12/31/2012. Time accounts overview in Leave Request is only displaying 01/01/2011 thru 12/31/2011. What could be the reason? Please advise.
Thank you,
Bobby
Please read through the documentation of the Function Module
HR_GET_QUOTA_DATA to select the proper mode. You can modify the
mode in the BADI according to your business requirements.
The relevant details are as follows:
BADI: PT_ABS_REQ
Class: CL_PT_ARQ_TIMEACCOUNTS
Method: GET_REMAINING_QUOTA_FOR_PERNR
METHOD if_ex_pt_abs_req~get_mod_and_qtype.
ex_mod = 'B'. // Here you can change Mod
ex_qtype = 3.
ENDMETHOD.
This is the method of determining which data should be read.
The options are as follows:
Data is read from the cluster
Data is read from the infotype record
Data is read from a simulated time evaluation run
You can use parameter MOD to determine which data you want to
base the calculation on.
By default we are populating it as 'B'. While this standard setting
works for most of our customers it might be insufficient for others.
You can change the way the function module HR_GET_QUOTA_DATA is called
by using the BAdI customer exit method
GET_MOD_AND_QTYPE (class CL_PT_ARQ_REQ_EXIT)
In your case it should be 'D' or 'E'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Siddharth for your response.
As per your suggestion, I debugged method GET_REMAINING_QUOTA_FOR_PERNR and tried changing Mode to 'D' and 'E' but still i am getting only one Time Accounts record which is valid for current year. I am not getting the record 01012012 - 12312012 into table ABWKO after calling FM HR_GET_QUOTA_DATA'.
I executed old leave request application which is getting both records to find difference while calling fm HR_GET_QUOTA_DATA'. I do see there is a difference in IM_ENDDA.
for Leave Request AWD, IM_ENDDA is set to 12/05/2011 which I am thinking why it is bringing only current active record.
for Leave Request JWD, IM_ENDDA is set to 12/31/9999 and we are able to fetch all records into table ABWKO.
IM_ENDDA is a parameter for this method CL_PT_ARQ_TIMEACCOUNTS and not sure where is this set and how this can be changed. Appreciate if you kindly advise.
Thanks,
Bobby
Hi Bobby,
Did you check table V_T556A_WEB. Here you can define the range of date to be show it for Time accounts.
Regards
Jose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response Jose. Yes, I did look. We do have proper date ranges maintained.
Looks like this issue is specific to EHP5 Leave Request Application, not to Java Webdynpro Leave applications. Because same employee able to see multiple Absence Quotas thru Java WD leave application but able to see only one Absence Quota using AWD application.
Thank you,
Baba
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.