cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action for Updating Relieving Date in IT0041

Former Member
0 Kudos

Dear Team,

I am trying to write a Dynamic Action for updating the relieving date automatically in Infotype 41 based on the resignation action date.

We have resignation action as 15. When this action is run, system has to check infotype 16 for employees notice period (mentioned as 1 / 3 months). This notice period has to be added to the resignation satart date and need to be updated in IT0041.

For this i wrote this. Need your inputs on how to do this.

Please suggest me the changes in this.

0000 04 40 *** CREATE INFOTYPE 41 WHEN RESIGNATION INDIA ****

0000 04 41 P T001P-MOLGA='40'

0000 04 42 P P0000-MASSN='15'

0000 04 43 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D

0000 04 44 W P0041-DAR01='I1'

0000 04 45 W P0041-DAT01=P0000-BEGDA

Kind Regards

Nag

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To default relieving date in IT0041 you want to check the Notice Period Date in IT0016 for this date you should add 3 months as the notice period is 3 months .To do this you need a program written by the HELP of the ABAPer and insert this Program using "F" in the Dynamic Action.

Best Regards

Former Member
0 Kudos

Hi Varma,

After getting the date from Function, What logic i need to write? Can you pls suggest me the same?

Kind Regards

Nag

Former Member
0 Kudos

Hi Nag,

Put this logic

0000 04 6 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D

0000 04 7 W P0041-DAR01='11'

0000 04 8 W P0041-DAT01=RP50D-DATE1

Check with your ABAPer in which Variable he is saving the Final Date(After Resignation) whether in RP50D-DATE1 or RP50D-DATE2. Use that in P0041-DAT01= Statement.

Hope this helps.

Former Member
0 Kudos

ABAP will write the logic mentioned by you in the program.That is to add 3 months to the reliew date and this program will be used in the Dynamic action.Read the example provided in table V_T588Z table go for " F1" Help in "Call a routine" and you will get a better Clarity

Best Regards,

Former Member
0 Kudos

I have used the following dynamic action for this and working fine. Function will calculate the Last working day based on the Information in Infotype 0016 (Need ABAPer Help).

0000         04           40                          * CREATE INFOTYPE 41 WHEN RESIGNATION INDIA **

0000         04           41           P             T001P-MOLGA='40'

0000         04           42           P             P0000-MASSN='15'

0000         04           43           F              GET_DATE(ZHR_RPUDRRR0)

0000         04           44           I               INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D

0000         04           45           W            P0041-DAR03='I1'

0000         04           46           W            P0041-DAT03=RP50D-DATE1

Kind Regards

NAG

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

PUT 0000 04 45 W P0041-DAT02 =P0000-BEGDA and check

makesure IT 41 to be configured from backend and when you choose 02 in IT 0014 under daytye it shld be termination or reliving.

Thanks

Edited by: Vibinsap on Mar 7, 2012 7:52 AM