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

Batch Job

Former Member
0 Likes
474

Hi All,

I have a batch job which gets failed.I want to know how to debugg the batch job.

Regards,

Rahul.

3 REPLIES 3
Read only

former_member645692
Participant
0 Likes
434

hi,

You can debug it as a normal report program by setting the sy-batch as Initial at runtime.

Read only

Former Member
0 Likes
434

Hi Rahul,

Does your batch job contain a program run in background?

If yes, then you can debug this only after the job has finished execution.

This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X'.

  • Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER

  • You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.

Hope this helps.

Thanks,

Anusha

Read only

andreas_mann3
Active Contributor
0 Likes
434

try to debug from tcode sm50

A.