Skip to Content
author's profile photo
Former Member

ABAP cannot run in Background

I have created an ABAP that creates 20,000 records in a custom LIS structure. When running the program interactively, the program processes correctly, generating the proper data. When the same program with same variant is submitted in the background, the job ends immediately and successfully but no processing is done. I cannot get a simple write statement to print.

What is happening? Any ideas would be greatly appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on Dec 26, 2003 at 05:54 PM

    Hi,

    If you could post your code here we may be able to help you.

    Regards

    Raja

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 10, 2004 at 06:30 PM

    Try coding in a never ending loop into your pgm at the begining of the processing e.g.

    ...

    data: f1.

    do.

    if f1 = 'X'.

    exit.

    endif.

    enddo.

    ...

    Then kick the pgm off in a background job. Once the job is running go to transaction SM51, select the server, then select your job and break into debug mode (menupath program->program->debug.

    This will bring you into your pgm at the never ending loop.

    In the debugger you can change the value of f1 to 'X' and so exit the loop and continue processing in "background" mode. Hopefully you will be able to find the problem that way.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 11, 2004 at 08:20 PM

    You can debug the job after the job has completed too-

    On SM37...click on the job and enter jdbg in the command prompt and hit enter.

    After some debugging, you will taken into program and you can check what happened.

    Regards, Pramod

    Add comment
    10|10000 characters needed characters exceeded