cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Leave Request: can I change the way quota are displayed?

Former Member
0 Kudos

Hi,

I have the following question:

When posting a leave request in ESS, we can choose to open a list of available absence quota.

In this list all quota-records are shown of which the deduction-end date has not yet been reached.

Also those of which the remaining hours are zero.

In our company most quota types can be used during 5 years. This means that in the list of available quota types we see up to 5 records for each quota type, even if no remainings are available.

Is there a way of reducing the list to only those quota that still have remaining hours?

Without modifying the system.

I hope somebody can help me.

Kind regards,

Els Verkerk

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can total the absence quota using V_T556A_WEB field TOTAL absence quota

or use BADI what quota should be shown

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 you can have 'D' or 'E'.

Former Member
0 Kudos

Thanks for your suggestions. However:

1- when using totals important information gets missing for the employee because he can't see when a quota reaches the end deduction date.

2- Your suggestion to use the badi does not seem to meet my wishes: it looks like it makes it possible to choose which sources are used to calculate the quota but not to choose which lines are presented tot the employee. I would like to skip the lines with zero remainders.

As in our company most quota are valid for 5 years a long list with irrelevant information appears . The same list is shown to the manager when approving.

Do you have any suggestions on this?

Answers (1)

Answers (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

deduction end date will be shown for the latest ending date, also FM shown with MOD options is the only option without any modification or you have to build a logic in this FM

Former Member
0 Kudos

We implemented the Badi as you suggested before but we got no results.

It looks like we have to accept the situation unless we make our own modifications to the system.

But this we don't want to do.

Thanks for your suggestions anyway.