cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP cannot run in Background

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

athavanraja
Active Contributor
0 Kudos

Hi,

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

Regards

Raja