XI: Alerts – Step by step


SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

XI: Alerts – Step by step

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

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

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:

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
en.pdf24.org    Send article as PDF   
This entry was posted in http 2 file, jdbc2 jdbc sap xi senario, sap pi 7.0 training, sap pi tutorials, sap stap by step senarios, sap xi alerts. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *