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

background variant

Former Member
0 Likes
616

Hi all,

I am working on a program where i need to change the variable values in the program based on the variants of the selection screen . The problem here i am facing is i am getting the variant name but i couldnt determine whether thats a foreground or background variant ,as my condition is based on foreground or background.

for eg : If my variant is a foreground variant the date calculation changes and if its background the calculation is different . so please advice on this .

Thanks & Regards,

Magesh anandan .

3 REPLIES 3
Read only

Former Member
0 Likes
494

If syst-batch = 'X'........

Regards,

John.

Read only

Former Member
0 Likes
494

Use VARID-ENVIRONMENT field to determine whether the variant belongs to Foreground or background or both. For that hit VARID table based on the Program name and variant name.

Regards,

Kiran Bobbala

Read only

Former Member
0 Likes
494

Hi,

You can use system variable sy-batch for checking whether program is runing in background or foreground.

Thanks.

Sriram Ponna.