Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
santhosh_kumarv
Active Contributor


Alerts can help us so much with the monitoring of the Exchange Infrastructure. Till now there are Blogs, which tells how to create alerts for Monitoring Errors, Imagine the luxury of Alerts being created for the errors in Inbound and Outbound Queues.

In most of the support projects it is always a mechanical task to check for errors in Queues (SMQ1 & SMQ2) very frequently. An Alert creation for this task will less the burden of queue monitoring and will enrich the usage of the alerts in monitoring space.

Through this Blog I would walk through with the steps to create Queue Alerts. The task here is broken into two-piece.

1. Programming with the qRFC API to obtain the Queue Information.

2. Alert Category creation and triggering Alerts from the Program.

qRFC API's :

TRFC_QOUT_OVERVIEW - This function module gives an overview of the current outbound queues that exist for various optional import parameters, for example, queue name, destination, SAP client.

TRFC_QIN_OVERVIEW - This function module gives an overview of all the inbound queues that currently exist for various optional import parameters, for example, queue name or SAP client.

Alert API:

SALERT_CREATE - This Function module is used to create alert by importing parameters like alert category, Container name and its value.

Let us now look at the steps to create queue alerts.

Step 1:

Create an Alert Category QUEUE_ERR (T-Code: ALRTCATDEF) with the following Containers.



Step 2:

Add the Message Title, Short, Long Text and you SAP logon id in Fixed Recipients list.



Stuck with Alert creation..? Refer Michal's Blog  The specified item was not found.

Step 3:

Create a report Z_QUEUE_ALERT in SE38.

Copy paste the below source code to check the queues and create Alert for queues with the Status SYSFAIL.



Step 4:

Schedule this report using SM36 to check and trigger alert time after time.

With this above four steps you are ready to receive a Alert message in RWB Alert Inbox as below and an email to the smtp address maintained for your SAP logon id in SU01.



14 Comments
Labels in this area