Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Absence deduction during bank holidays

Former Member
0 Kudos

Hi experts,

I have a big problem with quota deduction with absence (holidays) when it is a bank holiday. The problem is that some employees have a work schedule that they must work some bank holidays. The customer rules if the employee wants to take holidays during these bank holidays (bank holidays that the employee works) are:

If they book a single vacation day on a bank holiday, it should be deducted in quota. If they book a vacations period including a bank holiday, then that day should not be deducted in quota (Infotype 2006).

The book of holidays are done from webside portal; so, for doing that an user-exit was done (to modify IT2001); Basically, that user-exit insert/modify in PA2001, PA2006 and PTQUODED the entries neccesaries to deduce 1 day from the Absence Quota.

As I thought that this user-exit was a bit dangerous for just updating important tables without letting the standard does the update... I just checked how the standard works in back-end (the user-exit has the filter using sy-binpt, so if we just update directly from PA30 the user-exit does not do anything), and when I recorded an absence in a bank holiday for that kind of employee that absence deduces one day from Absence Quota (so it works perfectly without user-exit).

Seeing that the standard worked properly I decided to disable the user-exit and then I made some tests recording the absence from Portal side (webservice). The point is that when the recording is made from Portal the absence is recorded but without deducting day from Absence Quota (the day was a bank holiday that the employee works).

The behaviour should be the same from portal as it calls the HR_MAINTAIN_MASTER_DATA function with the value of IT2001. I have checked also BADis related to Quota deduction but there are no one active for that customer, so I am a bit lost in that issue. Could you please shed some light on this problem?

Thanks in advance,

Pablo del Pino

0 REPLIES 0