Skip to Content
author's profile photo
Former Member

jobs with a startevent and starttime

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

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Posted on Jul 23, 2004 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2004 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 14, 2004 at 09: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

    Add comment
    10|10000 characters needed characters exceeded