on 07-21-2013 9:13 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try in FM: HR_GET_ESS_SUBTYPES_WEB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.