cancel
Showing results for 
Search instead for 
Did you mean: 

How can an absence deduct from 2 different Absence Quotas

former_member193210
Active Contributor
0 Kudos

Some of our employees are entitled to a fixed number of Special Leave days each year, but these must also be deducted from their Sick Days Quota.

We had set-up the Special Leave Absences so that they would deduct from the Sick Days Quota and created "counters" to make ensure that no employee could take more than allowed, but this solution has many drawbacks.

Through PCRs, I can generate an Annual Quota Allowance for these Special Leaves, and I can generate the Special Leave Time Type when I process the absence, but I haven't found a way to deduct the Quota (other than reducing the initial allowance).

I have tought of using the "Sort all other quota types in ascending order" of the Deduction Rules for Absence Quotas, but the deduction from the Sick Days Quota must be done from Quota 10 (Current Year's Allowance) or from Quota 12 (Carry-over from previous years), in sequence, but not from both.

Any suggestions ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rémi,

I hope I understood your question! what about a PCR like this; lets say you have the amount of hours deducted from "special leave" in a time type in daily balance 9999

presudocode:

funciton P2006

...IF OUTAQTYP = 01 (quota shared)

.......IF D9999 > 0 (there was an special leave today)

...........UPDTQA01 (update the quota with D9999)

your special leave shouldnt have been customized to deduct from quota, it will be done in the PCR

Answers (3)

Answers (3)

Former Member
0 Kudos

table v_556r_b

former_member193210
Active Contributor
0 Kudos

Table view V_556R_B enables the sequential deduction from Quotas.  For example, for an absence, take it from Quota 10, and if that one is empty take it from Quota 12.

What was needed was for an absence to be able to deduct from 2 Quotas simultaneously.

The work around was to create PCR to generate "negative allowances" for the second Quota during Time Evaluation on the days where these Special Sick Leaves were entered, and to generate an Error during Time Evaluation when the employee no longer has enough "Special Leave" Quota to cover the day's absence.

harishtk1
Active Contributor
0 Kudos

Remi,

Coincidentally, only today I have been given this exact same requirement, and I had just reached the conclusion that it is not possible by standard means, when I saw your post.

Would you please be able to spell out the work around you have created to meet this requirement? Do you mean to say, you simply reduce the total entitlement of the other quota by the number of hours Special Leave taken on each occasion?

Many Thanks.

former_member193210
Active Contributor
0 Kudos

Absence 1234 must impact Quota A and Quota B.

Standard configuration is used for the first (main) one.

For the second one, which I call a secondary quota, table view V_T559E is used to identify the Time Type that will affect the Quota.  On the first validity date of the quota, that Time Type is used to create the Allowance.  On the days where Absence 1234 exists, that same Time Type is generated with a negative value, through a PCR.  An other PCR will generate an error during Time Evaluation if the value of the Time Type is greater than the Quota Balance left.

harishtk1
Active Contributor
0 Kudos

Thanks for that Remi.

I am also toying with the idea of Letting it reduce from Quota A in the standard way, and simultaneously, via dynamic action or user exit, create a record in IT 0416 to reduce Quota B. So coupe of ideas to work around, We will see what happens.

Former Member
0 Kudos

Hello,

The standard solution does not provide the capability to reduce 2 quotas simultaneously. In the US, there is also the requirement to reduce 2 quotas simultaneously for a federal regulation (FMLA) and the standard solution is that an additional workbench was created that requires configuration and management. This workbench requires that an administrator selects recorded absences that reduce the FMLA balances using the workbench. If you are in the US, you might think of "using" the FMLA workbench to support your requirement - be aware that the workbench is designed to support this US FMLA legal requirement and that your use of the tool might be considered a "work around".

One possible solution might be to create an additional attendance type, which is associated with an attendance quota that mimics the absence quota. This attendance type could be created using a dynamic action (or a user exit) when the orignial absence record is created,

former_member193210
Active Contributor
0 Kudos

To Frederico:

Operation UPDQT will only affect the Quota Allowance (positively or negatively), not it's use.

To Consultant SAP HR:

The Deduction Rule for Absence Quota (table view V_556R_B) only allows to take from one Quota, in the defined sequence. We already use it to start taking the absence from the "current year" quota before going into the "reserve" quota.

To Hillary:

I may ask our ABAP ressource to look at the american FMLA workbench in order to create something for us, but I'd like to find a solution that would not require any ABAP.

As for the solution of creating a second absence dynamically, that may create more problems in Time Evaluation (2 absences on the same day) and in Time Reporting, and getting the Absence to generate a secont Time Type will probably have the same effect since an Absence will impact the Quota upon it's creation while a Time Type can only impact the Quota Allowance (and not it's use).

Former Member
0 Kudos

Did u check table V_556R_B, absence quota and deduction priority?