Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
In this series of blog post, we will cover different use-cases of integration between SAP Cloud ALM and external ALM services. All Integration scenario of SAP Cloud ALM are based on the public APIs listed of the SAP API Business Hub.


When events are created in SAP Cloud ALM, you would like to forward those events to an external ticketing system by applying specific transformation rules.



SAP Cloud ALM Resource Changes API

Events sent by SAP Cloud ALM are identified by REST resources of type Event-Situations managed by the SAP Cloud ALM RESOURCE_CHANGES API.

The SAP Cloud ALM Resource Changes API is the API implemented by the web-hooks destination declared in SAP Cloud ALM external management.

The Resource Changes API supports the following operation:

  • POST

    • /resourceChangeCustomUrl

  • Request Body

"subscriptionId": "string",
"resourceType": "string",
"eventType": "string",
"resourceId": "string",
"resource": {}

The parameters resourceType and eventType in the change message indicate which event triggered the changemessage.

Event Situation

Events situation raised by SAP Cloud ALM SAP Cloud ALM support the following list of events:

  1. Event-Situations





The resource body of the EVENT SITUATION is the following:
    "resource": {






        "subject""Ping failed to service S4H",

        "body""System involved: S4H",


        "tags": {






Mapping Rules

A mapping rules transformation file contains 4 sections:

  • _information: mapping information.

  • request: general rules to be applied for all requests payload.

  • response: general rules to be applied for all responses payload.

  • eventTypeMapping: configuration and specific rules to apply for each event type.



4 mapping rules are supported and are applied when transforming a request message payload into a response payload.



maps Direct attribute mapping: Use the "source" value for the "destination" attribute.
"maps": [ 
"destination": "subcategory",
"source": "subEventType"
"destination": "description",
"source": "body"

expressions Expression with placeholders to match the value defined in "format" for the "destination" attribute.
"expressions": [
"destination": "short_description",
"format": "#{eventType}_#{subEventType}"
"destination": "url",
"format": "https://snow/id/#{value}"

choices Attributes and Values mapping. Select the "source" value for the "destination" attribute from the possible values.
"choices": [
"destination": "impact",
"source": "rating",
"cases": [
"when": "Fatal",
"then": "4"
"when": "Error",
"then": "3"
"when": "Warning",
"then": "2"
"when": "All Correct",
"then": "1"
"default": "3"

constants Constant mapping: Use constant specified in "value" for the value of the "destination" attribute.
"constants": [
"destination": "comment",
"value": "New error"
"destination": "endpoint",
"value": "SNOW"




This section contains informative information as version, source, and destination.



        "_source""SAP Cloud ALM Event Situation",

        "_destination""Service Now incidents",

        "_name""SAP Cloud ALM Event Situation to Service Now incidents",






This section contains a set of general mapping rules that will apply to requests.



This section contains a set of general mapping rules that will apply to responses.


EventType Mapping

This section describes the URL attributes mapping for each event type. In addition, specific rules for request / response can be defined to override the general mapping rules.

For each event type, the following parameters can be applied:

  • operation: REST operation to apply.

  • responseRoot: root url. -> Root node from which the response should be read.

  • path: url path parameters -> Specific path pattern (including URL parameters) to concatenate to the relative path.

  • request: mapping rules to apply for the request.

  • response: mapping rules to to apply for the response.

  • displayURL: rules to apply when building the navigation URL to the external resource. This information is added to payload to the response and is used internally by SAP Cloud ALM applications.








       "displayURL": {