Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Hi, You need an user exit for this in ZXPADU01 and ZXPA0041. Dependend on your date type , in my example 02. Pension age in this example is '65'. IF l_p0041-dar02 EQ '02'. SELECT SINGLE gbdat INTO l_gbdat FROM pa0002 WHERE pernr EQ l_p0041-pernr AND endda EQ '99991231'. IF sy-subrc EQ 0. CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL' EXPORTING date = l_gbdat days = 0 months = 0 signum = '+' years = 65 IMPORTING calc_date = l_gbdat EXCEPTIONS OTHERS = 1. l_p0041-dat02 = l_gbdat. ELSE. Hope this helps. KR Anne-Marie van Gool
| | | ---------------Original Message--------------- From: Tan Sent: Tuesday, July 26, 2011 4:05 AM Subject: Dynamic action for calculating retirement date based on DOB Dear Experts, Our requirement is to enable automatic calculation of 60 yrs for retirement date whenever employee is hired based on date of birth in IT0002. Now to achieve this i have written a dynamic action, but unable to fetch the retirement date calculation based on DOB. Please find below the dynamic action configured so far to insert IT41 whenever employee hired and default retirement date. 81 P P0000-MASSN= 'T1' 82 P T001P-MOLGA='40' 83 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA) 84 W P0041-DAR01= 'T9' 85 I COP,0041,,,, 86 P P0002-GBAT Please help me to proceed further to meet the above requirement. Regards Tan | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Popular White Papers In the Spotlight IBM Helps Clients Exploit the Power of Cloud Computing. Click Here for IBM's Cloud Computing Virtual Briefing Center. _.____.__ |