Skip to Content
Technical Articles
Author's profile photo stephen xue

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:

https://www.base64-image.de/

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.

 

7. Once it has been scheduled, you will receive a mail notification for all of the error messages occurred with in last 24 hours like this.

 

when the hyper link has been clicked, you can view the techncial log of that perticular error message as below

 

8. configurations on the mail body

this is how the configured information has been mapped to the mail body receivd.

 

 

Conclusion

  1. Download the template

https://github.com/stephenxue/SCPI-Alert-Notification

2.  Fill up the parameters and that’s it.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ivo Vermeer
      Ivo Vermeer

      Hi Stephen,

       

      That's a great flow, thanks for sharing!

      Author's profile photo stephen xue
      stephen xue
      Blog Post Author

      thanks. let me know if it is not working as expected.

      Author's profile photo Pavan G
      Pavan G

      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

      Author's profile photo stephen xue
      stephen xue
      Blog Post Author

      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.

      Author's profile photo Syambabu Allu
      Syambabu Allu

      Hi Stephen,

      Good one,will try and come back if i faces any issues on the same.

      Thank you,

      Syam

      Author's profile photo Adam Kiwon
      Adam Kiwon

      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

      Author's profile photo stephen xue
      stephen xue
      Blog Post Author

      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.