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 know if it is a background job

david_fryda2
Participant
0 Kudos

Hi,

I wrote a program that can be run as a background job or directly.

How can I know if the program was run as background or not ?

Thanks.

Regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

check field SY-BATCH

3 REPLIES 3

Former Member
0 Kudos

check field SY-BATCH

Former Member
0 Kudos

Look at the system data :

sy-batch

It is equal to 'X' in background mode. Space in normal mode.

Regards,

Mathieu

0 Kudos

Thanks guys for the quick answer.

Regards.