Prepare Connectivity to SAP S/4HANA On-Premise

To be able to successfully validate and use a connection to SAP S/4HANA, certain preparations have to be made.

Remote Tables

Before you can use the connection for remote tables, the following is required:

  • If you want to use federated access to CDS view entities using the ABAP SQL service exposure from SAP S/4HANA, see Using ABAP SQL Services for Accessing Data from SAP S/4HANA (recommended for federation scenarios).

  • If you want to federate and replicate data using SAP HANA smart data integration, the following is required before you can use the connection (legacy):

    • An administrator has connected an SAP HANA smart data integration Data Provisioning Agent to SAP Datasphere and registered the ABAPAdapter.

      For the Language setting in the connection properties to have an effect on the language shown in the Data Builder, Data Provisioning Agent version 2.0 SP 05 Patch 10 (2.5.1) or higher is required.

      For more information, see Preparing Data Provisioning Agent Connectivity.

    • The ABAP user specified in the credentials of the SAP ABAP connection needs to have a specific set of authorizations in the SAP ABAP system. For more information, see: Authorizations in the SAP HANA Smart Data Integration and SAP HANA Smart Data Quality documentation.

    • If you want to stream ABAP tables for loading large amounts of data without running into memory issues, you need to configure suitable security privileges for successful registration on an SAP Gateway and you need to create an RFC destination of type TCP/IP in the ABAP source system. With the RFC destination you register the Data Provisioning Agent as server program in the source system. For more information, see Prerequisites for ABAP RFC Streaming.

Data Flows

Before you can use the connection for data flows, the following is required:

  • An administrator has installed and configured Cloud Connector to connect to your on-premise source.

    In the Cloud Connector configuration, an administrator has made sure that access to the required resources is granted.

    For more information, see Configure Cloud Connector.

    See also: SAP Note 2835207 Information published on SAP site (ABAP connection type for SAP Data Intelligence)

  • If you want to enable secure network communication (SNC) to an ABAP-based on-premise system, which you want to connect to for using data flows, configure SNC in the Cloud Connector and consider the SNC-specific settings when adding the system mapping information:

    • In the Back-end Type field, select ABAP System.

    • In the Protocol field, select RFC SNC.

    • In the Principal Type field, select X.509 Certificate.

    • In the SNC Partner Name field, enter the ABAP system's SNC identity name (for example, p:CN=SID, O=Trust Community, C=DE). The SNC partner name needs to contain the correct SNC identification of the ABAP system. The value can typically be found in the ABAP system instance profile parameter snc/identity/as (and hence is provided per application server).

    For more information about configuring SNC, see Initial Configuration (RFC) in the SAP BTP Connectivity documentation.

Replication Flows

For information about minimum system versions and other prerequisites, see SAP S/4HANA and Other ABAP Sources for Replication Flows.

Before you can use the connection for replication flows, the following is required:

  • An administrator has installed and configured Cloud Connector to connect to your on-premise source.

    In the Cloud Connector configuration, an administrator has made sure that access to the required resources is granted.

    For more information, see Configure Cloud Connector.

    See also: SAP Note 2835207 Information published on SAP site (ABAP connection type for SAP Data Intelligence)

  • If you want to replicate CDS view entities using the ABAP SQL service exposure from SAP S/4HANA, see Using ABAP SQL Services for Accessing Data from SAP S/4HANA.

  • If you want to enable secure network communication (SNC) to an ABAP-based on-premise system, which you want to connect to for using replication flows, configure SNC in the Cloud Connector and consider the SNC-specific settings when adding the system mapping information:

    • In the Back-end Type field, select ABAP System.

    • In the Protocol field, select RFC SNC.

    • In the Principal Type field, select X.509 Certificate.

    • In the SNC Partner Name field, enter the ABAP system's SNC identity name (for example, p:CN=SID, O=Trust Community, C=DE). The SNC partner name needs to contain the correct SNC identification of the ABAP system. The value can typically be found in the ABAP system instance profile parameter snc/identity/as (and hence is provided per application server).

    For more information about configuring SNC, see Initial Configuration (RFC) in the SAP BTP Connectivity documentation.

  • Making use of fast serialization requires the following prerequisites:
    • The endpoint is either RFC or RFCLB (for load balancing via message server). Fast serialization is not available for endpoints WSRFC or SQL.

    • The SAP S/4HANA on-premise system needs to support the feature.

    • In the SAP S/4HANA on-premise system, the feature has not been disabled via parameter APE_DISABLE_RUCKSACK in DHBAS_RUNTIME configuration table.

    For more information about using fast serialization in SAP Datasphere and its prerequisites, see SAP Note 3486245 Information published on SAP site.

Model Import (Data Access: Remote Tables)

Supported source versions: SAP S/4HANA 1809 or higher (SAP_BASIS 753 and higher)

Before you can use the connection to import entities with data access Remote Tables, the following is required:

In SAP S/4HANA

  • An administrator has followed the instructions from SAP Note 3081998 Information published on SAP site to properly set up the SAP S/4HANA system, which includes:

    1. SAP Note 3283282 Information published on SAP site has been implemented to provide the required infrastructure in the SAP S/4HANA system.

    2. The required corrections have been implemented and checks have been performed to make sure that SAP Note 3283282 Information published on SAP site and subsequent corrections have been applied properly and all required objects to provide the infrastructure are available and activated.

    3. Report ESH_CSN_CDS_TO_CSN has been run to prepare the CDS Views for the import.

  • An administrator has created a technical user with the following authorizations:

    • Authorization object S_SERVICE - service authorizations for the Enterprise Search search service

      Field

      Value

      SRV_NAME

      EF608938F3EB18256CE851763C2952

      SRV_TYPE

      HT

    • Authorization object SDDLVIEW - Search access authorization for the search view CSN_EXPOSURE_CDS

      Field

      Value

      DDLNAME

      <leave empty - this field is not used>

      DDLSRCNAME

      CSN_EXPOSURE_CDS

      ACTVT

      03

    • Authorizations for remote table access via ODP

    • Authorization to access CVERS (ABAPTABLES.CVERS) - to read the backend software release version

    • Authorization to access ESH_CSN_CDSCSN (ABAPTABLES.ESH_CSN_CSDCSN)

  • An administrator has checked that the required InA services are active in transaction code SICF:

    • /sap/bw/ina/GetCatalog

    • /sap/bw/ina/GetResponse

    • /sap/bw/ina/GetServerInfo

    • /sap/bw/ina/ValueHelp

    • /sap/bw/ina/BatchProcessing

    • /sap/bw/ina/Logoff

  • An administrator has activated OData service ESH_SEARCH_SRV in Customizing (transaction SPRO) under Start of the navigation pathSAP NetWeaver Next navigation step Gateway Next navigation step OData Channel Next navigation step Administration Next navigation step General Settings Next navigation step Activate and Maintain ServicesEnd of the navigation path.

Cloud Connector

  • An administrator has installed and configured Cloud Connector to connect to your on-premise source.

    For more information, see Configure Cloud Connector.

Data Provisioning Agent

  • For the remote tables that will be created during the import, the respective prerequisites have to be met including a Data Provisioning Agent with the ABAPAdapter registered in SAP Datasphere.

    For more information, see Remote Tables.

In SAP Datasphere

  • In Start of the navigation pathSystem Next navigation step Administration Next navigation step Data Source Configuration Next navigation step Live Data SourcesEnd of the navigation path, you have switched on Allow live data to securely leave my network.

    For more information, Set Up Cloud Connector in SAP Datasphere.

  • In the side navigation area of SAP Datasphere, click Start of the navigation pathSystem Next navigation step Administration Next navigation step Data Source Configuration Next navigation step On-premise data sourcesEnd of the navigation path, you have added the location ID of your Cloud Connector instance.

    For more information, Set Up Cloud Connector in SAP Datasphere.

  • In Start of the navigation pathSystem Next navigation step Configuration Next navigation step Data Integration Next navigation step Live Data Connections (Tunnel)End of the navigation path, you have created a live data connection of type tunnel to SAP S/4HANA.

    For more information, see Create SAP S/4HANA Live Data Connection of Type Tunnel.

Model Import (Data Access: Replication Flow to Local Tables)

Supported source versions: SAP S/4HANA 2021 or higher (SAP_BASIS 756 and higher)

Before you can use the connection to import entities with data access Replication Flow to Local Tables, the following is required:

  1. You have met all prerequisites mentioned in section Model Import (Data Access: Remote Tables).

  2. You have met all prerequisites mentioned in SAP Note 3463326 Information published on SAP site.

Setting Up OAuth 2.0 Client Credentials

You can use the OAuth 2.0 authentication type with the Client Credentials or Client Credentials with X.509 Client Certificate OAuth grant type if you're using Cloud Connector (for replication flows and data flows) for your connection to SAP S/4HANA. When selecting this authentication type for the connection, technical user propagation is used to authenticate against the on-premise system.

For more information about the required prerequisites, see Configure OAuth 2.0 Client Credentials for ABAP-based Connections.