SAP Knowledge Base Article - Public

2739109 - SAML SSO Live Connection to BW fails in SAP Analytics Cloud (SAC)

Symptom

  1. Creation Live Connection to SAP BW with SAML SSO fails with error :

You were not automatically logged on to the remote data source. Please ask your administrator to verify the SAML Single Sign On configuration. 

  1. SAML trace shows the error : HTTP/1.1 404 Not found   (https://<Your_ABAP_System>:<Port>/favicon.ico )
  2. Ina package is enabled and test is successful.  Open the following URL in your browser: https://<Your_ABAP_System>/sap/bw/ina/GetServerInfo?sap-client=<Your_Client_ID>. Make sure you are redirected to your IdP login page, and after login you get a JSON response. Replace <Your_ABAP_System> with your ABAP system host, and <Your_Client_ID> with your SAP BW client ID.  
  3. In some cases, the auth popup is shown, but must be closed manually

Environment

  • SAP Analytics Cloud 2018

Reproducing the Issue

  1. Create Live Connection to BW system with User and Password , and it succeeds
  2. Create Live Connection to BW system with SAML SSO following the Product Guide.  Once click OK button, and it fails with the error: 

    You were not automatically logged on to the remote data source. Please ask your administrator to verify the SAML single sign-on configuration.

Cause

There is a misspelling (typo) in the code of IF_HTTP_EXTENSION~HANDLE_REQUEST method in the SAP NetWeaver server.

Resolution

Be sure to add the following code in  IF_HTTP_EXTENSION~HANDLE_REQUEST at SAP NetWeaver Server.

method IF_HTTP_EXTENSION~HANDLE_REQUEST.
    DATA:
          html_content TYPE string.

    html_content = '<html><script type="text/javascript">window.close();</script></html>'.
    server->response->set_header_field( name = 'Cache-Control' value = 'no-cache,no-store').
    server->response->set_cdata( data = html_content ).
endmethod.

Please refer to the Live Data Connection to SAP BW Using a Direct Connection and SSO online help for more details.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, EPM-ODS, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,  BW, direct , Single Sign-On , KBA , LOD-ANA , SAP Analytics Cloud (SAC) , LOD-ANA-BI , Business Intelligence Functionality, Analytic Models , LOD-ANA-PL , Planning , LOD-ANA-BR , SAC Boardroom , LOD-ANA-PR , SAC Predictive , Problem

Product

SAP Analytics Cloud 1.0