cancel
Showing results for 
Search instead for 
Did you mean: 

EHP5 Leave Request Time Accounts

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

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'.

Former Member
0 Kudos

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

siddharthrajora
Product and Topic Expert
0 Kudos

can you set in this in the badi and use mod D and verify?

and verify the customisation in table V_T556A_WEB.

Former Member
0 Kudos

Siddharth,

No I can't set the date IM_ENDDA in badi. I did verify V_T556A_WEB and looks good. We are able to retrieve all records of Absence Quotas when we use old JWD Leave Application. Do you think we may need to open a OSS message for this issue?

Thank you,

Bobby

siddharthrajora
Product and Topic Expert
0 Kudos

yes raise it for them, But what mod you set for HR_GET_QUOTA_DATA, You just need to set MOD D and verify and no changing of endda etc, Please can you try and let us know?

can you please apply the note 1596290 too

Edited by: Siddharth Rajora on Dec 6, 2011 5:48 PM

Former Member
0 Kudos

Yes, Siddharth. I tried setting mode to 'D' but enda is always set to same as im_begda which is current date. So it always fetching current active record instead of all. In debug mode when I change it to 123199, I am able to display all for time accounts in Leave Request.

Thank you,

Bobby

siddharthrajora
Product and Topic Expert
0 Kudos

can you please apply the note 1596290 too

Former Member
0 Kudos

I applied this note yesterday. After applying, it even stopped getting current active record. Then I had to Undo the note to get atleast current active record. I am expecting SAP to release another correction it.

Thanks,

Bobby

siddharthrajora
Product and Topic Expert
0 Kudos

Note will make sure that this picks the current record based in key date

also it does this!

CALL METHOD account->get_time_accounts.

Now, one of the parameters is corrected as below:

> im_endda = im_begda

Former Member
0 Kudos

IM_BEGDA is having current date.

Former Member
0 Kudos

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

Former Member
0 Kudos

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