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 Variant date calculation

Former Member
0 Likes
1,341

Hello everyone, please how do I create a dynamic variant using date calculation for greater than six months without using a static date? For example, anytime I run the variant / run the scheduled job  it should run greater than six months.

Many thanks

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,287

Hi,

Maintain the required months/date in TVARC table and do the logic in program to pick up date automatically.

Read only

Former Member
0 Likes
1,287

Hello,

When you save your variant you can change type of variant with dynamic date calculation:

If you use this option you will not be able to make exactly 6 month because it's a number odf days.

If you want exactly 6 months, you can:

- code it in your program as default value or put a special checkbox to determine this during execution or initialization

- create your own dynamic date calculation rule, but I know only a non standard trick to do this

Read only

Former Member
0 Likes
1,287

hi ,

follow below steps

enter selection variable D for dynamic date calculation than select name of variable

now save variant and check