07-23-2004 11:17 AM
hello,
I'd like to plan a job in an abap program which is started when an event is raised or a certain timespan
has passed.
When planing the job by using the functionmodules job_open, job_submit and and job_close I can supply an event and a startdate but the implementation of the functionmodules ignores the event when the startdate parameter is supplied.
Is there a workaround to enable event triggered jobs with a startdate which is used if the event is not raised within a certain timespan or do I really hav to use 2 jobs?
thanks
Roman
07-23-2004 7:37 PM
Hello Roman
I think you have to use 2 jobs, but if you use 2 jobs with the same program the program may run twice.
You could create 1 job with your program that is started by event and 1 job with a startdate/time that runs a program that raise the event.
best regards
Thomas Madsen Nielsen
07-24-2004 3:10 PM
Hello again
Today i got my brain back and can now see that my answer yesterday was stupid.
You will have to find an other solution to make sure the program runs only once.
Best regards
Thomas Madsen Nielsen
07-26-2004 7:19 PM
Hi!
I wonder whether the FM "SHOW_JOBSTATE" may be utilized for this. With this FM you can check the state of your job (as the name tells ). I know still need to deliberate but hope this may be some clue...
*--Serdar
08-14-2004 10:18 AM
There is a one solution try this.
If you plan to execute the job after a certain time .Before you release(job_close) the job just give wait upto n sec ....try this it should work out.This will ensure your time based trigger ...
But there is a catch if th job is event triggered it will start after delay which you have to somehow skip with proper event check