Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating IDoc Type from Change Pointers using RBDMIDOC

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

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