Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hr: code for maternity.

Former Member
0 Likes
421

hi sap,

i have a requirment on HR but honestly speaking i dont have any idea of HR.

but i have modify the current program to cater the functionality using the USER EXIT.

I have found the USER EXIT but i dont know how to write the code in HR.

Please help me out with this one:

u2022 Check if the employee is a bargaining unit employee u2013 employee sub-group = 05, G1, H1 and I1 (P0001-PERSK).

u2022 Delimit the previous maternity leave (60 days) benefit for leave type ML00 (P2001-AWART), the end date should be 31 March 2009.

u2022 ML00 (P2001-AWART) should be 90 days as from 01 April 2009. If maternity leave days number more than 90 days (P2001-ABWTG) then an error message should be generated stating the following: u201CEmployee is entitled to 90 days maternity leaveu201D and the user should not proceed processing.

IF l0001-persk = '05' OR

l0001-persk EQ 'I1' OR

l0001-persk EQ 'H1' OR

l0001-persk EQ 'G1'.

l_entitl = 90.

*

  • Maternity Change

IF p2001-subty EQ 'ML00'.

l_entitl = 60.

this is the the code for 60days so how can i achieve the above task?

can you please help with some code ?

regards,

laya.

2 REPLIES 2
Read only

Former Member
0 Likes
376

THANK YOU

Read only

0 Likes
376

You said 'thanks' 16 months after asking your question.

I thought that pregnancy lasted around 9 months... unless you are a Rhino which gestation last 16 months...