on 03-07-2012 6:41 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.