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: 

Mail triggering while any background job failed

former_member282631
Participant
0 Kudos

Hello Experts,

I want to configure the mail in SAP STANDARD SYSTEM in such way if any background program has been failed due to any reasons then system should trigger a mail to respective person. Already i gone through so many blogs regarding this requirement but still i have not found any concrete way out. Even i would like to configure it by standard way without using any Z- Customizing.

So Experts, could you please share your thoughts regarding this.

Thanks & Regards

Varun Kumar

7 REPLIES 7

Hi Varun,

I am not sure how you can achieve it without custom programming. However, you can create a custom program running at regular interval in background with below logic:

1. Fetch details of background jobs from SAP tables TBTCP -Background Job Step Overview and TBTCO - Job Status Overview Table.

alternatively, you can use the following FM to get job details:

GET_JOB_RUNTIME_INFO - Reading Background Job Runtime Data

2. In case of batch error or job fail status, write code to send mails to respective users.

I hope this will help.

former_member282631
Participant
0 Kudos

Thanks Devarshi for your prompt response.

Actually i am just searching is any way available in Standard SAP system to achieve above requirement. Initially i thought to achieve it through SM36 but here i could not able to trigger mail if any job is getting failed.

Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

FredericGirod
Active Contributor

This kind of things should be done with CCMS (it could have been replaced by something else, I play with that in ECC)

https://wiki.scn.sap.com/wiki/display/SI/Monitoring+Work+Processes+in+the+CCMS+Infrastructure

0 Kudos

Thanks Frederic for your valuable input with respect to CCMS process. But could you please provide me the complete process steps (Configuration steps) for RZ20 to achieve rhis requirement. Requirement is if background job getting failed then mail should be triggered to respective person in standard sap syatem. (Mail id - facebook.raj22@gmail.com)

Thanks and regards

Varun

0 Kudos

Use your favorite Internet Search tool with keyword like SAP CCMS JOB ....

ex of result:

http://www.saptraininghq.com/how-to-monitor-your-background-jobs-with-ccms-in-sap-systems/

Sandra_Rossi
Active Contributor
0 Kudos

You may configure that with Alert Management for CCMS. I can't tell you more. I guess it has been discussed in other posts in the Web, and in the SAP Library.