oracle- automatic email when an alert occurs

8
Automatic email when an alert occurs Files under Uncategorized | Posted by admin Symptom You would like to set an automatic e-mail when an alert occurs in SAP system. Solution This Mini How-to is mainly based on SAP OSS note 176492 – Automatic email when an alert occurs (RZ20). The CCMS monitor architecture (transaction RZ20) allows you to define auto-reaction methods (reports, function modules) that are executed automatically when alerts occur. The predefined CCMS_OnAlert_Email auto-reaction method is used for sending emails. When an alert occurs, emails with alert information are automatically sent from a SAP system to: 1. a SAPoffice user in client 000 in the same system. 2. a SAPoffice user of another client or another system. 3. a shared distribution list or an external mail address. To ensure that the emails can be sent from the Alert Monitor, you must carry out the following configuration steps. IN THE SYSTEM WHERE THE ALERT OCCURS. In RZ21-> Method definitions – button Display overview, you must set the parameters for the CCMS_OnAlert_Email method. 07/23/2010 SAP@Oracle Expert's Blog » Automatic… http://www.sap-at-oracle.net/blog/?pa… 1/11

Upload: mksuresh136

Post on 04-Apr-2015

88 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: Oracle- Automatic Email When an Alert Occurs

Automatic email when an alert occursFiles under Uncategorized | Posted by admin

Symptom

You would like to set an automatic e-mail when an alert occurs in SAP system.

Solution

This Mini How-to is mainly based on SAP OSS note 176492 – Automatic email when an alert occurs (RZ20).

The CCMS monitor architecture (transaction RZ20) allows you to define auto-reaction methods (reports,function modules) that are executed automatically when alerts occur. The predefined CCMS_OnAlert_Emailauto-reaction method is used for sending emails.

When an alert occurs, emails with alert information are automatically sent from a SAP system to:

1. a SAPoffice user in client 000 in the same system.

2. a SAPoffice user of another client or another system.

3. a shared distribution list or an external mail address.

To ensure that the emails can be sent from the Alert Monitor, you must carry out the following configurationsteps.

IN THE SYSTEM WHERE THE ALERT OCCURS.

In RZ21-> Method definitions – button Display overview, you must set the parameters for theCCMS_OnAlert_Email method.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 1/11

Page 2: Oracle- Automatic Email When an Alert Occurs

Please find the method CCMS_OnAlert_Email and click the button Change.

Go to a Parameters tab.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 2/11

Page 3: Oracle- Automatic Email When an Alert Occurs

You could use some different scenarios depends on your requirements. In case you would like to receive an e-mail via normal Internet mail there are two options:

When the recipient should be one e-mail account please set as the example below:

1. SENDER <ADMINUSER> (in client 000)

2. RECIPIENT<email address>

3. RECIPIENT-TYPEID U

4. TIME_ZONE<Time zone> (optional)

When the recipients should be more then one e-mail account please set as the example below:

1. SENDER <ADMINUSER> (in client 000)

2. RECIPIENT DistributionListIn000

3. RECIPIENT-TYPEID C

4. TIME_ZONE<Time zone> (optional)

In both cases the SENDER must be valid SAP user account in client 000. In the first case the <email address> inRECIPIENT box must be normal e-mail address like [email protected]

In the second case the distribution list must be created in client 000 as well.

In RZ20 – you must go to the MTE which you would like to assign the method to.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 3/11

Page 4: Oracle- Automatic Email When an Alert Occurs

Click on the check box and choose the button Properties from the menu bar.

Go to the tab Methods and choose the button Method assignment.

Choose tab Auto-reaction, button Change, radio button Method name and type or chooseCCMS_OnAlert_Email and save.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 4/11

Page 5: Oracle- Automatic Email When an Alert Occurs

SAPConnect must be configured in the system in such a way that mails can be sent to other clients, R/3 Systemsor to an Internet mail address if these types of users are meant to be the recipients of the alert mails.

If SAPConnect is not yet configured in your system, you need to carry out the following steps in the system:

For the SENDER user entered in RZ21, (<ADMINUSER> in the examples above), in transaction SU01 youmust enter a <sourcesystem(C11):000:<ADMINUSER> RML address under ‘Other communication…’. If youwant to send mails to an Internet address, you must enter an Internet address in SU01.

Go to SU01 (client 000).

Type the user you would like to use for sending. Choose Other communication button and INT Communicationtype.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 5/11

Page 6: Oracle- Automatic Email When an Alert Occurs

Enter the e-mail address which will be used for e-mail sending and choose OK.

In transaction SCOT, you must create RML nodes (mail in other clients/other R/3 System) or INT nodes (mailto Internet address). In our case it is INT node. Make sure that you are logged on to the 000 client when you arecreating nodes in transaction SCOT.

Configure node SMTP:

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 6/11

Page 7: Oracle- Automatic Email When an Alert Occurs

Schedule a send process (report RSCONN01) as a periodic background job in the client 000. (SCOT ->Settings -> Send Jobs). Schedule the job according your needs, e.g. 10 or 15 minutes.

It is also important you to set a default domain here.

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 7/11

Page 8: Oracle- Automatic Email When an Alert Occurs

You can monitor the status of the e-mails that are sent via SOST transaction. Please pay attention this should bein client 000 again.

About

This site is mainly intended to provide an information about SAP systems based on Oracle databases.

My Mission

My mission is delivering an useful information for SAP system administration. There will be practical advises, minihow-to, tips and tricks in SAP system administration. It is intended to be useful for beginner administratorsmainly, but maybe some advanced ones also could find something and better to put their valuable comments inthis blog. Detelin Nedev

Create Your Badge

Sign in

07/23/2010 SAP@Oracle Expert's Blog » Automatic…

http://www.sap-at-oracle.net/blog/?pa… 8/11