Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dynamic actions

Former Member
0 Likes
541

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
516

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))

3 REPLIES 3
Read only

Former Member
0 Likes
517

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))

Read only

0 Likes
516

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

Read only

0 Likes
516

Hi,

Check the reply i have given in HCM forum in the link below,

Looks like the same problem that i had. If you are unable to solve it give your subroutine code (if possible) and may be someone can find out any possible solutions.

Thanks,

Prasath N