Application Development and Automation 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: 
Read only

Job scheduling

Former Member
0 Likes
814

Hi All

I have two jobs A and B. Job A runs every sunday at 10 AM. And Job B should run after Job A every sunday. But I could not find any option in SM36 to run job B all the time when ever Job A runs. I tried Job dependant option, but Job B ran just once.

Can any one let me know hot to schedule Job B so that it will run after Job A All the Time.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

You can create one job with 2 steps in it where step 1 would be your job A and step 2 would be your job B. You can achieve this using SM36 -> Step.

Alternatively you can also try scheduling job B every sunday after Job A.

rgds,

PB

Edited by: PBHATT on Nov 24, 2009 1:23 PM

Hi All

I have two jobs A and B. Job A runs every sunday at 10 AM. And Job B should run after Job A every sunday. But I could not find any option in SM36 to run job B all the time when ever Job A runs. I tried Job dependant option, but Job B ran just once.

Can any one let me know hot to schedule Job B so that it will run after Job A All the Time.

Thanks in advance

5 REPLIES 5
Read only

Former Member
0 Likes
768

You can create one job with 2 steps in it where step 1 would be your job A and step 2 would be your job B. You can achieve this using SM36 -> Step.

Alternatively you can also try scheduling job B every sunday after Job A.

rgds,

PB

Edited by: PBHATT on Nov 24, 2009 1:23 PM

Read only

Former Member
0 Likes
767

I think u should try After JOb and set A as periodic Job

Regard's

Anmol

Read only

Former Member
0 Likes
767

Hi ,

try this way..

all the Jobs are stored in TBTCP and TBTCO table..

try this way..

select * from TBTCP where progname = 'Report name'.

select single * from TBTCO where jobname = tbtcp-jobname

and Jobcount = tbtcp-jobcount.

if sy-subrc = 0.

if TBTCO-status = 'F'.

that means job A is finished.

start second Job.....Else wait for some time and try to fetch again from table and check the status...

endif.

ENdif.

endselect.

regards,

Prabhudas

Read only

ThomasZloch
Active Contributor
0 Likes
767

Option "after job" is not available for periodic scheduling. Either try the 2 step approach described above or have job A trigger an event inside the program code and let job B wait for that event (periodic).

Thomas

Read only

0 Likes
767

Thank you very much for all your responses......I used step approach and that served my purpose....Thanks once again