Beruflich Dokumente
Kultur Dokumente
dynamic variant
January 4, 2010 | 2,997 Views |
Vinod Vemuru
more by this author
Retagging required
vinod vemuru2
share 0
share 0
tweet
share 0
Follow
Whenever we start a program in which, selection screens are defined, system displays a set of input
fields based on which data is selected, manipulated and displayed or updated. To select the required data,
we will enter appropriate inputs in the selection screen. Variant maintenance allows us to save these set of
input values for programs that we often start with so that we need not enter all the selection screen values
each time we run the program.
There are situations where we may not run the program on adhoc basis but we may need to schedule the
job with a variant.
If we have input fields like date, time etc we may need these field values to be populated dynamically.
This blog discusses on how to create a dynamic variant and set up a batch job with this dynamic variant.
First fill in all the selection screen data and save the data as variant.
Give some variant name and description. Select the check box corresponding to the Date range as selection
variable (L). Next press push button selection variables in the tool bar.
Click on the yellow light corresponds to column D(Stands for Dynamic). It will become green colour.
Then press the down arrow at the end of the date range.
It will display a popup for various calculations. Select any one based on the requirement.
E.g. We need to run a report for past one weeks data. So I have chosen to calculate the low date as
7 days prior to the run date and high value as the run date of the report.
When we press enter next screen will appear like below with low and high values. Now press save, you
will go back to the previous screen.