Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Sep 21, 2008 at 05:54 AM

    Systemfield: SY-BATCH

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

    = the ABAP program is running in the background

    ....., otherwise space

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2008 at 05:13 AM

    check tranx sm37 to know all background job details

    refer link

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2008 at 05:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2008 at 05:53 AM

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

    IF sy-batch = 'X'.

    endif..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2008 at 06:14 AM

    solved

    Add comment
    10|10000 characters needed characters exceeded