08-05-2008 9:33 AM
Hi All,
we are executing program RBDMIDOC(Creating IDoc Type from Change Pointers) evrey 15 minuts in background.
Issue : if some jobs are taking more than 15 minuts then next jobs are failed,
is next job will pick up any idocs that were missed?
there is no extesion's and ther is no Z-fields are used in that message type , we are used OILMAT as mesage type.
Regards,
DSK
Edited by: suresh dameruppula on Aug 5, 2008 2:04 PM
08-05-2008 12:37 PM
Hi,
Include a step in your job and have a program which checks if a job is already running. If yes do not start the next instance of the same job.
in the custom program just call function module
CALL FUNCTION 'ZBC_JOB_ALREADY_RUNNING'
EXPORTING
JOBNAME = p_job
IMPORTING
JOB_RUNNING = w_count
EXCEPTIONS
JOB_NOT_SPECIFIED = 1
OTHERS = 2.
Code within FM ->
select count(*)
into job_running
from tbtco
where jobname = jobname
and status = 'R'.
where p_job is the job name.
w_count is current running job count. If its greater than 1, then stop the 2nd with an error message.
Rgds,
Hema
08-05-2008 3:04 PM
this is standard program, we can not change,
and my query is if job fails, then next job will pick up idocs that were missed?
regards,
suresh.D