Skip to Content
Former Member
May 06, 2010 at 10:29 AM

leave request in ess


Hi Experts,


My requirement is some combination of leave types cannot be allowed in consecutive days. for example if the employee already applied a casual leave from 10 may 2010 to 12 may 2010 and also he applied an optional holiday on 13 may 2010.

and now he is trying to apply again a casual leave on 14 may 2010 then we need to pass an error message saying that

the combination of cl-oh-cl is not allowed.

actually this can be achieved through badi pt_abs_req. but my question is if the leave approves it will stored in 2001 infotype from here we can retrive the data easily but where can we get only applied leaves data that means the leave applied but the manager doesn't take any action either approved or rejected?

and also whenever the leave applied the data is getting stored in PTREQ_ATTABSDATA but after approval also the operation is remaining same INS only.

so how can i acheive this ? from which tables i have to compare the present dates ? moreover there might be a chance to employee that he can apply a leave after approval of previous leaves (this data will be stored in IT2001) and he can apply simultaniously that means the previous leaves not yet approved? (where this data will store?)