on 06-04-2015 6:06 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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 |
Closing this thread as we were able to convince the client to manually enter the reminder date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Repeat the lines required for the condition when country is not 32 or some other as per your rules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.