The usage of variants in SAP ERP transactions is a functionality aimed for productivity of the user. Sometimes, this productivity can be harmed when administration of the variants becomes an extra task.
The dynamic date calculation for variants is a built-in function that our always surprising SAP ERP 6.0 has to offer in order to make variant administration a one-time task.
How to set it up?
At variant attributes screen (the screen where we generally save the variant and do not look at that “horrible chart” below), we will go and look for our date ranges field in the chart below (yay! Now we know the “horrible chart” serves a purpose).
In the column Selection variable, you would need to select the type of variable D: Dynamic date calculation.
Then, in the Name of Variable, we will select one of the many possibilities our standard SAP ERP gives us, and in even some of the case we are able to customize with rules like Current date + any given of days and – any give number of days.
How is this useful?
For example, our GRC consultant always recommends to have a Support variant for NF-e Monitor to call immediately all NF-e that have been rejected, either denied or have been processing for long elapses of time. With this variant with dynamic date calculation, you could set up a “From month start to today” dynamic date calculation to immediately retrieve NF-es for the open fiscal month.