Technical Articles
SCPI Alert Notification on Error Messages
There are a few ways to supervise error messages occurred in SCPI. The recommended way is via Solution Manager. What if you do not have a SolMan?
Here is a cheap and simple way.
1. Download the SCPI iFlow
https://github.com/stephenxue/SCPI-Alert-Notification
2. Import the iflow into your package
it will be like this.
3. Prepare for these information
Image1 | Company Logo | if haven’t, replaced by a blank image |
Image2 | Company slogon logo | if haven’t, replaced by a blank image |
Mail Server Address | could be either on the internet or via HANA cloud connector | Mandatory |
CPI Credential | username/password maintained in CPI | Mandatory |
CPI talent URL | A URL in form of https://<talent id>-tmn.hci.ap1.hana.ondemand.com/api/v1 | Mandatory |
Email From | the virtual sender email address | Mandatory |
Email To | The alert notification receiver | Mandatory |
Company Address | Used in the alert signature | Optional, if multiple lines, please separated with <br/> |
Company Website | Used in the alert signature | Optional |
4. Convert Image into base64 string
there are quite a few websites providing free online service. this is the one I am using:
drag and drop the image
you will get a string starting with ‘data:image/png;base64’. click button to copy the string
5. fill the base64 strings of two images files into iflow configuration respectively.
6. Fill up rest of the configurations to the iFlow
Here is an example of mine.
when the hyper link has been clicked, you can view the techncial log of that perticular error message as below
this is how the configured information has been mapped to the mail body receivd.
Conclusion
- Download the template
https://github.com/stephenxue/SCPI-Alert-Notification
2. Fill up the parameters and that’s it.
Hi Stephen,
That's a great flow, thanks for sharing!
thanks. let me know if it is not working as expected.
Hi Stephen,
Thanks for sharing. I was looking for adding company logo and company logo slogan in a mail for one my requirements. This helps.
Regards,
Pavan G
feel free to use it. hopefully the layout meets your requirement. if you are farmilar with HTML programming skill, you can adjust the layout by changeing the xslt mapping inside the package.
Hi Stephen,
Good one,will try and come back if i faces any issues on the same.
Thank you,
Syam
Dear Stephen,
Good to see you again (online).
Besides the existing standard-service SAP Cloud Platform Alert Notification, there is also an enterprise-grade solution (incl. Updates, Maintenance) available in SAP App Center: WHINT Interface Monitoring.
Best regards, Adam
Hey Adam
How are you? Have you been contacted by AGL people for your AMPQ adapter? I have left AGL 3 years ago. What is the covid situation in Germany? Hopefully people are good there. We are under taking serious lockdown in Melboure for over 2 months already. Good thinks is family is good. lol
best wishes, mate.