cancel
Showing results for 
Search instead for 
Did you mean: 

Defaulting Reminder Date in Infotype 0019

Former Member
0 Kudos

Experts,

We want to default the reminder date in Infotype 0019 only for one country, don't want to touch the configuration because it is going to affect other country employee as well.

Can this be handled in dynamic action.

Below is the current dynamic action for Infotype 0019 which will be created whenever Infotype 0016 is created with specific values. Reminder date has to be 15 days prior to Date Of Task:

Highlighted part though is not working

Any advice ?

Thanks,

Sriram

Accepted Solutions (1)

Accepted Solutions (1)

jimso101
Active Contributor
0 Kudos

Hi Sriram,

For IT0019 there are opertaions which you can use to increase or decrease date values.

Its using P0019-VTRAN,P0019-VTRZH and P0019-VTROP.

There are many threads explaining the same.Here are a few listed below.

Here is the note on it..

Special feature with 'Monitoring of Dates' infotype (0019)

For the 'Monitoring of Dates' infotype you can add or subtract a number of time units to/from an initial date. The time units Days (010), Weeks (011), Months (012) and Years (013) are supported. The time units are specified in table T538T (Units of Time/Measurement Texts). The number is assigned to field P0019-VTRAN, the time unit to field P0019-VTRZH and the operation (+ or -) to field P0019-VTROP. Before to field P0019-TERMN you must assign an initial date for the calculation.

Example:

I INS,0019,30

W P0019-TERMN=P0028-BEGDA

W P0019-VTRAN='1'

W P0019-VTRZH='013'

W P0019-VTROP='+'

For the start date (P0028-BEGDA) of the Internal Medical Service infotype (0028) with operation '+' (P0019-VTROP) the number (P0019-VTRAN) of a certain time unit (P0019-VTRZH) is added according to the table Units of Time/Measurement Texts, in this case this means plus one year.

Posted the above details from

VTAN,VTRZH in dynamic actions - Toolbox for IT Groups

Hopefully you can try with these details and let us know.

Thanks & Regards

JIm

Former Member
0 Kudos

Hi Jim,

Thanks for the explanation. It was very help.

However have one doubt, the functions P0019-VTRAN, P0019-VTRZH and P0019-VTROP is it applicable only for Date Of Task field in Infotype 0019.

My requirement is Reminder date should be 15 days before the date of task. I know it can be achieved in config but this is specific only to one country so changing config will affect overall.

This is my dynamic action so far:

By the above dynamic action only Date of Task is getting updated and not Reminder Date.

Thanks,

Sriram

jimso101
Active Contributor
0 Kudos

Hi Sriram,

Please try with P0019-MNDAT=P0016-CTDET

Since P0019-TERMN is a field within the same infotype, i doubt whether system will be able to fetch that value and pass to other field in the same infotype. Anyway TERMN and CTDET should hold same value so please try with above statement.

Thanks & Regards

JIm

Former Member
0 Kudos

No Luck

Thanks,

Sriram

jimso101
Active Contributor
0 Kudos

Just check whether the same logic is working for TERMN field . Then i think it might only work for that field alone.

If that's the case you will have to go via routine creation.The coding for routine is explained in the first link mentioned in previous post.

Thanks & Regards

JIm

Former Member
0 Kudos

Hi,

Jimson is right. Fields VTRAN, VTRZH and VTROP are only supported for TERMN field. The code is in form interpret_vartr in include MP001940. Here's a screenshot:

Try this sequence of dynamic actions:

00160010PT001P-MOLGA='32'
00160012PP0016-CTTYP='02'
00160014IINS,0019,01/D
00160016WP0019-TERMN=P0016-CTEDT
00160018WP0019-VTRAN='15'
00160020WP0019-VTRZH='010'
00160022WP0019-VTROP='-'
00160024PT001P-MOLGA='32'
00160026PP0016-CTTYP='02'
00160028ICOP,0019,01/D
00160030W

P0019-MNDAT=P0019-TERMN

Answers (4)

Answers (4)

Former Member
0 Kudos

Closing this thread as we were able to convince the client to manually enter the reminder date.

Former Member
0 Kudos

Have you tried the dynamic action sequence given in my post? It works like a charm and would save users from manual labor.

Former Member
0 Kudos

No it is not working...both the Date of Task and Reminder Date are the same when we execute the dynamic action but my requirement is Reminder Date should be 15 days prior to Date Of Task.

jagan_gunja
Active Contributor
0 Kudos

You should not need the second 'I' with COP, 0019.  Try this:

0016                                       06           10           P             T001P-MOLGA='32'

0016                                       06           12           P             P0016-CTTYP='02'

0016                                       06           14           I               INS,0019,01/D

0016                                       06           16           W            P0019-TERMN=P0016-CTEDT

0016                                       06           18           W            P0019-VTRAN='15'

0016                                       06           20           W            P0019-VTRZH='010'

0016                                       06           22           W            P0019-VTROP='-'

Former Member
0 Kudos

My apologies! You are right.

Well, you can only achieve this calling a routine or through user training. You have gone with the second option which is perfectly fine.

Former Member
0 Kudos

Hi Sriram,

yes, you can do default the IT 0019. check the below document for reference:

Best Regards,

Praneeth kumar

ShrutiJoshi
Active Contributor
0 Kudos

Hi Sriram

Dynamic action will not allow you to simply subtract the dates and update them. You can ask your abap consultant to write a subroutine that will do the date subtraction and assigning the new date to IT0019. You can then call this subroutine from your dynamic action.

jagan_gunja
Active Contributor
0 Kudos

Repeat the lines required for the condition when country is not 32 or some other as per your rules.