cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Leave Request: Strange Occurence with Absence Types

Lukas_Weigelt
Active Contributor
0 Kudos

Hello Experts,

Recently we have started to implement the SAP Leave Request for our ESS. Everything works fine so far, the only thing that caught our attention when testing was the following:

We have restricted the amount of selectable absence types for the web-dynpro to a total of five via SPRO. Those five Absence types work with the same WEBMO and the same MOABW. Two of those five absence types should only be selectable by users who are part of a certain MAKrs. In this case one absence type for employees and one for officials. We did not yet adjust anything considering this requirement. However, when testing the frontend, an employee can only select his required absence type, the one for officials is hidden/can't be selected; this is exactly how it should be. BUT an official can select both absence types, the one for employees should not be selectable.

Any ideas why this happens/where to look?

We use a copied/adjusted version of 12300111 for our workflow (not sure whether this is important, it is my udnerstanding the workflow isn't started yet when merely selecting absence types). And we are using BADI PT_GEN_REQ with enhanced methods CHECK_SELECTED_NEXT_PROCESSOR, SEARCH_FOR_NEXT_PROCESSOR and FILTER_NEXT_PROCESSOR. Both of this shouldn't influence the web-dynpro select-options though, please correct me if I'm wrong here.

best regards, thanks in advance

Lukas

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

Table from where the absence types comes is v_t554s_web

and there is a setting called

Employees Not Permitted to Submit Requests

Specifies whether employees are permitted to submit requests for each type of leave.

Use

Select this indicator if you have a type of leave that you want to be display-only in the Web application.

Example

You want absences of the type Illness with doctor's certificate to be displayed for employees' information.

In this absence type wont be shown in dropdown., Please check your settings again.

Lukas_Weigelt
Active Contributor
0 Kudos

Dear Mr. Rajora,

thanks for your quick response. However, the dynpro-table which is configured via SPRO was already known to me and doesn't solve the problem of wanting to "distinguish" absence types between MAKrs.

Meanwhile I checked with our PT-Team, they told me with our system-configuration there is no way to do so via customizing. The Strange Selection-Occurence appereared due to a certain rule for a time-contingent. If it wasn't for this, every MAKrs would see the same absence types...Thus the one absence type not seen by MAKrs(which we wanted that way) employees was mere luck.

In another thread you posted in I found this link http://wiki.sdn.sap.com/wiki/display/ERPHCM/Validations%2bfor%2bESS%2bLeave%2brequest we will probably try this then. I'll post again when the problem is solved.

Regards,

Lukas

Answers (2)

Answers (2)

Lukas_Weigelt
Active Contributor
0 Kudos

CLeaning up old posts.

PT_ABS_REQ did the trick. Cheers.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can use badi thats the best possible option ie from badi you can call user exit validations like filtering the absences etc

PT_ABS_REQ,