SAP Cloud ALM can forward events to external ticket systems to create incidents or cases. This page describes the setup and the mapping definition of the integration. The integration to ticket systems is always bi-directional and requires status updates from the ticket system back to SAP Cloud ALM.
Any ticket system can be connected to SAP Cloud ALM using the provided External API Integration capabilities. Depending on the environment the following integration types have to be distinguished.
SAP Cloud ALM provides an ready-to-use integration with ServiceNow Incident Management including a pre-defined API mapping. Only the maintenance of a destination to Service Now with authentication information is required. In case of advanced needs the mapping file can be adjusted.
The ticket system must:
Expose REST APIs for incident manipulation
If the ticket system does not match the requirements for a simple integration, an integration can still be achieved by using SAP Integration Suite or 3rd party API Integration HUB platform.
Kindly note that each integration of type ticket needs a 1:1 mapping of event situation and ticket number and that it is mandatory to store the ticket number in SAP Cloud ALM to ensure proper functionality of the integration. The only way to store the ticket number in SAP Cloud ALM is at the time of the create ticket API call. The API called must therefore return the ticket ID synchronously in this call.
It is recommended to include SAP Cloud ALM partners in such projects to accelerate the implementation and to ensure long-term support of the solution.
To connect from SAP Cloud ALM to the external ticket system, a destination must be configured in the BTP subaccount, where SAP Cloud ALM is deployed.
Case 2: The external ticket system is ServiceNow Incident Management
To establish connectivity to ServiceNow Incident Management you can ignore the steps above and configure the connectivity in Landscape Management in SAP Cloud ALM. Refer to "Example: Configure Integration with ServiceNow Incident Management" below for details.
To map and convert the available values of the event situation outbound integration with the API definition of the target system a field or value mapping is necessary in most cases. This mapping can be achieved for simple integrations by providing a mapping file in SAP Cloud ALM directly. The possible options for mappings are described in the SAP Cloud ALM documentation. The format of the event situation API is also documented there.
The return values of the integration must return an externalId and externalNumber of the created ticket. During runtime these values are stored in SAP Cloud ALM to map the event situation in SAP Cloud ALM to the ticket in the ticket system.
If the provided mapping capabilities are not sufficient or if a single API call a single API call from SAP Cloud ALM to the ticket system is not sufficient to create or update a ticket, additional integration logic must be defined in an integration system.
With the destination and the mapping file the definition of the external API endpoint in Cloud ALM can be completed by creating a webhook and the subscription. To make the integration available as for creation of tickets, the “External Ressource Type” must be “Incident”. As “Destination Type” the name of the ticket system can be used (free text field). The “Ressource Type” in the subscription definition must be set to “CALM Event Situation”.
After the subscription is fully maintained as explained above the available subscriptions of type incident are then available in the event configuration for “Create Ticket” event action. To enable ticket creation the switch create ticket needs to be turned on and the subscription with the mapping and webhook for this event type can be selected.
You can configure the event actions for monitoring events from the configuration page in the relevant monitoring application (Business Process Monitoring, Integration & Exception Monitoring, Job & Automation Monitoring, Health Monitoring).
You can configure the event actions for status events (Disruptions, Degradations , Maintenance, Customer Communication events from Business Service Management or SAP for Me Notifications) as described here.
For monitoring events it is required to update the status of event situations whenever a ticket is solved. Doing so will ensure, that the corresponding event situation for the ticket is also completed in Cloud ALM and new occurrences of the same issue will no longer try to update the already solved ticket, but creates a new ticket instead.
To achieve this the ticket system processing rules must be updated to trigger a callback into Cloud ALM using the Event Situation API. With the API two different calls are possible – either by the event situation id as generated in Cloud ALM (this requires the event situation id to be transferred and persisted in the ticket system) or by the external id of the ticket in the ticket system, which is stored in Cloud ALM during the ticket creation. The details about the API to be called are available here.
For status events (Disruptions, Degradations, Maintenances), the event situation will be closed automatically some time after the event is completed. A call back from the ticket system is therefore not required and also not supported.
The provided example solution for integrating ServiceNow Incident Management and SAP Cloud ALM for Operations is intended to enable a rapid prototyping and as baseline for customer specific implementations. This solution does not consider the back communication from ServiceNow to SAP Cloud ALM as well as specific customer ITSM process definitions or grouping of multiple event situations into single tickets.
SAP recommends to use the provided mapping as starting point and create a productive integration together with an integration expert (SAP service delivery or SAP partner) to ensure a smooth integration into customer service processes.
A new cloud service of type "ServiceNow" and endpoint is defined in Landscape Management
The rest of the steps is performed in SAP Cloud ALM.
You can reuse the same webhook in different subscriptions as long as the target is the same table in the same ServiceNow instance.
After creating the webhook you now can create the subscription.
The view "Mappings Management" allows you to maintain your own mappings of the fields in the event towards the fields in the incident. SAP ships a standard mapping to map SAP Cloud ALM events to incidents in a ServiceNow with the standard setup.
If you have customized your ServiceNow instance, it is recommended to create your own mapping and adjust it according to the customizing in your ServiceNow instance. You can copy the SAP-delivered mapping and adjust it.
The mapping for ServiceNow incidents consists of the following components:
You can find more information in the fields available in the standard mapping in the SAP Help Portal.
After configuring the integration between SAP Cloud ALM and ServiceNow you need to create an event action to trigger incidents from events
For events triggered from monitoring applications:
Activate event actions for status events (Disruptions, Degradations, Maintenances, Customer Communications) triggered from Business Service Management or SAP For Me as described here.
For analysis of missing or incomplete integrations the following tools and steps are provided by SAP Cloud ALM to investigate the issue:
Using the Intelligent Event Processing Logbook provides the capability to search for event situations which happened in SAP Cloud ALM. Especially to verify if an event was raised as expected this functionality is the first entry point into each analysis. The analytical steps are as follows:
Within the External API Management application the subscriptions and mappings for external APIs are managed. Also available there is a console application, which shows all calls from Cloud ALM to the external APIs. Using this a missing or failed call can be easily identified. Based on the timestamp of the event action as seen in the Intelligent Event Processing Logbook it is possible to search to the API call in the console and to identify for each call:
Also available in this screen is the correlation id, which is necessary in case of tickets to the SAP Cloud ALM team. Please raise issues to component SV-CLM-OP-IEP.