
last Update: 17th of June 2024
When you look to this Topic from a far Angle, it looks really nice and when you step a bit closer you will see the complexity behind the Task: Connect your SAP Backend (mostly SAP BW and BW/4) to the SAP Analytics Cloud (SAC) were everything is propagated nice and easy.
This Blog is emphasizing the audience for all the option and mandantory connections and pre requisites to ensure the proper Connection between on-premise/Hyperscaler based SAP BW(/4) against SAP Cloud Applications, like SAC, DWC, HANA Cloud and many more.
SAC Dependencies
This graphic illustrates the dependencies which have to be considered when connecting a SAP BW(/4) Backend to a SAP Analytic Cloud or a SAP Datawarehouse Cloud Instance. If all details are discussed here, the Blog will be as long as the one here - SAP MacGyver – Installing SAP SolMan 7.2. Never the less we will highlight some fundamental settings here.
For an overview of connection types and guidelines for system administrators, see the SAP Analytics Cloud Connection Guide.
SAP Analytics Cloud - Connecting Data live/imported
SAP Answer - Live Data Connection in SAP Analytics Cloud: pros & cons
To ensure that you can eliminate the SAP Backend as the source of connection error to SAC the correct Setup of TLS/SSL is absolutely crucial.
Blog - How to Enable CORS on SAP NetWeaver Platform
Blog - demystifying TLS/SSL Settings for NetWeaver
Document - SAP First Guidance – SAP BW on HANA – Edition 2022 => Chapter 2
Since 7.51 (all relevant settings are downported to 7.50) the Cross Origin Resource Settings (CORS) are handled by the System Parameter and the Whitelist Application (tx. UCON_CHW)
icf/cors_enabled = 1
Configure your on-premise SAP ABAP system so that it trusts the Cloud Connector. This step is needed if your live connection uses single sign-on (SAML2/SSL).
Set Up Trust Between the Cloud Connector and Your On-Premise ABAP Systems (BW or S/4HANA)
SAP Analytics Cloud - SameSite Cookie Configuration for Live Data Connections
SAP Help - Configure Principal Propagation for HTTPS
icm/HTTP/mod_0 = PREFIX=/,FILE={path_to_cors_rewrite_file}
Please Update SAP BW(oH) 7.50 at least to SP25, as there is no other server side solution possible. Various client side Workarounds are described in the SAP Note below.
Note 2890576 - After Google Chrome / Microsoft Edge browser updates, Live Data Connections are no lo...
Note 3205694 - SAP Analytics Cloud (SAC) stories (charts and tables) connected to live data sources ...
Note that the UCON Whitelist Scenario and the CORS rewrite modus are complementary Settings to do. The Details in the rewrite.txt must match with the "samesite" settings in the DEFAULT.PFL Profile.
icm/HTTP/samesite = None icm/HTTP/samesite_none_add_secure = DETECT
Note 2887651 - Issues with SameSite cookie handling
Note 2593926 - Incompatible ICM / SAP Web Dispatcher Parameter Changes in 773 - Deprecated, Obsolete...
Note 2733879 - ICM: ERROR => IcmReadFromPartner(id=<nr>): No data from server received
Note 2777159 - WDA: TIME_OUT in CLUR_MIME_HANDLER
Note 3244228 - BW InA: Downport of BW Documents (for BW/4 2.0 and BW/4 2021)
# only from SAP Kernel 7.73 and above HTTP/2 (Client/Server) is supported # SAP NetWeaver higer than 7.51, e.g. 7.53 is needed (BW/4 2.0) icm/HTTP/client/support_http2 = FALSE icm/HTTP/support_http2 = FALSE
Note 3199045 - HTTP/2 - Outbound HTTP requests hang for at least 60 seconds
Note 3235039 - HTTP Connection broken and HTTP_1_1_REQUIRED
Note 3214476 - HTTP response from ABAP application server is incomplete when HTTP/2 is enabled
Note 3201354 - HTTP/2 - ABAP sessions are canceled after a request is canceled by the browser
Note 3190542 - Obsolete OLAP statistic data in table RSDDSTAT
schedule the Report RSDDSTAT_DATA_DELETE regularly
RSDDSTATEVDATA
RSDDSTATHEADER
Keep the RSDDSTAT Tables manageable
Typically I doesn't look that "clean" in the existing Systems.
This is an Example from a fresh Configured SAP BW/4HANA 2021 System.
SAP Help - Manage HTTP Allowlists - HTTP Allowlists Scenario: Process
SAP Analytics Cloud Help - Live Data Connection to SAP BW Using a Direct CORS Connection
Note 2389051 - ICF service for Clickjacking Framing Protection is not active
Note 2578665 - How to maintain the table HTTP_WHITELIST
Note 3059669 - Improving the performance of HTTP_CORS_LOG and HTTP_LOG_LIST update
Note 3147762 - Multiple delete in HTTP Allowlists rules
Note 3167465 - Internal system call for method AUTHENTICATION_SEC_SESSION of CL_HTTP_SERVER_NET
Note 3166410 - Enabling Private Network Access in CORS-Framework.
Whitelist Application - tx. UCON_CHW
tx. UCON_CHW - Details
Please Note, that tx. UCON_CHW cannot handle more than one execution when you save the entries in the UI. This can cause constant connection Problems, as your second or third change is not saved. Furthermore, a completely covered Whitelist doesn't consider missing Exposed Headers!
INA Service - Details
Document - SAP First Guidance – Implement SAP BW/4HANA in the Azure Cloud => Chapter 6.6.4
Note 2541557 - SAP Analytics Cloud with BW live connection - Which SP is recommended?
(this Note contains a XML file with SAP Notes which can be applied with Z_SAP_BW_NOTE_ANALYZER)
Please Note that only SAP BW/4 2.0 can use the hybrid scenario. Component BW4-ME-DWC
Note 2943200 - TCI for BW4HANA 2.0 Hybrid
Note 2945277 - BW/4 - Enable DWC "Import from Connection" for BW/4 Query - Revision 0
Note 2989654 - BW/4 - Enable DWC "Import from Connection" for BW/4 Query - Revision 1
Further Components: DWC-DI-CON, HAN-DP-SDI
If you work with the provided Identity Provider (IdP) by SAP it is recommended to activate the SAML2/SSL Provider (tx. SAML2). To authenticate a user with SAC, the system uses assertion tickets based on Security Assertion Markup Language, version 2.0 (SAML2).
SAP Help - Preparing SAML2
SAP Help - SSO with SAML2 Assertion
SAP Help - SAP Gateway Host as the SAML2 Service Provider
SAP Analytics Cloud Help - >Live Data Connection to SAP BW Using a Direct CORS Connection via Unified Connectivity
Blog - Single Sign-on: SAP Reference Architecture for Identity Access Management
Blog - Getting Rid of Passcodes Thanks to OAuth Client Support
If you get the following error message when calling the tx SAML2 then check, if the entry "CSS Style Sheet" is set to "Active Check" or "Logging". If "Active Check" is applied then make sure, you have maintained the access list to the UI5 Thema cache as well.
SAML 2.0 Local Provider Configuration
Export the MetaData Configuration to share with the SAC Identity Provider (IdP)
SAML2 - Export local System MetaData
Upload the updated IdP MetaData Information to the local SAML2 Provider
SAML2 - Import the updated IdP MasterData
check the SAML2 Provider with the Whitelist Application
The Implementation of the SAP Cloud Connector is quite straight forward.
rpm -i com.sap.scc-ui-2.14.0-8.x86_64.rpm
Document - SAP First Guidance – Implement SAP BW/4HANA in the Azure Cloud => Chapter 6.6.1
Blog - Live Data Connection to SAP BW(/4) using Principal Propagation
Blog - Cloud Connector News ...
SAP Cloud Connector - Details
SAP Analytics Cloud Help - Installing the SAPCP Cloud Connector
SAP BTP Help - Cloud Connector for the Cloud Foundry environment
Blog - Connecting SAC with SAP ANALYTICS Cloud Kit 1.0
Note 2958529 - Connection to administration UI of Cloud Connector fails
Note 3234061 - Configure SNC for BW import connections in SAP Analytics Cloud
https://server.domain.ext:8443 (Administrator/manage)
making the HTTPS access secure is again an intensive "Finger work".
- sapgenpse gen_pse -p server_scc.pse -x changeit -r server_scc.p10 "CN=server.domain.ext O=Company, C=DE" - sapgenpse seclogin -p server_scc.pse -x changeit -O root - server_scc.p10 sending to CA server_scc_cr.p7b - sapgenpse import_own_cert -p server_scc.pse -x changeit -c server_scc_cr.p7b - sapgenpse get_my_name -p server_scc.pse -x changeit -v - sapgenpse export_p12 -p server_scc.pse -x changeit -v server_scc.p12
SAP Help - Recommendations for Secure Setup
SAP Help - Exchange UI Certificates in the Administration UI
SAP Help - Find Your Subaccount ID (Cloud Foundry Environment)
Note 2571763 - Authorization problem in SAP Cloud Conn. when adding Cloud Foundry subaccount
Note 2731253 - Europe Frankfurt regions for subaccounts in SAP Cloud Connector
Note 2987604 - SAP_COM_0200 - Error validating user in HCP (401, Unauthorized)
SAP Cloud Connector - Secure Settings
as "easy" the Implementation of the SAP Cloud Connector is, are much more complex is the Implementation of the SAP Cloud Agent. SAP recommends to install SAP CC and CA on the same server, and here you already have to consider which "default port" you want to chance.
The SAP Cloud Agent is a *.war file which is deployed to an individual Setup of Tomcat 9
With the Setup of the Tomcat Web Server it is like SAP: Everything is documented, but to find a really useful example can be a challenge ... 😉
Please Note that you cannot compare a local Tomcat Installation "quick and dirty" with a server based Installation, there are much more things to consider.
Document - SAP First Guidance – Implement SAP BW/4HANA in the Azure Cloud => Chapter 6.6.2.1
SAP Help - Installing SAP Analytics Cloud Agent
Note 3136559 - SAP Analytics Cloud agent 1.0.345
To understand the Configuration of Tomcat see the following graphic:
to create the file setenv.sh in the directory $CATALINA_BASE/bin is suitable for later setup of SSL.
CAROOT=/opt/apache-tomcat-9.0.58/sec CATALINA_BASE=/opt/apache-tomcat-9.0.58/ CATALINA_HOME=/opt/apache-tomcat-9.0.58/ JAVA_HOME=/opt/sap/sapmachine-jdk-11.0.14.1/ JRE_HOME=/opt/sap/sapmachine-jdk-11.0.14.1/ LD_LIBRARY_PATH=/opt/apache-tomcat-9.0.58/lib:/opt/openssl/lib:/usr/local/apr/lib:$LD_LIBRARY_PATH PATH=/opt/sap/sapmachine-jdk-11.0.14.1/bin:/opt/openssl/bin:/usr/sap/hostctrl/exe:$PATH SECUDIR=/opt/apache-tomcat-9.0.58/sec
Note 1648573 - How to configure SSL/TLS on Tomcat in BI 4.x
Note 2924641 - Configuring HTTPS or Corba SSL with the SSL Setup Wizard
Note 2631190 - Download location of SSL certificates required for Support Hub Connectivity conf.
Note 2827658 - Automated Configuration of new Support Backbone Communication - Update 02
Create the directory /opt/apache-tomcat-9.0.58/sec
There are different tools you can use here, and you have to make sure that the Tomcat user find’s them accordantly, like keytool, mkcert, openssl, (sapgenpse)
Get the program “mkcert” from - https://github.com/FiloSottile/mkcert
The tool mkcert creates several files automatically, instead of using several other tools for this task.
Create a keystore file to store the server's private key and self-signed certificate by executing the following command and specify a password value of “changeit”:
Tomcat 9 - Welcome
To allow the access via user/password to the Tomcat UI, you have to maintain an addition file (manager.xml) at the following location - Tomcat 9 Help - HTML User-friendly Interface
Tomcat 9 - manager.xml
now you can access the deployed applications on the Tomcat 9 Web Server.
Tomcat 9 - Server Status
to check the Version of the C4A_AGENT.war the calling URL is different.
https://server.domain.ext:1443/C4A_AGENT/deploymentInfo
SAP Cloud Agent - Version
finally, the details for the SAP Cloud Agent can be added to the SAP Cloud Connector.
SAP Cloud Connector and Cloud Agent - Details
SAP Help - Find Your Subaccount ID (Cloud Foundry Environment)
Note 2571763 - Authorization problem in SAP Cloud Conn. when adding Cloud Foundry subaccount
Note 2731253 - Europe Frankfurt regions for subaccounts in SAP Cloud Connector
Note 2987604 - SAP_COM_0200 - Error validating user in HCP (401, Unauthorized)
Additional Functionality for Planning in the SAC requires an additional Agent for SAP HANA. For connecting SAP Data Warehouse Cloud to on-premise systems, the Data Provisioning Agent (DP Agent) is required. Remote Function Call (RFC) acts as the standard interface for communication between SAP systems.
Blog - Connect DWC to SAP Source System using SNC RFC
Document - SAP First Guidance – Implement SAP BW/4HANA in the Azure Cloud => Chapter 6.3
Start the SDI Agent Configuration as follows:
h43adm@server:/usr/sap/dataprovagent/bin> ./agentcli.sh --configAgent
Smart Data Integration Agent for SAP HANA
In case the following error message happens when there is a big spike in activity (workload) and the DP server can't quite keep up.
Note 3065904 - Error: "Persistent data store is full" for SDI replication
ALTER SYSTEM ALTER CONFIGURATION ('dpserver.ini', 'SYSTEM') SET ('persistence', 'receiver_data_store_max_store_size') = '20000000000' WITH RECONFIGURE;
Now you can logon with SAML2/SSL to your SAP Identity Provider (IdP) and connect to the Backend.
If you have a lot of development ongoing, make sure that you freeze stable connections/models/stories and Whitelist Applications to avoid the constant change of these crucial parameters.
SAP Analytics Cloud Help - Live Data Connection to SAP BW Using a Direct CORS Connection via Unified Connectivity
SAC Troubleshooting is like looking for the "Needell in the Haystack" or "pocking into a Wasp Nest". The Error can be new or known, mostly limitation of the SAC Application, or Network/Performance Problems from the SAC Application triggered.
Note 2544696 - Failed to connect to system in SAP Analytics Cloud *** Master KBA ***
Note 2589761 - Connecting to Live Data in SAP Analytics Cloud *** Master KBA ***
Note 2832606 - Unsupported Features with SAP Data Warehouse Cloud Live Connections in SAP Analytics ...
Note 2887651 - Issues with SameSite cookie handling
Note 2932647 - Supported and unsupported features with SAP BW/4HANA Model Transfer in SAP Data Wareh...
Note 3004356 - Environment list is blank when creating a model using BPC Live Data Connection in SAP...
Note 3117800 - Information/Restrictions Note for SAP Data Warehouse Cloud, SAP BW Bridge
Note 3123817 - BW/4 integration with SAP Data Warehouse Cloud - Enable model import for remote DAC
Roland Kramer, SAP Senior Architect for Analytics, cobicon
@SAPFirstGuidance
“I have no special talent; I am only passionately curious.”
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |