cancel
Showing results for 
Search instead for 
Did you mean: 

Alert email from SAP PI in case of fault

ashish_goel4
Active Participant
0 Kudos

Hi Experts,

I have a requirement where in I want to send alert email with fault details.

Scenario is web service to proxy Async. SAP will send fault in case of any exception to PI. How we can send email alert when a fault message received.

In the email body I need all the values from fault payload.

Any suggestions are welcome !!

Thanks,

Ashish

Accepted Solutions (0)

Answers (3)

Answers (3)

ashish_goel4
Active Participant
0 Kudos

Thanks Evgeniy & Munniyappan for all the suggestions.

Let me try out CBMA if it works for my requirement.

Will update the outcome !!

Regards,

Ashish

ashish_goel4
Active Participant
0 Kudos

Hi Munniyappan,

When fault error is raised in receiver proxy for asynchronous scenario, Error is persisted for only monitoring and no signal sent to PI.

Whenever a fault happens can we know in SAP PI (single stack) by looking in message monitoring. Or it can only be known by ECC monitoring?

Muniyappan
Active Contributor
0 Kudos

Since it is custom proxy, you can send the mail from proxy code whenever application error happens.

or

in the mapping of fault message, you can send the mapping using java client.

former_member190293
Active Contributor

Hi Muniyappan!

Wouldn't you please describe how could we use fault mapping in asynchronous scenario?

Regards, Evgeniy.

ashish_goel4
Active Participant
0 Kudos

Hi Muniyappan,

If we were to send alerts from Proxy then fault is not required at all.

My query is on the fault. Can we do it from PI or not.

Also, for async case , there is not fault mapping involved.

Regards,

Ashish

Muniyappan
Active Contributor

Both are correct that Fault mapping does not come into play when async scenario is involved. It is applicable for only with sync scenario. I should have mentioned as sync scenario in my reply. I have overlooked the thread heading.


If we were to send alerts from Proxy then fault is not required at all. My query is on the fault. Can we do it from PI or not. Also, for async case , there is not fault mapping involved.

When fault error is raised in receiver proxy for asynchronous scenario, Error is persisted for only monitoring and no signal sent to PI.

It will not be possible to take any action from PI perspective. may be you can triger another proxy to mail interface if you are looking to send the mail from PI by sending the fault details as payload.

https://help.sap.com/saphelp_nw73/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm


If we were to send alerts from Proxy then fault is not required at all.

yeah. You can handle the exception and send the mail without raising the fault error. But raising fault error will be helpful to restart the message again. For example if the correct data is not present, fail the message and restart the message after the data correction.

If the requirement is to send mail, I am not sure if it makes any difference whethr it is sent from PI or ECC.

Raising fault error and sending mail also makes sense as it will immediately notifiy business, so that they can take action.

Another suggestion would be using below option. I have not tried this but author says it works for application error and system errors.

https://blogs.sap.com/2013/02/26/sap-pi-731-abap-proxy-monitoring-and-alerting-using-cbma/

former_member190293
Active Contributor
0 Kudos
ashish_goel4
Active Participant
0 Kudos

Thanks Evgeniy for the reply. But my requirement is to send email only in case of exception not otherwise.

How can I achieve this ?

Regards,

Ashish

former_member190293
Active Contributor

Hi Ashish!

For example, to use Component Based Message Alerting functionality.

Regards, Evgeniy.