Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Retirement Age

Hi Experts,

Where i can store the retirement age of the employee. It is 58years. I want a report based on this also.

As per the requirement, 58years should be calculated automatically by the system from the DOB.





The logic seems alright to me and I cannot think of a reason why this shouldn't work.

However, the other option that I can think of is to call a sub-routine to determine the date and then pass the date to be stored against date type 06.

0002 06 96 *** CREATE INFOTYPE 41 WHEN HIRING ****

0002 06 97 P P0002-GBDAT<>PSAVE-GBDAT


0002 06 99 I INS,0041,,,,/D

0002 06 100 W P0041-DAR01='06'

0002 06 101 W P0041-DAT01=RP50D-DATE1

For this, you will need to create a program by the name ZGETDATE and include a routine GET_DATE. In this routine, you need to select the birthdate from IT0002 and calculate the retirement age and store it in RP50D-DATE1.

You might need to approach an ABAPer to do this.

Hope this helps.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question