Today I want to show you a simple way to debug a batch job. Sometimes you just want to debug some process witch default run in batch.Everything looks simple but you should notice that breakpoints sometimes don’t work in this cases. The situation can be even worst when your job run only a few seconds.
- First of all if your job works for a short time, you just should keep him work for a while. To do this you just can create an infinitive loop. So just go to your code and in property place paste:
ABAP123data v.while v <> 1.endwhile.
- Now go to transaction sm50, click on „ALL work process” and then select your process.
- At end click on Administration-> Program -> Debugging.
- After confirm the pop-up you should see debugger.