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: 

sy-batch is initial while running in background

former_member264462
Discoverer
0 Kudos

Hi Team,

I am running VL10C in background, but sy-batch is not set to 'X'. Based on sy-batch i have to do some validations.

Kindly let me know if there is any alternative to identify whether the program is running in background or foreground?

Thanks.

1 REPLY 1

waatscht110
Discoverer
0 Kudos

Hello,

For all who faced the same problem (like me).

In VL10C selection screen/user role: if the parameter "list of blocked documents" is set, the functions are called via "asynchronous RFC", which causes a new dialog mode with clear sy-batch.

You cannot rely on sy-batch to be sure that you are actually in background mode. Therefore, an additional check for GUI availability or similar is required.

BR
Chris