Skip to Content
Technical Articles
Author's profile photo Utkarsh Upadhyay

SAP System Alerts integration with Microsoft Teams from SAP Cloud ALM

World is changing so rapidly and we wanted everything in our fingertips,

 

With the help of this blog, I will take you a glance with the integration of SAP System critical alerts in Microsoft Teams from the SAP Cloud ALM so that I will help to ease our employees track our SAP Systems critical alert on fingertips without checking in outlook mails or without logging into the SAP systems and also will enhance the quick ideas as productivity booster.

What we will achieve as Outcome of the blogs , We will get the Alert for failed jobs and expired ABAP License . We can also define many more alerts as required to track and BTP on MS Teams

1.       BTP On Teams 2.       Job Failure Alert on MS Teams
BTP%20on%20Teams SAP%20Job%20Failure%20Alert%20on%20Teams

 

Required steps for the preparation and execution are as follows:

Step 1. We will require the azure portal account for setting up SSO with Azure portal and BTP subaccount for exchanging the metadata.

  • Download the SAML metadata for SAP BTP subaccount and upload it in the Azure SAP Cloud Platform application as bellow:

Azure%20SCP%20Upload%20BTP%20Subaccount%20Metadata

Azure SCP Upload BTP Subaccount Metadata

  • Check the Reply URL (Assertion Consumer Service URL) and Put the same value till *.com in the Sign on URL :

  • Now download the Federation Metadata XML from the Azure Portal :

 

  • Create the new trust configuration in SAP BTP Subaccount and upload the downloaded Federation Metadata from Token signing certificate: 

 

Step 2 : Incoming Webhook Application in the Microsoft Teams :

  • Now we need the BTP ALM subaccount access for the setting up Destination for incoming webhook in the target channel to allow external content sharing with Teams channels.

Adding%20Webhook%20Application%20on%20MS%20Teams

 

  • Copy and Save the Incoming Webhook Connector URL . The Connector URL we will mentioning in the destination in BTP ALM Subaccount:

Webhook%20Connector

Step3 : BTP Destination Creation :

  • Create the user with role “Connectivity and Destination Administrator” in the BTP ALM Subaccount

 

  • Create the Destination the in the BTP Subaccount:

BTP%20Destination%20for%20MS%20Teams

Step 4 : SAP Cloud ALM configuration :

  • For generating the events on cloud ALM External API Management tool for the SAP Systems to Teams , it will require to setting up the Webhook .

Webhook%20SetupHere, we will be creating the Webhook with the destination source as BTP Destination, Destination id as Destination name from the steps 4 and External Resource type as Chat.

  • From the Dependencies tab we will be selecting the subscriptions and defining the parameter of webhook and Mapping as below:

Webhook%20SetupWebhook%20Setup

Step 5: Event Generation in Cloud ALM for SAP Service –

  • We have to configuration some sap system in the landscape management.

 

  • Open Job & Automation Monitoring application in ALM  and  enable the alert for the failed job with the path  “SAP System for example PEO.100 client > Configuration of Services/System > Select the Event > Send Chat Notification” . Enable the radio button and select the Subscription Name that we have defined in step4.

SAP%20Cloud%20ALM%20Event%20Selection

Step 6 : Once the job or ABAP License fail the alert on MS Teams will appear as below :

ABAP License Alert on MS Teams Job Failure Alert on MS Teams

MS%20Team%20Alert

 

 

Additional Links to read and follow for more such content :

https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=dotnet

https://support.sap.com/en/alm/sap-cloud-alm/operations/expert-portal/intelligent-event-processing/integration-chat-systems.html?anchorId=section_1150391868

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Kapil Pandey
      Kapil Pandey

      Nice...!! Very help full.

      Author's profile photo Gaurav Sharma
      Gaurav Sharma

      Good one.

      Author's profile photo Amit Kulkarni
      Amit Kulkarni

      Hello Utkarsh,

      Very nice blog. I am having an issue with Event generation on ALM. Configuration on ALM and Teams side is done.

      Can you please let me know how to create an event so as notifications can be sent via teams from ALM

      Author's profile photo Utkarsh Upadhyay
      Utkarsh Upadhyay
      Blog Post Author

      Hi Amit ,

       

      please connect and let me know what exact issue you are facing.

      Author's profile photo Dirk Siemer
      Dirk Siemer

      Hi Utkarsh,

      great blog, easy to follow and helps us a lot to implement the notification via MS Teams.

      But we have one issue: When we get the alert in MS Teams and we klick "Open Alert", nothing happens.
      Could you please confirm if that works for you?

      Author's profile photo Utkarsh Upadhyay
      Utkarsh Upadhyay
      Blog Post Author

      HI Drik,

      Yes , it works It will trigger the HTML Web GUI .

      for example :

      • If the the critical job fails , you will need to click on "Open Alert" then it will trigger the Job & Automation Monitoring app in CALM instance for the specific system then you will need will the check the alert.

      ALM%20Job%20and%20Automation%20Monitoring

      ALM Job and Automation Monitoring

      • Once you click on Run ID, It will trigger the SM37 with HTML WEB GUI for the system.

      SM37%20%28HTML%20WEB%20GUI%29

      SM37 (HTML WEB GUI)

       

      Best Regard,

      Utkarsh