cancel
Showing results for 
Search instead for 
Did you mean: 

Preceding job not yet completed

Former Member
0 Kudos

Dear Colleagues

I have a job set up in our production system. The job name is Z2_SCI_DUS001_AMSND_CHIPROC_MESS

This job has 2 steps

Step Program Variant

1 RCOCB004 US07_PROCMES

2 RCOCB004 US07_RESEND

In SAP, the job is schedule with NO starting condition

We use IBM TWS in order to trigger this job every 3 minutes.

We're having the following situation:

Status Start Date Start Time End Date End Time

Finished 2010/03/28 21:06:42 2010/03/28 21:06:50

Canceled 2010/03/28 21:09:38 2010/03/28 21:09:41

The job is failing with error "Preceding job not yet completed". However the first job has finished before the second one starts. So I'm not sure why we're getting this error.

Could you please help me to understand what's happening?

Thanks and Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Yes.. You are right.. thank you for your reply.

This error message is related to the program RCOCB004.

My question here is how's the best way to create a job with this program and avoid this error

Thanks

Former Member
0 Kudos

Hi

Maybe your problem is not the job, but the program you're calling. The program you're calling calls CO51 tcode, wich launches message CB019 under certain conditions (it matches with your error).


*- Enqueue job for sending process messages ----
IF no_lock IS INITIAL.
  CALL FUNCTION 'ENQUEUE_ECOCB_RCOCB003'
       EXPORTING
            plant          = plant
            lock_group     = lock_gr
            _scope         = 1
       EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.

  CASE sy-subrc.
    WHEN 1.
* Sending job is already active
      MESSAGE a019 WITH plant lock_gr.
    WHEN 2 OR 3.
      MESSAGE a015 WITH 'RCOCB003'.
  ENDCASE.
ENDIF.

maybe that's the point?

Best Regards