Skip to Content
Feb 14, 2014 at 11:07 AM

Problem with JOB_SUBMIT


Hi All,

My requirement is to write a report(say rep) which will always be executed in the background even if it is executed in the foreground. Now in my program I am doing a check on sy-batch and if it is false then I am doing a job_open, job_submit and job_close AND in the else part I have kept my program logic.

Now in the job_submit, I am passing my prog name(rep) but I am getting an 'invalid_jobdata' error. Does SAP allow to pass the same program name in the job_submit in which it is written. Has anyone experienced a similar situation and can throw some light on this issue. Or is there any other way to achieve this functionality.