cancel
Showing results for 
Search instead for 
Did you mean: 

maternity leave shud dispaly to only female employees

Former Member
0 Kudos

hi all ,

in portal in the leave request  male employees are also able to see maternity leave ...how to restrict this leave for them ...as male employess  shud not get tat MATERNITY leave in the drop down ....i made in r3 the settings from infotype 80 .... wen we book leave for female employees ..automatically it will update in 2001 infotype....if we book for male employee it is throwing error ...only female employees are eligible to apply this leave.....then how to restrict this leave for male employees from portal ...as we have set the condition in the system ....from the date of leave applying they can book continuously 120 days from portal ...above tat the system will throw the error message as only 120 days is allowed for maternity leave ...

and also  throw some info on Indian maternity act how it will play a role in sap .......is maternity leave is common to all companies i.e 120 days

Regards,

JWALA

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I think we can set up 2 group (Male and Female) . After that, we use features (PE03) WEBMO to set up type of group. Finally, we set up type of leave for each of group.

Hope it useful!

Yours sincerely,

Minh Khoa

siddharthrajora
Product and Topic Expert
0 Kudos

there should be two pronged approach

One to hide the leaves in dropdown for the male employees, this will required modification of standard code as indicated above in FM HR_GET_ESS_SUBTYPES_WEB.

or second one, You show the leaves as it is but do a check on gender when they apply the leave through BADI PT_ABS_REQ and call a exit or method to do the check, throw an error if he is not allowed to apply.

http://wiki.sdn.sap.com/wiki/display/ERPHCM/Validations+for+ESS+Leave+request

Former Member
0 Kudos

there is a table (I forgot the name) where you can designate certain leave types to be available in ess. if you remove maternity leave from here all employees will not see it in ess.

The reason am suggesting this is : inthe past I have seen that leave type maternity leave is usually for prolonged periods and as such is governed seperately in the backend instead of through ess.

Should your client be amicable to this solution,.. it could be a quick win for you.

else you need to use code to restrict display of maternity leave types to female employees only.

cheers

Former Member
0 Kudos

Try in FM: HR_GET_ESS_SUBTYPES_WEB