cancel
Showing results for 
Search instead for 
Did you mean: 

How to create new alert rule

Former Member
0 Kudos

Hi all,

How to create new alert rule, i am in RW and alert configuration and then what i must click to create new alert because "add rule" is disabled in my screen.

any one can give me navigation for create new alert.

Kind Regards,

Kiran.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi !

you must select an alert category from the table at the footer of that page to have the Add Rule button enabled. If no alert categories are defined, you have to use tx ALRTCATDEF.

Regards,

Matias

ps: please award points if helpful

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

check out the steps below for creating alerts (from abap environment to RWB):

Steps to create Alert category

1 At first we have to define a new alert category by using Transaction code “alrtcatdef”. Alert categories can be assigned to an alert classification. If you do not want to create a classification on your own, you can always create categories within the default classification folder Unclassified. However, it is recommendable to create different alert classifications to group alert categories that belong to the same topic.

2 Go to “Display/Change” and then create a new alert category– for Example ALRTFRMIDD0205 (like it has shown in right side of following diagram with selected entry).

3 Give description for the Alert Category - this description can be the reason that why alert is being thrown. However we will provide description at the time of Alert category creation or by giving in the properties tab of the same category itself.

4. Insert the container variables in the “Container” tab as specified below. The alert container is a container for the exchange of (application-specific) variables, such as company code or material number, between the local systems (alert providers) and the central alert server. It is therefore the interface between the application that triggers the alert and the central Alert Framework.

For various container variables refer to the link http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm

Note:- Here Elements used in the container are standard elements. It can be any user defined elements also.

Go to Long and Short Text tab, here we can include text variables referring to elements of the alert container or system symbols. In the case of a container element, the variable must be defined in the alert container. The entry in the text must be in the form &<ElementName>& (In our scenario we had used one of the container element “SXMS_MSG_GUID” so it can be represented as “&SXMS_MSG_GUID&”). By using this tab we can send the dynamic message from alert framework to external communication devices ( like mails, fax, etc..,) .Message title represents title name for mail or FAX subject or alert title in the alert inbox.

5. In real time scenario, set of applications belong to different modules that are running at the same time, so if any application is failed then the people engaged in the module that corresponds to the application failed are informed by an alert. This abstains from the people who are not belonging to error application Module. For achieving this we have an option of Fixed Alert Recipients. Include the recipients username, to whom the alert has to be sent through mail under the tab “Fixed Recipients” and save it. For this we need to mention the request. One can create own request or use the existing ones for new entries.

6. Then execute the UDF, what we had created for Triggering Alert in Integration Repository.

Or even we can test alert category in ABAP stack itself by executing the standard function module “SALERT_CREATE” with the input of alert category name under IP_CAT .

7.result screen appears with export parameter values once the standard function module is executed.

Configuration at Runtime Workbench

1.Select the alert category created above and then go to “Add Rule” tab.

2. Find your alert category name under Add Rule. Here we have two checkboxes.

• If the Rule Activated checkbox is selected (default setting), the rule is automatically activated when you add it and is displayed as active.

• If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.

We would provide sender or receiver information like message interface, service and namespace under “Conditions”.

We have two options to restrict errors like

• Errors reported from the Integration Engine (with or without error category or error code)

• Errors reported from the Adapter Engine (with or without adapter type)

3. After specifying the required conditions update values in the table by clicking on the tab “Update Table”.

4. Perform End-to-End testing and then go to the tab “Alert Inbox” from Runtime workbench or can use the TCODE “ALRTINBOX” so as to view the alert message for that particular alert raised.

If we run the scenario or even just execute the user defined function then we are able to see the message in Alert Inbox.

Please reward with appropriate points if found heplful.

Regards

Madhulatha

Former Member
0 Kudos

Hi,

Please go through below links for details

XI: Alerts - Step by step

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

Alerts with variables from the messages payload (XI) – UPDATED

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

XI: Alerts - Troubleshooting guide

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide

Thanks

Swarup

Former Member
0 Kudos

Hi swarup,

"add rule" is disabled in my screen, Add rule definition tab is there inside this tab there is Add rule button, is there any Add rule tab which must click.

can you please suggest me.

Kind Regards,

Kiran.

Former Member
0 Kudos

Hi,

Can u please check the roles i think its a problem with roles.

Refer link for user roles: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/03b140ade49c2ae10000000a155106/content.htm

Thnx

Chirag

Former Member
0 Kudos

Hi Kiran !!

In Alert Configuration, the "Add Rule" is not enabled until you select a "Alert Category" from the table that is at the end of that same page. You must select one category on which the rule will be based, then once the category is selected, the "Add Rule" button should be enabled if you also have the required permissions to add new rules. To select an alert category, click with the mouse on the square box that is at the beginning of each row of the alert category table in the same page that you see by accessing using the "Alert Configuration" link in RWB.

http://help.sap.com/saphelp_nw04s/helpdata/en/56/d5b54020c6792ae10000000a155106/content.htm

Creating Alert Rules

To create an alert rule in which you use a defined alert category, proceed as follows:

1. Give the rule a name (Description).

2. Select the alert category that you want to use by clicking the corresponding category in the alert category table.

3. If necessary, specify conditions for the sender or receiver, or both.

&#9675; If your rule results in alerts that must be assigned to a specific message, select the option Yes for the Bound to Message condition.

&#9675; If your rule results in alerts that are not assigned to a message, that is, they are caused by errors that occurred before the message was sent, select the option No for the Bound to Message condition.

In this case you cannot enter any further details about the sender or receiver.

&#9675; If the rule is to cover both cases, select the Not Relevant option.

4. If required, restrict the errors further to:

&#9675; Errors reported from the Integration Engine (with or without error category or error code)

&#9675; Errors reported from the Adapter Engine (with or without adapter type)

Note

You can enter an asterisk (*) in steps 3 and 4. You can enter just the asterisk, or enter it at the start, end, or start and end of a string.

5. To add the new rule to the list of alert rules, choose Add Rule.

If the Rule Activated check box is selected (default setting), the rule is automatically activated when you add it and is displayed as active.

If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.

Once you have created a rule, it is automatically displayed in the list of alert rules. If you want to display the conditions of a rule, select a rule in the list and choose Show Conditions.

Regards,

Matias

ps: please award points if helpful.

Former Member
0 Kudos

Hi Kiran !

Did my advice you solved your problem? if not, please tell me, if yes, please tag the thread as answered and give points accordingly.

Regards,

Matias.