cancel
Showing results for 
Search instead for 
Did you mean: 

Include and use custom variables in alert container.

Former Member
0 Kudos

Hi,

I want to include payload specific information in my alert mails. I am looking forward to this approach, to help my customer, directly understand the alert mail by pin pointing a few payload specific primary fields.

I have gone through a few blogs, forum threads and SAP help documents and all say that this is not directly possible in ALRTCATDEF.

Please suggest how i can achieve this without using BPM.

Warm Regards,

Anshul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anshul -

I don't see a way to do this without BPM. You could use the standard container variables in your alert message in case of a communication error. If you require payload specific information, you will have to create a custom report to create the alerts and schedule it in backgroud.

Regards,

TK

Former Member
0 Kudos

Hi,

To include the payload specific information in the alert, you might need to trigger the alert from your mapping. you can handle this situation in the mapping and trigger an alert from UDF with all of your required information. Please check the below blog, it uses the SALERT_CREATE RFC call from UDF and no BPM is required!!

/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

regards,

francis

Former Member
0 Kudos

Dear Francis,

I have gone through this blog already.

To give you a jest of my scenario:

Itu2019s like ECC to PI to SQL synchronous communication. Now if there is a communication error between PI and SQL or there is an error on SQL then how can i use this UDF-RFC combination to raise alerts with payload specific information?

Would appreciate if you can give your inputs on this.

Warm Regards,

Anshul

Former Member
0 Kudos

In the event of communication error, you can't use the UDF to raise an alert. You might have to depend on the standard capabilities of PI to raise alerts or use BPM.

Former Member
0 Kudos

Hi Anshul,

Well, I think in this case you would need a small custom ABAP report.First you will get the message id and interface details from the normal XI alert configured with alert rule and alert categories for the messages fails in the receiver side PI SQL communication.

This will be there in the SALRT table. second step use this message id to get the payload using the function module SXMB_READ_MESSAGE_VERSION_RAW. Then use the function module SALERT_CREATE to create your custom alert with this.Not sure if we have a better approach though.

regards,

francis

Former Member
0 Kudos

Dear Francis,

I will explore on your suggestion and will try to achive the desired results.

Thanks for your valuable inputs.

Dear All,

Thanks for helping me understand this case better.

Warm Regards,

Anshul