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: 

how to debug back ground job

Former Member
0 Kudos

hi

1. how to debug a back ground job?

2. actually if a report has a selection screen with three fields..

and i want to schedule background the report..how can i pass the values of sel screen for it?

3 REPLIES 3

Former Member
0 Kudos

Hi

Goto SM37 and see the log if any is there and based on that you can check the code.

you can't debug background job.

Create a Variant for the Program and

Schedule JOB in background:

Go to SM36 create a Job

enter Program and Variant for that program in STEP..

click on Start Condition

Click on DATE and TIME enter date scheduled Start and END times

click on Period Values

Click on HOURLY/WEEKLY etc

CLick on RESTRICTIONS also to use further criteria.

so your job will be scheduled and run as per your requirement.

and in SM37 Transaction check the status of that JOB

Check this link for scheduling jobs..

http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

Regards

Anji

Former Member
0 Kudos

Hi Tuborg,

<b>1. how to debug a back ground job?</b>

In SM37: Select the job, type JDBG in the OK-code and press enter. This can be used for both completed jobs and jobs to be processed (just make sure you have enough time to debug before the job actually starts). Breakpoints set in the job flow works.

<b>2. actually if a report has a selection screen with three fields..

and i want to schedule background the report..how can i pass the values of sel screen for it? </b>

Assign default values to the selection-screen in the INITIALIZATION event (or) create a variant for the selection-screen and use this in SM35 to create a job.

Thanks,

Vinay

Former Member
0 Kudos

thanks to both awarded!