Application Development 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: 

Debug during background processing

Former Member
0 Kudos

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

Sandeep_Kumar
Advisor
Advisor
0 Kudos

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

Sandeep_Kumar
Advisor
Advisor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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 .

0 Kudos

>

> 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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

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

asik_shameem
Active Contributor
0 Kudos

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...