XI: Alerts - Step by step by Michal Krawczyk

June 8th, 2006

XI: Alerts - Step by step
Michal Krawczyk
Business Card
Company: BCC
Posted on Sep. 09, 2005 10:57 AM in
SAP Exchange Infrastructure (XI)

Permalink

Print. Print

Using alerts can help us so much with the monitoring of the Exchange Infrastructure.
But why are they so avoided (aren’t they)? It’s true that they can be a little hard to configure at the first place
but if you succeed it can save a lot of your valuable time by telling you only about the events/errors you have to take care of.Alerts within XI give us a simple way to monitor only those errors that we want and send alert messages
to different people depending on the alert category. You can send alert to alert inbox, mail an even on SMS
if your cell phone operator gives you the possibility of sending an sms through a web service.

In this weblog I’ll provide you with a step by step tutorial on how to create and use alerts.

Step 1

At first we have to create an alert category:

- go to TCODE - ALRTCATDEF

- change mode

- define you alert category

image

Step 2

Next we can add some variables to our container which we will later use to compose the text of our alert message.

image

In alerts from XI you can use those variables:

SXMS_MSG_GUID, SXMS_RULE_NAME, SXMS_ERROR_CAT, SXMS_ERROR_CODE,
SXMS_FROM_PARTY, SXMS_FROM_SERVICE, SXMS_FROM_NAMESPACE, SXMS_FROM_INTERFACE,
SXMS_TO_PARTY, SXMS_TO_SERVICE, SXMS_TO_NAMESPACE,SXMS_TO_INTERFACE

for their ABAP dictionary types please go to:

Creating Alert Categories

Step 3

Now we can use our variables from the container to create an alert message.

image

Step 4

In order to receive alerts we have to add ourselfs to the receivers list.

image

Step 5

This is the end of the configuration in sapgui and now we can start working with RWB (Runtime Workbench).

- log on to RWB

- choose Alert configuration

- create a new alert rule

image

In my example I want to see all of the errors but you can restrict it to receive only mapping errors for instance.

Step 6

We’re ready to try our alerts but to check them we first need an error :)
I just gave a wrong XML to one of the processes and as you can see I managed to trigger a mapping error.

image

Step 7

Now you can go to the alertinbox to see if the alert was triggered:

- you can do it from RWB - Alert inbox

- or from sapgui TCODE - ALRTINBOX

image

This weblog shows how you can create a new alert rule in less then five minutes but only if your system is properly configured.
If you have any problems with Alert configuration please take a look at:

XI: Alerts - Troubleshooting guide

Michal Krawczyk is a SAP consultant for BCC (Business Consulting Center) Poland

Entry Filed under: SAP Articles


Calendar

June 2006
M T W T F S S
« May   Jul »
 1234
567891011
12131415161718
19202122232425
2627282930  

Most Recent Posts