I have an Following Scenario.
I have an Report program with the Selection Screen displaying an Input Parameter of date type sy-datum.This particular program is scheduled as an Background Job.
Now when i execute the program in background the existing variant date must be overwritten with any new values . So please provide an solution for this.
You could proceed as follows:
In LOAD-OF-PROGRAM event, make a select to for example TVARV table, where you can define a value for your needs. Then you write this value to your selection parameter.
At the end of program execution you can write in TVARV your need value. In this way, every time the program is executed will have the last date execution as parameter.
Hope this helps.
enter date on your selection screen , then save variant.
tick the selection variable check box i.e L.
now click on pushbutton SELETION VARIABLE.
Then select type D and select the criteria current date or whatver of your choice.
if you are not clear then search for the thread "daily background job". I think you will get the answer from there.