cancel
Showing results for 
Search instead for 
Did you mean: 

E Mail body and subject change in Alerts

Former Member
0 Kudos

Hi SAP Experts,

I succesfully created a alert rule and referred document by Michael in SAP PI7.31 Dual stack.

:http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-m...

I am receiving the alerts but the mail subject and body contains the following.Refer to the screenshot.

I have following querries.

1.Can I change the subject and body of the mail?

2.I want to add all the XML message id of the failed message in SAP-PI at mail body.

3.Does this alert contains the system error?

4. Whats the difference when we configure the same using ALRTCATDEF and NWA?

Regards

Rebecca

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>1.Can I change the subject and body of the mail?

yes - but you'd need to use the API as shown in the second article:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/05/05/michals-pi-tips-component-based-m...

this way you can just get the error and compose the e-mail as per your requirements

>>>2.I want to add all the XML message id of the failed message in SAP-PI at mail body.

with API you can easily get that and put it anywhere you need

>>>4. Whats the difference when we configure the same using ALRTCATDEF and NWA?

this is the old config (when PI had two stacks) - if PI has only one stack it's not possible to use it and this new configuration will be the one to which we will moving from the old one

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Thanks for the reply. I am clear with the 3 answers you told.

The 4th point I want to make clear.

I am working in PI7.31 which is Dual stack. So still the NWA configurations hold the same place?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>I am working in PI7.31 which is Dual stack. So still the NWA configurations hold the same place?

you can still work with old alerts as in 7.3 but why ? if you're doing something new you should start with the alert framework which will be supported in the longer run and not with the one which will soon not work (once you upgrade to a single stack PI) but it's just my view,

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Lots of thanks for your guidance. Provided you the full points

Regards

Rebecca

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

Were you able to edit the email subject and body. I understand you get the webservice response containing the alert payload, so do I need to parse the xml and then using the content construct my email body and then use a email adapter to shoot the mail to respective alert users ?

Regards

RJ

Former Member
0 Kudos

HI Rebecca and Michael,

I am in the same situation. I need to customize email body and subject of the mail of the alert. As per Micheal's answer I tried to use API's but not able to change the body and and subject of alert mail.

We are on SAP PI 7.31 single stack.

Can you please help me on this? How did you managed to change it using API or any other way?

Please reply to me as i am stuck here and it has became an urgent issue for us.

Thanks in advance.

Regards
Vidhi

Former Member
0 Kudos

Hi,

Even I am on the same page as Vidhi, Could you pls explain in more detail as I also wanted to try the same.

Hi Vidhi - Have you got anything?

Appreciate your prompt reply on the same.

thanks

chirag

Former Member
0 Kudos

Hey Vidhi / Chirag,

Any updates on how to change the email subject ?

Cheers

Kanes