cancel
Showing results for 
Search instead for 
Did you mean: 

Retirement Age

Tarun
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

regards

TS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use IT0041 and one of the date type to calculate the date of retirement. Also, you can use dynamic actions during the hirirng action to calculate this date as DOB + 58 yrs.

Hope this helps.

-Akshay

Tarun
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI Akshay,

Thanks for the reply.

If i use IT041 then do i need to manually feed the date there? If yes, then it is not accepatable to the client. He wants that the retirement age should automatically calculated on the basis of DOB.

Plz suggest.

regards

TS

Former Member
0 Kudos

Hi,

As mentioned in my previous post, you can use dynamic actions to populate this date automatically when a new employee is hired.

Let me know if you need any further info.

-Akshay

Tarun
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi akshay,

I have worked on dynamic action. Plz help me with this.

regards

TS

Former Member
0 Kudos

Hi,

First check whether IT0041 is already created using dyanamic actions before IT0002 is reached in your hiring action sequence. If it is created, then insert the following commands in your dynamic actions config table:

0002 04 10 *** CREATE INFOTYPE 41 WHEN HIRING ****

0002 04 11 P P0000-GBDAT<> PSAVE-GBDAT

0002 04 13 I MOD,0041,,,,/D

0002 04 14 W P0041-DAR01='06'

0002 04 15 W P0041-DAT01=P0002-GBDAT

0002 04 16 W P0012-VTRAN='58'

0002 04 17 W P0012-VTRZH='013'

0002 04 17 W P0012-VTROP='+'

This will save the date on date type 06 with a date 58 years in furture.

Hope this helps.

-Akshay

Tarun
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI Akshay,

Thanks a lot for the detailed expalination.

What i have understood from the last reply is that, i need to insert infotype 0041 before IT0002 in my hiring action. Is this correct?

secondly, as i have not created any dynamic action so as per my knowledge this config is to be done in Table T588Z. please correct me if im wrong.

Thanks a lot.

regards

TS

Tarun
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Akshay,

I have created the below dynamic action for my requirement mentioned above.

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

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

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

0002 06 99 W P0041-DAR01='06'

0002 06 100 W P0041-DAT01=P0002-GBDAT

0002 06 102 W P0041-VTRAN='58'

0002 06 103 W P0041-VTRZH='013'

0002 06 104 W P0041-VTROP='+'

But the issue is that, the system is saving the same date i.e DOB in infotype 0041. It is not adding the 58 years to the DOB. Please check the action and correct me.

regards

TS

Former Member
0 Kudos

Hi,

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 98 F GET_DATE(ZGETDATE)

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.

-Akshay

Answers (0)