Application Development and Automation 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: 
Read only

Debugging in background

Former Member
0 Likes
1,065

Iam running a report which using PP01 transaction.when i run foreground there will be no errors and working fine.

When i run the same in background processing it throws exception like 'Runtime error RAISE_EXCEPTION has occurred'.

any one know what might be the reason?

how to debug the code when it is running batch job.

I tried with sm50 and capture job when in debug but no use.

5 REPLIES 5
Read only

Former Member
0 Likes
785

hi,

Refer to this link..[Debugging a program running in background|]

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
785

Hi,

Go to sm37. Choose the job which got cancelled. In the command bar just enter JDBG and then press enter.

Read only

Former Member
0 Likes
785

Hi,

Refer thie below thread

Regards,

Jyothi CH.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
785

PP01 is not allowed in background mode, look at OSS [Note 721791 - Dump when running a batch input session in OM|https://service.sap.com/sap/support/notes/721791]

Reason and Prerequisites

Transactions PP01/PP03 and so on expect an active SAP GUI connection.

For this reason the program terminates during the background processing.

Regards

Read only

Former Member
0 Likes
785

1. Run the specified program in the background by choosing program->Execute in Background. This step would execute the required program in background.

2. To debug the background job. Go to the transaction Sm37. You will see the job that was run under your name. Now, type ‘’JDBG’’ in command line and put the cursor on the respective job which you want to debug.

3. Now, press enter. It would directly go into the program in the debugging mode. This would now simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to ‘X’.

Now, you can debug in the same way as you do in an interactive session of running a program.

Just an extension to the above tip, you can also use the transaction SM50. After going inside the t-code, from the menu, choose Program Mode->program-> debugging.

Edited by: vinay raj on May 7, 2009 10:01 AM