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

Batch Job scheduling

Former Member
0 Likes
741

Dear All,

I want to schedule 1 programs with one background job.

My requirement is like this:

My job always runs after every minute.

If first time, my job is not yet finished, i dont want to start my job again(same job) until the first one gets completed.How do i keep track of this scenario and how to schedule this?

Kindly let me know if this is possible.

Thanks in advance for your reply.

Regards,

Tarun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

Hello,

You can schedule the job using the transaction SM36 . You have a wizard which will take you through all the steps for the creation of a job.

Regards,

Sowmya.

Hello,

You can schedule the job using the transaction SM36 . You have a wizard which will take you through all the steps for the creation of a job.

Regards,

Sowmya.

5 REPLIES 5
Read only

Former Member
0 Likes
689

we can schdule the job every minute ,please see the transaction SM36 or Sm37.

I did but i do not remember the steps

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
689

Hi

Use the transaction SM 37 and give your required time interval for scheduled the job.

Regards,

Sreeram

Read only

Former Member
0 Likes
689

Gupta,

You uhave write a program for this.

In Table TBTCO

check the column "status" by JOBname

STATUS = 'F' --- Finished.

STATUS = 'A' --- Cancelled.

STATUS = 'R' --- Active.

If tbtco-status = 'F'.------finished

Use the FM to schedule the job.

'JOB_OPEN'.

SUBMIT abaphtml_maintain USER sy-uname

WITH go eq 'X'

VIA JOB 'ABAPHTML_MAINTAIN' NUMBER n

AND RETURN.

'JOB_CLOSE'.

Endif.

Don't forget to reward if useful.

Read only

Former Member
0 Likes
690

Hello,

You can schedule the job using the transaction SM36 . You have a wizard which will take you through all the steps for the creation of a job.

Regards,

Sowmya.

Read only

0 Likes
689

Hi ,

Use Transaction SM36 to create Backgroung job

Provide the following

Job Name : Z_JOB_1

Job class : (Priority - As per your choice)

Goto Define Steps (Function Key F6)

Provide the following

Name : (Name of Program)

Variant : (Specify Variant)

Language : EN (or whatever)

Specify Start Condition: (Function Key F5)

1. Press Date/Time Pushbutton

2. At the botton left hand corner of the screen you will find a checkbox for Periodic Job - Select that & Press Function Key F5

3. Select Periodic Value as Other Period - 1 MINUTE

4. Save the Job

In the Program itself put in check to verify if the previous job has finished.

if yes .. continue else.. exit

Points if useful

Regards,

Gaurav