cancel
Showing results for 
Search instead for 
Did you mean: 

Need payload in Alert message

Former Member
0 Kudos

Hi Experts,

Can we get the failed message payload in our email alerts for failed interface. Can we achieve that.

Regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Abhay

The standard PI alert mechanism does not have any way to attch payload data.

If you want to display only some part of payload in alert message, then you can use the function module SALERT_CREATE. However in this case, you will be able to handle only the mapping errors.

But for other options say failure in adapter engine due to FCC error in communiction channel, the payload can not be attached.

One work around would be create one more scenario mail to mail. So it will have 2 parts

1. The PI alert message will be placed in a temporary mail server. The alert message will have mesage id in it.

2. PI will read the mail from temporary mail server, in side PI do a look for payload using mesage id and then save it as content of the receiver mail system.

Thanks,

Indrajit

Former Member
0 Kudos

Hi Indrajit,

Could you please give more inputs that how I can use function module SALERT_CREATE  in mapping error to raise alert through PI.

Regards,

Abhay

former_member184720
Active Contributor
0 Kudos

What is your PI version? If you are on > 7.3, you can configure CBMA.

When you create the alert rule, you can enable payload in alert message.

Former Member
0 Kudos

Hi Hareesh,

This alert will send the message id and error category . My requirement is to get the actual payload of message . let say order number and quantity tag is there in payload which I need in alert.

REgards, 

Former Member
0 Kudos

Check the below thread reply given by

http://scn.sap.com/thread/3209352

Regards,

Suhale Shaik.

Former Member
0 Kudos

Hi ,

I think below link will help to meet up the recruitment

http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/10/07/enhancing-cbma-alerts-and-message...

Regards,

Abhay

former_member184720
Active Contributor
0 Kudos

Yes. That is what it should do. It should attach the entire payload to alert email. Did you give a try?

When you define the alert rule in ID, make sure that you select the "enable payload in alert message".

Former Member
0 Kudos

Hi Hareesh,

I gave try with below link . Gave Xpath for field which I want to populate in Email. Just wanted to know if they below scenario will work for Synchronous interface also.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/10/07/enhancing-cbma-alerts-and-message...

Former Member
0 Kudos

Hi Hareesh,

I tried with option which Ashish has mention is blog.

I gave below details

Sender Component: CRM

Recevier: Third party component name

interface name :SI_CRMOrdercreation_Sync_Out

Namespce- urn://com:OTC:OrderCreationToOMS

Status:Active

In Search Criteria:

Xpath:

/ns0:MT_Ordercreation_Req/Order/tax

I tried to test with above details mention but no luck . Tax field is not getting populated in Alert Email.

Regards,

Abhay