cancel
Showing results for 
Search instead for 
Did you mean: 

can Condition be applied in a alert rule?

Former Member
0 Kudos

Hi,

I have configured the alerts in my interfaces. I have used the standard function module SALERT_CREATE for this. For this particular alert category, the rule is already created in alert config in RWB, in the system. I am getting 2 alert messges in my alert inbox for the single error. Now if I inactivate the rule, I get only 1 message, but it affects other interfaces which belongs to same alert category. This is not required.

Is there some way to exclude a single business service in the rule ie. rule should be active for all the interfaces except a single business service, which I am using?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sriparna,

To get single alert for every error that you get in your interfaces, just configure the ALERT CATEGORY in ALRTCATDEF and create a Alert Rule for this in RWB.

Create multiple alert rules for individual scenarios using the same alert category that should work for you.

Regards,

Gautam Purohit

Edited by: Gautam Purohit on Jan 4, 2010 2:21 PM

Former Member
0 Kudos

Hi Gautam,

Thnx for replying.

I know it can be done in the way you have mentioned.

But I dont want to edit the existing alert rules in the system. So I was trying if a particular service can be excluded from the rule.

Former Member
0 Kudos

Hi,

Are you using the SALERT_CREATE alert FM at the message mapping Lookup function ?

For waht purpose you are using the SALERT_CREATE FM ....

HTH

Rajesh

Former Member
0 Kudos

Hi Rajesh,

I am calling this function module in UDFs in the message mapping to send the alert message, in case there are any application errors. Ex- say a field "abc" in the input payload is missing. So the alert should be sent to the configured recipients. Now I am getting this alert. But along with it I am receiving one more alert whih is getting invoked through alert rule in RWB.

Former Member
0 Kudos

So you are terminating the mapping in case if your source payload does not contain the data for particular field and sending the error via alert...

In order not to receive multiple alerts for this..either to remove the alert in UDF or should not end the message mapping in error if udf condition is not satisfied...(continue the mapping dont throw the alert in exception..instead use in try block itself.)

if mapping should not be continued..for this error and if you remove alert in UDF,still you can use enable trace in UDF and can find the cause of the error in moni..after receiving the alert using alert rule...(only thing will be error message will not be like what you will frame...)

HTH

Rajesh

former_member200962
Active Contributor
0 Kudos

As mentioned by Rajesh maintain only one source for raising the alert....the alert is configured and working properly....just that you have included it at two places and hence receiving two alert mails.

in case there are any application errors.

In case the above error occurs then the alert maintained in RWB should be able to catch it and you dont need to explicitly call the alert from the UDF.

Regards,

Abhishek.