cancel
Showing results for 
Search instead for 
Did you mean: 

how to run Background Job immediately in WDA

Former Member
0 Kudos

My requiremnt is I am reading files in the SAP directory and once i got a single file I am running a backgrond report to read data from the file and create Sales Order .

I have created a background Job i am submitting the JOb using the following Pattern

CALL FUNCTION 'JOB_OPEN'

EXPORTING

JOBNAME = 'CREATE_SALES_ORDER'

IMPORTING

JOBCOUNT = lv_job_c.

CALL FUNCTION 'JOB_SUBMIT'

EXPORTING

authcknam = sy-uname

jobcount = lv_job_c

jobname = 'CREATE_SALES_ORDER'

report = 'ZTEST_FILE1'.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

JOBNAME = 'CREATE_SALES_ORDER'

jobcount = lv_job_c.

The problem i am facing is My job status it is showing always 'Scheduled' in SM37 whenever i am submitting the job its not releasing.

I tried to set the 'Start Condition' as 'Immediate' and after saving the start condition when i am coming back to the Job the Start condition Immidiate checkbox is 'unchecked' .

Need help on how to set the job as immediate .

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Divesh,

Check this .. it might helps..

Cheers,

Kris.