on 02-11-2010 10:19 AM
Hi,
I am writing rule to check on child's age to get school fee allowance.The requirement is the child's age must be 4-18yrs old only.And the allowance amount must be multiplied by number of kids.Please help.
TQ
Hi TQ,
I don't think you can achieve this via PCR.
Please try writing a custom function.
See the link below:
http://wiki.sdn.sap.com/wiki/display/ERPHCM/CreateaCustomPayrollFunctionUpdatingZL+Table
Your function should involve the following lines:
LOOP AT P0021 WHERE FAMSA EQ '02'(or whatever number is for your child subtype)
and begda le aper-begda
and endda ge aper-endda.
L_AGE = SY-DATUM - P0021-FGBDT.
IF L_AGE LT 18 AND L_AGE GT 4.
......
ENDıF.
ENDLOOP.
Regards,
Dilek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.