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

Debug during background processing

Former Member
0 Likes
1,397

Hey

i hav an doubt...

suppose to any Zprogram am executing in background mode and during this i want to debug..

is it possible ??

I want to Debug my Bank Payment Advice Script as well as its Driver program used in Cheque Printing

can u tell me how to debug it ?

evenif am putting break-point its not happening..B'coz we are generating spool in F110 and its run in background mode...

Is there no solution to this ????

Thanks in Advance

SATYA

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,083

Hello ,

Yes, it is possible to debug a background job.

Select the job from SM37 and enter JDBG in command prompt.

It will take you to debug mode.

Note: All the databse updates will happen again , so be careful about this .

Regards,

Sandeep

7 REPLIES 7
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,084

Hello ,

Yes, it is possible to debug a background job.

Select the job from SM37 and enter JDBG in command prompt.

It will take you to debug mode.

Note: All the databse updates will happen again , so be careful about this .

Regards,

Sandeep

Read only

0 Likes
1,083

Hi,

If you want to debug in back ground write a statement

break-point.

in your progam where ever you want.

I hope this may help you.

Thanks

Narsim.Aeda

Read only

Former Member
0 Likes
1,083

Hi,

First you need to put break point in printprogram where ever you want to stop the execution.

After in se71 give your formname and go to Utilities->ActivateDebugger

Then go to your transaction like VF03(For invoice or credit memo ) to see the print preview execute it .

When You execute it form debugging will get activated and you can see your form execution step by step .

Read only

0 Likes
1,083

>

> Hi,

>

> First you need to put break point in printprogram where ever you want to stop the execution.

>

> After in se71 give your formname and go to Utilities->ActivateDebugger

>

> Then go to your transaction like VF03(For invoice or credit memo ) to see the print preview execute it .

>

> When You execute it form debugging will get activated and you can see your form execution step by step .

Dear hari Hara,

i know this process

but it will not work in background processing

Edited by: Satyabrata sahoo on Oct 15, 2008 9:59 AM

Read only

Former Member
0 Likes
1,083

Hi,

GOTO SM51.

There choose the server in which ur background program is running. Place the cursor on the line which shows your program. Choose the menu option 'Debugging'.

Depending on your version the menu option is in different places.

If you have the correct authorizations, a window pop will pop up, with your program in the debugger.

Regards,

Omkar.

Read only

Former Member
0 Likes
1,083

Hi,

You have to debug the Background Job by using the TCODE JDBG......

Read only

asik_shameem
Active Contributor
0 Likes
1,083

Hi

Create a infinite loop in your program.

DATA flag TYPE i.

WHILE flag EQ 1.
  
ENDWHILE.

And go to SM50.

Select the program you want to debug.

Go to menu path program/session>program>debugging

There change the flag value as 1 and debug...