on 11-28-2007 1:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.