Skip to Content
avatar image
Former Member

Defaulting Reminder Date in Infotype 0019

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

IT0019.jpg (24.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Jun 04, 2015 at 04:10 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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:

      0016 00 10 P T001P-MOLGA='32' 0016 00 12 P P0016-CTTYP='02' 0016 00 14 I INS,0019,01/D 0016 00 16 W P0019-TERMN=P0016-CTEDT 0016 00 18 W P0019-VTRAN='15' 0016 00 20 W P0019-VTRZH='010' 0016 00 22 W P0019-VTROP='-' 0016 00 24 P T001P-MOLGA='32' 0016 00 26 P P0016-CTTYP='02' 0016 00 28 I COP,0019,01/D 0016 00 30 W

      P0019-MNDAT=P0019-TERMN

  • avatar image
    Former Member
    Jun 04, 2015 at 05:16 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2015 at 05:18 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 05, 2015 at 05:01 AM

    Hi Sriram,

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

    Auto Updation of Date Specifications and Mail Generation

    Best Regards,

    Praneeth kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 10, 2015 at 02:52 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.