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: 

In which way i can know that a job is running In background or foreground?

Former Member
0 Kudos

Hi,

In which way i can know that a job is running In background or foreground? please tell me...

or a report is in background or foreground..

Thanks ,

Arya

1 ACCEPTED SOLUTION

former_member190578
Participant
0 Kudos

Systemfield: SY-BATCH

If SY-BATCH eq 'X'........

= the ABAP program is running in the background

....., otherwise space

5 REPLIES 5

Former Member
0 Kudos

check tranx sm37 to know all background job details

refer link

http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a8009505211d189550000e829fbbd/frameset.htm

0 Kudos

Hello Aryabarta,

All the job runs in back round. Did you mean to ask how to know if the job is active? If so you can use the transaction SM37.

Regards

Farzan

Former Member
0 Kudos

Check the below code in the program for background processing...

IF sy-batch = 'X'.

endif..

former_member190578
Participant
0 Kudos

Systemfield: SY-BATCH

If SY-BATCH eq 'X'........

= the ABAP program is running in the background

....., otherwise space

Former Member
0 Kudos

solved