Application Development 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: 

Background Report Program with Variants to be Overwritten

Former Member
0 Kudos

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.

Thanks

K.Nadesh Kumar

2 REPLIES 2

jordi_escodaruiz
Active Participant
0 Kudos

Hi:

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.

Former Member
0 Kudos

hi nadesh,

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.

Regards

Abhinesh