Application Development and Automation 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: 
Read only

Variants changing values dynamically

Former Member
0 Likes
363

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?

2 REPLIES 2
Read only

Former Member
0 Likes
323

You could create entries in TVARVC table, read and write those from within your program.

Read only

bbalci
Contributor
0 Likes
323

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.