cancel
Showing results for 
Search instead for 
Did you mean: 

Time account check in ESS/MSS Leave Request

Former Member
0 Kudos

Hi all,

We have the following situation in ESS/MSS leave request:

An employee has a time account for a particulat kind of leave of let's say 2 hours remaining. The time account is customized, so that it can never become negative.

  • If this employee requests any number of hours up to 2, there's no problem.

  • if this employee request more than 2 hours, an error message is displayed (not enough hours in time account)

  • if this employee requests 2 hours for a specific day, no problem. If the employee does another request for 2 hours on another day, the error message is displayed again (that is ok). However, if the employee requests again 2 hours for the same day as he requested the other 2 hours, only a time collision message is displayed. The leave request can be done. (not ok). This proces can be repeated several times. Leading to more individual documents in the ptarq database.

With running RPTARQPOST, the requests that would lead to the time account becoming negative result in an ERROR.

What we want is that the error message is already given to the employee when requesting.

Hope anyone can help!

Thanks, Marco

Accepted Solutions (0)

Answers (3)

Answers (3)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

solution is to have a check ie call a R/3 time exit in leave request badi using pt_abs_req

897623 User Exits in PT

hope this helps!

Former Member
0 Kudos

hey marco,... firstly one of the best articulated requests I have seen in sdn for a long time,..

then the problem you are facing is in fact sap std reaction to the scenario you described check std help text in img>time mgmt>time dta recording & admin --> specify system reaction to overlapping time infotypes. ....

now to be able to address your issue, ... you should be able to enahnce your leave request via exisitng badis,..

good luck.

cheers

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

mutliple request can be sent since creation is more or less SIMULATION, until the leave request is posted ie final step wherein the actual check is done for the absence quotas etc,

If your business requirement is as such that it is not acceptable to the

users then you can make the modification. In the BADI PT_ABS_REQ, the

method SIMULATE_VIA_BLOP takes care of all this calculation. It derives

which quota types to be deducted. Here you can have your custom code

implementation to influence the standard behavior.

You have read the documentation of the Function Module HR_GET_QUOTA_DATA

to select the proper mode. In your case it should be 'D', kindly check

it.

The parameter D makes it read from IT2006, There are other modes

as well, If you dont want the Quota to be displayed from 2006.