Skip to Content
Technical Articles
Author's profile photo Sonam Thote

SAP Analytics Cloud Live Data Connection to SAP BW

This blog post will show you how to create a live data connection from SAC to an on premise BW system. Main feature of live data connection is that changes made to data in the on-premise data source is immediately reflected in the Stories and models based on that data source. Check here for an overview of SAC connections and guidelines. Below is the architecture for live data connection to a BW/4HANA system using Direct connection type. A direct connection type is recommended if you don’t want to set up a reverse proxy on you local network. SAP documentation has been shared for the same in references at the end of the blog post.

System Requirements:

  • SAP BW/4HANA 1.0 SP4 or higher
  • SAP BW/4HANA 2.0 SP0 or higher
  • Web Browsers such as Google Chrome, Internet Explorer, Safari, Firefox, etc
  • SAP Analytics Cloud Account.

Before moving on to the steps, we need to make sure of the below points:

  1. Configure your SAP on-premise data source to issue cookies with specific attributes to ensure that Chrome and other browsers allow cross-site access to your SAP on-premise data source cookies from SAP Analytics Cloud.
  2. Ensure that the InA package (/sap/bw/ina) or a higher-level package on your SAP NetWeaver system is configured for basic authentication.
  3. SAP Info Access Service (InA), version 4.10.0 or above, should be active in you on-premise system.

Moving on to the Steps to follow:

Configure CORS support on your SAP NetWeaver system.

Enable Cross-Origin Resource Sharing (CORS) in your system parameters.

Enter transaction code: RZ11.

 

Enter Parametericf/cors_enabled

 

Select Display.

Click on Change Value.

Set Value to 1.

Save changes.

 

 

Note: Every time the on-premise server is restarted the above steps would need to be redone.

Add SAP Analytics Cloud to the HTTP whitelist.

Enter transaction code: /NUCONCOCKPIT.

Change Scenario to HTTP Whitelist Scenario.

Change the Mode of Cross-origin Resource Sharing to Active Check.

Double-click Cross-origin Resource Sharing.

Select the Display/Change icon.

Under Whitelist, select the Add icon, and in the Input Window, add the following information:

    • Service Path: Add /sap/bw/ina.
    • Host rule: Add your SAP Analytics Cloud host. For example, mytenant.us1.sapbusinessobjects.cloud.
    • Allowed Methods: Select GETHEADPOST, and OPTIONS.
    • Add the following to Allowed Headers:
      • x-csrf-token
      • x-sap-cid
      • authorization
      • mysapsso2
      • x-request-with
      • sap-rewriteurl
      • sap-url-session-id
      • content-type
      • accept-language
    • Add the following to Exposed Headers:
      • x-csrf-token
      • sap-rewriteurl
      • sap-url-session-id
      • sap-perf-fesrec
      • sap-system
    • Allow Credentials: Ensure this is selected.

Save this information.

Verify end-users’ web browser configuration and access.

Your end users’ web browsers must be configured to:

  • Allow pop-up windows from the SAP Analytics Cloud domain: [*.]sapbusinessobjects.cloud.
  • Allow 3rd party cookies from the SAP BW server’s domain or the domain of your reverse proxy. For example, in Internet Explorer 11, go to Internet Options  Security  Trusted Sites, add your domain name, then select Enable Protected Mode.

Add a remote system to SAP Analytics Cloud:

Check the SAP documentation here.

Go to  (Main Menu)   Connection  Connections   (Add Connection)

 

The Select a data source dialog will appear.

Expand Connect to Live Data and select SAP BW.

In the dialog, enter a name and description for your connection.

The connection name cannot be changed later.

Set the connection type to Direct.

Add your SAP BW host name, HTTPS port, and Client.

(Optional) Choose a Default Language from the list.

This language will always be used for this connection and cannot be changed by users without administrator privileges.

Under Authentication Method select User Name and Password.

Enter an SAP BW user name and password.

Select OK

 

Conclusion:

By following all the above steps you will be able to save this connection. Further stories and models can be built using this connection as source. 

If you like it, I appreciate your rating for this blog post! ?

 

References:
1.Live Data Connection to SAP BW Using a Direct Connection and Password Authentication
2. Live Data Connection to SAP HANA Using a Tunnel Connection and SSO

Assigned Tags

      10 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo ELVIN BAGHELE
      ELVIN BAGHELE

      Good Work !!. Thanks for sharing lot of information at one palce.

      Author's profile photo Sh. F.
      Sh. F.

      Nice Blog Sonam, keep on

      a question, can you show us how to achieve the following steps in the system, or do we need the basis team here?

      1. Configure your SAP on-premise data source to issue cookies with specific attributes to ensure that Chrome and other browsers allow cross-site access to your SAP on-premise data source cookies from SAP Analytics Cloud.
      2. Ensure that the InA package (/sap/bw/ina) or a higher-level package on your SAP NetWeaver system is configured for basic authentication.
      3. SAP Info Access Service (InA), version 4.10.0 or above, should be active in you on-premise system.

      BR,

      Sherif

      Author's profile photo Sonam Thote
      Sonam Thote
      Blog Post Author

      Hi Sherif,

      Yes you will need the basis team here, you can also attempt to setup yourself if you have the required roles. Follow the below links to gain more knowledge on this.

      1. To configure your SAP on-premise data source to issue cookies this link would be helpful https://www.sapanalytics.cloud/direct-live-connections-in-sap-analytics-cloud-and-samesite-cookies/
      2. To more info on the InA services and setup basic authentication this link would be helpful
      Author's profile photo Jessica Herrmann
      Jessica Herrmann

      Hello Sonam,

      thank you for your blogpost. I was wondering if the realtime connection is also available to connect the SAC with SugarCRM.

      Thank you for your help.

      Best regards

      Jessica

      Author's profile photo Ned Falk
      Ned Falk

      extra%20info%20needed%20for%20publisingThanks for the blog..  there is another requirement…related to the live connections.  That is confusing this non basis guy (me)  It is a additional requirement needed to publish SAC stories from live connection is is accessed in the advanced tab of the SAC connection,.    It seems like this is a user from cloud platform and this user also needs a INA role based on the errors I receive.

      extra info needed for publising

      Could someone clear up the additional  info required in these advance setting at the bottom of the live connection.

      Location:
      Virtual Host  / Port

      User / pw and what roles are acquired.

      Author's profile photo Sonam Thote
      Sonam Thote
      Blog Post Author

      Hi Ned,

      In live data connection you have to grant the INA_ROLE to a user. By default, no user has this role granted. Please refer point 4 of this blog.

      If this doesn’t solve the problem can you try setting up the connection in the below given way. Also could you provide the error screenshot. The user can be lacking roles in SAC or in on-premise system.

       

       

      Author's profile photo Ned Falk
      Ned Falk

      Thanks..

      I am not being clear.  There are two parts of the live connection.. look at the difference in my screen shot.  vs your original one for the live connection in your original blog.    I have no problem with my user id on the S4 ( bw) box it has the correct info and roles for my user and I can use  it for a live connection..  just as you describe,  but there is a new thing..  a  setting under "advanced" at the bottom of the live connection  screen that needs to be set up to allow the system to execute the PUBLICATION.  It is I am 99% sure for the cloud platform to execute the query.... So I need very specific info to help me set these settings because our basis team switched!  I do not access the cloud cockpit much.

       

      thanks in advance

       

       

      extra%20info%20at%20the%20bottom%21 the part you showed  ( that works fine)  this is the top

      extra info at the bottom!

      Author's profile photo Giovanni Leggio
      Giovanni Leggio

      Hi Ned,

      You need to setup the cloud connector for this.

      This feature is documented here:

      https://help.sap.com/viewer/00f68c2e08b941f081002fd3691d86a7/release/en-US/f3963783c51e4442b0192aa4a6989b80.html

      Hope you are well,

      John

      Author's profile photo Messaoud Issad
      Messaoud Issad

      Hi Sonam,

       

      Thank you for your interesting article. It got me thinking about one question:

      I have read in another blog that Live-Connectivity via Direct (CORS) is the only option, from SAC-Version 2018.22 on.

      You are writing as if there still exists the choice between Reverse Proxy and CORS. Would you please clarify this issue for me?

      Thank you very much.

      Sincerely

      Mesud

      Author's profile photo Sayali Bedage
      Sayali Bedage

      Hi Sonal,

       

      Thank you for this blog.

      I have a query. Is it possible to provide data-level security in the model with a Live connection to BW4HANA?

      E.g. I want to show data from country A to user1 and data from country B to user2 for the same story.