cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize the Alert Email in SAP PI 7.4

Former Member
0 Kudos

Hi,

The requirement is to generate alert emails with custom subject and body.

The email generated in PI is very technical so to make it more readable what all configuration is required.

I have read several blogs but if some one could provide easy way to implement that would be great.

Thanks,

Vertika

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks Hareesh for quick reply.

I already had a look on this blog. This blog is talking about Alert Inbox that can be also reached from PIMON application on page 9.

How can we have this alert inbox configured or how we can view this Alert Inbox via PIMON application?

Thanks,

Vertika

Former Member
0 Kudos

Hi Everyone,

We are planning to integrate SOLMAN to PIMON and alerting.

Now when Alert will be monitored using Solman then what is the best approach? Should we still go for any customization or standard alert will have provide a better preview of alerts in SOLMAN.

Also is there any blog or link where integration of SOLMAN for PI Alerts is explained along with screen shots? If yes please post it here.

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Hi Vertika - Have a look at the below. I haven't worked on it but today just i came across the below blog

http://wiki.scn.sap.com/wiki/download/attachments/247006678/PI_Message_Alerting_PI7.31_SolMan7.1SP5....

Former Member
0 Kudos

Hello,

>>Should we still go for any customization or standard alert will have provide a better preview of alerts in SOLMAN

U will get same kind of alerts in SOLMAN which u are viewing in PI. The format won't change, but SOLMAN comes with lot of features like notification, incident management etc.

So, yes it's recommended to use SOLMAN for PI central monitoring.

>>Also is there any blog or link where integration of SOLMAN for PI Alerts is explained along with screen shots?

Search SDN with this text "Central PI Monitoring and Alerting" u will find one end to end guide on the same.

BTW, don't club multiple questions in a single thread.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hello,

To be precise, i don't like the idea of assigning all interfaces to a single consumer, and IMO, best way is to create a custom job and schedule the same for multiple consumers - it won't take more than 2 days of development.

Now coming to ur question regarding UDMS- So "YES" the UDMS attributes which u have defined will automatically gets reflected in alerts.

>>Now my question is. If we are customizing the alert using the link you provide, can we still have UDMAttributes.

Yes, it's certainly possible.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Amit

1) If we are creating custom job using standard API as mentioned in below blog:

It will always require consumer ID to trigger the alert. Even if we are creation multiple consumers a file should be placed in some source folder with all consumer ID, probably in test mode so that alert can be raised whenever there is some issue.

2) If we are doing such customization the subject of mail will remain constant because we are using same custom code for various consumers.

3) All interfaces will have alert dependency on custom code and if this is having some issue then it will create problem in raising alert for all interfaces.

Please correct me if I am wrong in my understanding.

Question to every one:

Can any one tell me soap url that is being used in SOAP adapter for API, how we can get it from Service Registry?

When I have searched for soap alert api target url in Service registry, I am not able to see any thing. Is there something addition required to view all standard available service interfaces?

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Vertika -

Have a look at the below screenshots

Former Member
0 Kudos

Hello,

Ur understanding is very much correct.

Anyway, in addition to above points, u have to remember that if u use above (interface) approach then even if there are no alerts triggered for an interface u will receive empty alert mails (becoz alert retrieve API will return empty result). I think that can be avoided using Request/Response bean in receivers adapter ( u have to check that).

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi,

I already read these blogs. Is there any simple way to customize the alerts.

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

The simplest way is to create the custom job as mentioned in the blogs... We don't have any other setting like what we used to do in ALRTCATDEF

Former Member
0 Kudos

Hi Hareesh,

Even if we use the first method i.e using API, how we can use the same configuration for multiple interfaces.

Since source DT has consumer ID and Max alerts as input parameter. How this will be triggered in production environment.

Does it required to keep a source file to some directory always to trigger the custom method?

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Hi Verika -


Even if we use the first method i.e using API, how we can use the same configuration for multiple interfaces.


Assign all your interfaces to the same consumer when you create the alert rule in ID and in the input file just mention the consumer name.

Former Member
0 Kudos

Hi Hareesh,

Thanks for Input.

I got your point but in production is it recommended that file should be placed in source directory to get the alerts. How every time file will be placed in source directory. The error can occur any time.

So going and placing a file to source directory everytime is a feasible option.

Thanks,

Vetika

former_member184720
Active Contributor
0 Kudos

Place the file once and keep the channel in test mode

Former Member
0 Kudos

Hareesh

Will this be able to handle the user defined message search also.

If we are defining some UDMS in order to keep track of transactions such Idoc Number.

Will the UDMS be available in these alerts if it is configured for each interface.

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Sorry but i did not understand the question.

This process is just to customize alerts and AFAIK we don't have such methods available for UDMS.

Former Member
0 Kudos

If you configure any user defined search for particular interface to fetch the value of any field from payload then it automatically appears in Alert Mails also. Below is the screen shot:

Invoice number is the value that I am getting from the payload in alert.

Now my question is. If we are customizing the alert using the link you provide, can we still have UDMAttributes.

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Hi Vertika - I think it should fetch the information.

You can test the service using wsnavigator and see if it extracts as explained in the below blog..

former_member184720
Active Contributor
0 Kudos

Hi Vertika - Have a look at the below blogs to customize alerts..