In the Job Overview transaction SM37, select the job that has finished and enter jdbg in the command field. The Debugger will start. It will simulate the exact scenario with the same selection screen values, and the system variable SY-BATCH will be set to X (abap_true).