‎2007 Feb 20 7:12 AM
Hi all,
In our project, a subtype in infotype 0019 is created which is named U10. The requirement is :
The moment we choose the subtype U10 in infotype 0019, the date of task or termn field should get automatically filled up with a precalculated date. This precalculated date is 10 years from the date of joining.
I have made a subroutine to calculate this date named Ztenyrs. The precalculated date gets stored in the variable RP50D-DATE1.
Now we have to write a dynamic action so that whenever infotype 19 is opened with subtype U10, the precalculated date ( RP50D-DATE1 ) should automatically get populated in the TERMN or date of task field.
Please suggest what to write in dynamic actions regarding this.
Thanks
‎2007 Feb 20 7:17 AM
For dynamic action you have to make entries in view V_T885Z
Ex: to know about the field details, press F1 on the field.
Filds: INFTY : INFOTYPE (EX. 0000)
OPERA: (EX. 04 - at the time of creation)
KENNZ : (EX. F - Call subroutine)
VINFO: (Ex. sub_confir_letter(YHR_CONFIRMATION_LETTER)) (Subroutine name (Subroutine pool name))
‎2007 Feb 20 7:17 AM
For dynamic action you have to make entries in view V_T885Z
Ex: to know about the field details, press F1 on the field.
Filds: INFTY : INFOTYPE (EX. 0000)
OPERA: (EX. 04 - at the time of creation)
KENNZ : (EX. F - Call subroutine)
VINFO: (Ex. sub_confir_letter(YHR_CONFIRMATION_LETTER)) (Subroutine name (Subroutine pool name))
‎2007 Feb 20 7:25 AM
I know and understand how and where to write these dynamic actions. But I am not able to get the precalculated date. maybe you can correct it. Heres what I write in dynamic actions:
0019 Termn 06 1 P p0019-tmart='U10'
0019 04 2 F ZHR_TENYRS(ZHR_TENYRS)
0019 04 3 I MOD,0019,WT
0019 04 4 W P0019-TERMN=RP50D-DATE1
‎2007 Feb 21 4:47 AM