Skip to Content
0
Dec 21, 2007 at 05:13 PM

Job not released in the given specified time(Job_close)

466 Views

Hi,

I need to run a program through job.I created a job using JOB_OPEN

And submitted the job name and job count to the required program

And closed the job using JOB_CLOSE.

My problem is the job getting scheduled but not released/ processed automatically by the specified time I need to release it manually through SM37.

My code.

JOB_OPEN

SUBMIT VIA job_name and job count

l_time = sy-uzeit + 60.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = l_jobcount

jobname = l_jobname

SDLSTRTDT = sy-datum

SDLSTRTTM = l_time

STRTIMMED = 'X'

IMPORTING

job_was_released = l_released

EXCEPTIONS

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

OTHERS = 8.

After the above code execution SY-SUBRC is ‘8’ and And the L_released is having balnk.If I pass start immediately the the job processed immediately. And the L_released is having ‘X’.

Please help me….