‎2010 Jul 30 4:37 PM
Hi All,
In the selection screen of my report i need to create variant.
I have two fields in selection parameter namely
1. Created on Date/Time(From)
2. Created on Date/Time(To)
As the program runs in background the variant must be such that once the report runs
the value of Created on Date/Time(To) must be saved to the value of Created on Date/Time(From) in the variant automatically.
Can anyone suggest me how a variant can be created to satisfy this?
‎2010 Jul 30 5:34 PM
You could create entries in TVARVC table, read and write those from within your program.
‎2010 Jul 30 6:42 PM
Hello Manipal Parkala
When a program runs in background the system field sy-batch set to 'X'.
So you can insert a code on top most of your START-OF-SELECTION block
like that :
if sy-batch eq 'X'.
Created on Date/Time(From) = Created on Date/Time(To) .
endif.
I hope it helps.