Let's explore the standard process for creating live data connections to cloud applications. Creating live data connections to cloud applications can be broken down into three key steps:
- Set up a communication system in the cloud application.
- Set up a communication arrangement in the cloud application.
- Create the live data connection in SAP Analytics Cloud.
Prerequisites
- SAML SSO must be enabled in SAP Analytics Cloud.
- A system user who logs on to both the cloud application and SAP Analytics Cloud system must be created using the SAML Identity Provider (IdP) in both the cloud application and SAP Analytics Cloud. It is used by both systems when creating the live data connection.
For example:
- SAP Analytics Cloud: BI Admin role is required.
- SAP S/4HANA Cloud: The Administrator role (role template ID SAP_BR_ADMINISTRATOR) is required.
- In order for the connection from SAP Analytics Cloud to the cloud application to be successful, the communication user name in the cloud application must be the same as the SAML attribute used to authenticate users to SAP Analytics Cloud.
For example, if the USER ID field is used in SAP Analytics Cloud, then the USER ID field must match the communication User Name of the cloud application system.

Where cloud application system user names can't have special characters, such as SAP S/4HANA Cloud, then the SAP Analytics Cloud system can't be configured to use the Email attribute for authentication.
Scenario: SAP S/4HANA Cloud
We'll use SAP S/4HANA Cloud as the example cloud application in this lesson. In this scenario, users need to create stories in SAP Analytics Cloud using data that is held in SAP S/4HANA Cloud, so a live connection will be created using OAuth. With OAuth, you do not need to configure SAP Analytics Cloud to use the same SAML IdP as you use for SAP S/4HANA Cloud.
SAP Analytics Cloud is used as analytics client consuming SAP S/4HANA Cloud data exposed using SAP S/4HANA Cloud analytical queries called CDS views. For this purpose, you can configure a live data connection in SAP Analytics Cloud. It allows you to create an SAP Analytics Cloud model based on an SAP S/4HANA Cloud analytical query and consume the result set in an SAP Analytics Cloud story.

Set Up a Communication System
This step is completed by the SAP cloud application administrator. Before the communication system is created, you provide the SAP S/4HANA Cloud administrator with the SAP Analytics Cloud tenant URL.
The process to create a communication system for live connections to cloud applications is slightly different than the one used for data import connections. The SAP S/4HANA Cloud administrator will:
- Open the Communication Systems app and create a new communication system.
- Add a System ID and System Name.
- Enter the Host Name.
- Add the SAP Analytics Cloud Provider Name to the OAuth 2.0 SAML Issuer field.
- Enable OAuth 2.0 Identity Provider, by moving the switch to On.
- In the User for Inbound Communication section, they assign the system user.

Once the communication system is created, they provide you with the token User Name and Password as you will need them when creating the connection in SAP Analytics Cloud.
Then, once the connection is created in SAP Analytics Cloud, you provide the Provider Name and signing certificate that will need to be uploaded in order to complete the SSO.

Set Up a Communication Arrangement
This step is completed by the SAP cloud application administrator. After the communication system is created, the SAP S/4HANA administrator then creates the communication arrangement. The SAP S/4HANA Cloud administrator will:
- Select the SAP_COM_0065 communication scenario.
- Add the Communication System that was created.
- In Additional Properties, they add the Tenant ID and ensure that the System Alias field is blank.
- In Inbound Communication, they select the User Name for the system user and add OAuth 2.0 to the Authentication Method.
- Set all Outbound Services to Inactive.

Once the communication arrangement is created, they provide you with the information you will need to fill out the Host and OAuth Scope fields when creating the connection in SAP Analytics Cloud.
Note
Only one communication arrangement of type SAP_COM_0065 can be created per SAP Analytics Cloud tenant and a communication user can only be used in one communication arrangement of type SAP_COM_0065. So, if you are setting up live data connections from multiple SAP Analytics Cloud systems to the same SAP S/4HANA Cloud instance, then you will require multiple communication users.

Connection Creation
This step is completed by you, the SAP Analytics Cloud administrator. A new connection is created in SAP Analytics Cloud.
Data modelers can then use data from this live connection by creating new live models in SAP Analytics Cloud.
We will cover the steps in detail in the practice exercise for this lesson, however, using SAP S/4HANA Cloud as a cloud application example, let's take a look at the summary of the process flow.
- In the side navigation menu, go to Connections.
- Select Add Connection and select SAP S/HANA from the Connect to Live Data options.
- In the New SAP S/4HANA Connection dialog, enter a connection Name and Description.
- Enter the following information, as provided by the SAP S/4HANA Cloud administrator:
- Enter the Host.
- Enter the Token Service User used to connect to the cloud application.
- Enter the Token Service Password for the inbound communication user.
- Enter the OAuth Scope as a space-separated list.
For example:
SAP_BW_INA_BATCHPROCESSING_HTTP SAP_BW_INA_GETCATALOG_HTTP SAP_BW_INA_GETRESPONSE_HTTP SAP_BW_INA_GETSERVERINFO_HTTP SAP_BW_INA_LOGOFF_HTTP SAP_BW_INA_VALUEHELP_HTTP
- Download the signing certificate. Provide this to the SAP S/4HANA Cloud administrator, who will upload it in the communication system to create the trusted connection.
- Select OK. The new connection is added to the list of connections in the Connections area in SAP Analytics Cloud.

Note
Users must have Read or Maintain privileges on the Connection permission in SAP Analytics Cloud in order to view models and stories created from this connection.Additional Information
Detailed steps for creating a live data connection to SAP S/4HANA can be found here: Live Data Connection to SAP S/4HANA Cloud Using OAuth 2.0 | SAP Help Portal.