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: 

How to judge a program is running in background or frontend?

Former Member
0 Kudos

Dear Gurus:

We create some enhancements to limit user input in VA02, and we don't wanna those enhs make effect when we change the salesorder by BAPI or BDC.So, the question is, how to judge a program is running in background or frontend?

Thank you for answering.

B.R.

3 REPLIES 3

i048168
Advisor
Advisor
0 Kudos

Hi,

There is a SY variable which is used to check whether the program runs in Background or Foreground namely SY-BATCH. You just try this variable.

Regards

Vadi

abdul_hakim
Active Contributor
0 Kudos

hi

use the system variable sy-batch.

for eg:

if sy-batch eq 'X'.

endif.

Cheers,

Hakim

mark all useful answers

Former Member
0 Kudos

Thanks for your answers, and i found sy-binpt feeds my need