2007 May 10 4:11 AM
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
2007 May 10 4:37 AM
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.
2007 May 10 4:17 AM
we can schdule the job every minute ,please see the transaction SM36 or Sm37.
I did but i do not remember the steps
2007 May 10 4:21 AM
Hi
Use the transaction SM 37 and give your required time interval for scheduled the job.
Regards,
Sreeram
2007 May 10 4:35 AM
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.
2007 May 10 4:37 AM
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.
2007 May 10 5:54 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |