cancel
Showing results for 
Search instead for 
Did you mean: 

How to send mail after job abort

0 Kudos

Hi,

how can I send an email when a job is aborted? Or is there a system event if a job aborts?

Thanks for your help

Lutz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You might want to look into ABAP. Basically a generic job that would get called, to send email, whenever a certain job "aborts", but then you'd also need a wrapper job for detecting the bad return code. help.sap.com has some info on that (using events to trigger jobs), like this:

http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm

or this (the full-control method)

http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm

CCMS can also monitor job status too, as the other poster said,

http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm

however it's very limited. Especially if you want to use logic for the alerts (ie only certain jobs should alert upon failure, certain times of day, recipients, etc). It's all possible with CCMS, I've seen it done before using scripts that read CCMS external alerting but it's probably easier just adding event triggers to your critical jobs.

JPReyes
Active Contributor
0 Kudos

Hi Lutz,

You need to configure CCMS alerts to send you a mail in case of an event.

See,

http://help.sap.com/saphelp_nw04/helpdata/en/90/4e313f8815d036e10000000a114084/frameset.htm

Hope this help!

Juan

Please reward with points if helpful