cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling of job which sends email alerts

former_member293102
Participant
0 Kudos

Hi Experts,

I have a job with an ABAP step which sends emails to all the members of the support team on job failures. All the logics have been included in the program and is working fine logically.

I have a problem in hand for scheduling. The job should run periodically every 15 mins but it should run periodically only during the span of process chain run.

Approximately its runs from 12 midnight to 5 a.m. (We can assume this time) How can I ensure the jobs runs only during this interval periodically.

If I need to go via event method can someone help me with sample some ABAP code on scheduling via event for interval scheduling.

Thanks,

Mihir

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member293102
Participant
0 Kudos

Kiran Vasant Kere,

I need help in scheduling in interval only. ABAP program is running fine. Any lights ?

Regards,

Mihir


Former Member
0 Kudos

Just check with the option Operation modes in scheduling and include your ABAP program in a local chain containing the Scheduling option with the operation mode.

Prathish

former_member188080
Active Contributor
former_member209032
Active Contributor
0 Kudos

Hi,

  I think u r talking abt the the created in scot. What u can do is u can change the existing job to trigger daily at 0015 instead of every 15 mins. Then you can copy this job and make it to run again daily at 00.30. similarly create a job for every 15 minute interval by copying the original and changing the scheduling time.

Regards,

Raghavendra.

former_member293102
Participant
0 Kudos

HI Raghavendra,

Thanks for your response. Any better way to approach this ? I cannot keep creating so many copies of job. 12 to 5 was just hypothetical. It can extend till 8 too.

Regards,

Mihir

former_member186445
Active Contributor
0 Kudos

i suppose the problem is you don't want to receive a mail after 5 am?

so you could schedule the job every 15 min for the entire day, but adapt the logic of the program to actually sent a mail only between 12 midnight and 5 am. this can easily be accomplished by putting the call to the FM to send the mail in an if statement.

if you create start and end time as parameters, you can the decide on scheduling when a mail is to be send

former_member293102
Participant
0 Kudos

Hi Tibollo,

Thanks for your response. I actually need to run the job itself to in that interval, not the email trigger.

Any ideas ?

Regards,

Mihir

former_member186445
Active Contributor
0 Kudos

why?