Application Development 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: 

jobs with a startevent and starttime

Former Member
0 Kudos

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

4 REPLIES 4

TMNielsen
Contributor
0 Kudos

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

0 Kudos

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

ssimsekler
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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