SAP ERP Connector for CData Sync

Build 24.0.9175
  • SAP ERP
    • Establishing a Connection
      • Configuring Dependencies
      • Supported Editions and Content
      • Accessing SAP Entities
      • Using a Custom Read Table Function
      • Fine-Tuning Data Access
    • Advanced Features
      • SSL Configuration
      • Firewall and Proxy
    • Provider Schema
      • Views
        • SearchFunctions
    • Connection String Options
      • Authentication
        • ConnectionType
        • ConnectionScheme
        • Host
        • SystemNumber
        • User
        • Password
        • Client
        • X509Certificate
        • MessageServer
        • Group
        • SystemId
        • RFCURL
        • MessageServerService
      • Security
        • SNCMode
        • SNCName
        • SNCQop
        • SNCPartnerName
        • SNCLibPath
        • SNCSSO
      • SSL
        • SSLServerCert
      • Firewall
        • FirewallType
        • FirewallServer
        • FirewallPort
        • FirewallUser
        • FirewallPassword
      • Proxy
        • ProxyAutoDetect
        • ProxyServer
        • ProxyPort
        • ProxyAuthScheme
        • ProxyUser
        • ProxyPassword
        • ProxySSLType
        • ProxyExceptions
      • Logging
        • LogModules
      • Schema
        • BrowsableSchemas
        • Tables
        • Views
      • Miscellaneous
        • SAPEdition
        • BAPINameSeparator
        • Charset
        • CheckDecimalNotation
        • EndianType
        • GatewayHost
        • GatewayService
        • GenerateSchemaFiles
        • InitialValueMode
        • Language
        • Location
        • MapNUMCToVarchar
        • MapRAWToVarchar
        • MaxRows
        • Other
        • Pagesize
        • PseudoColumns
        • QueryMode
        • ReadTableDelimiter
        • ReadTableFunction
        • ServerTimeZone
        • StoredProcedureFilter
        • SupportServerSideCount
        • TableMode
        • Timeout
        • TrimStrings
        • UseAdvancedReplication
        • UseInternalNames
        • UseLabels
        • UserDefinedViews
        • UseSimpleNames
        • UseUnicodeRFC
        • WhitespaceToNull

SAP ERP Connector for CData Sync

Overview

The CData Sync App provides a straightforward way to continuously pipeline your SAP ERP data to any database, data lake, or data warehouse, making it easily available for Analytics, Reporting, AI, and Machine Learning.

The SAP ERP connector can be used from the CData Sync application to pull data from SAP ERP and move it to any of the supported destinations.

SAP ERP Version Support

The Sync App enables relational access to tables, queries, and function modules in your SAP R/3, NetWeaver, or ERP/ECC 6.0+ system. See Supported Editions and Content for further details about what editions of SAP and content is supported.

SAP ERP Connector for CData Sync

Establishing a Connection

Adding a Connection to SAP ERP

To add a connection to SAP ERP:

  1. In the application console, navigate to the Connections page.
  2. At the Add Connections panel, select the icon for the connection you want to add.
  3. If the SAP ERP icon is not available, click the Add More icon to download and install the SAP ERP connector from the CData site.

For required properties, see the Settings tab.

For connection properties that are not typically required, see the Advanced tab.

Connecting with the RFC APIs

The CData Sync App uses the SAP RFC interface to connect to an SAP system. The ConnectionType specifies the RFC API you want to use to connect.

You must obtain the SAP libraries corresponding to your RFC API to connect.

Required RFCs

The RFCs used by the CData Sync App are listed as follows. If any listed below are not available, some or all functionality may not work. T-Code SE37 may be used to view available function modules in SAP.

  • DDIF_FIELDINFO_GET
  • RFC_GET_FUNCTION_INTERFACE
  • RFC_GET_STRUCTURE_DEFINITION
  • RFC_GET_SYSTEM_INFO
  • RFC_GET_UNICODE_STRUCTURE
  • RFC_READ_TABLE
  • SLDAG_CHECK_FOR_UNICODE

Connecting to SAP ERP

Set the following to connect:

  • Host: The host name of the target system. Host names can be regular host names defined in a hosts file, an IP address like 123.123.123.123, or an SAProuter address such as "/H/hostname/S/port/H/host/S/port/ ..."
  • User: The user that is authenticating to the SAP system.
  • Password: The password used to authenticate to the SAP system.
  • Client: The client authenticating to the SAP system.
  • SystemNumber: The number by which the target system is defined.
  • Language: The ISO 639-1 language code you use to log into SAP ERP. The default is "EN".

To connect to a machine different from the Host machine, substitute Host with the following:

  • GatewayHost: The gateway host you wish to connect to. If not specified, the provider will attempt to connect to the SAP system specified by Host.
  • GatewayService: The gateway service you wish to connect to. If not specified, the SAP system will use the default "sapgw##" where the "##" is the SystemNumber.

To connect to a distributed system or systems with other configurations, see Fine-Tuning Data Access.

Certificates

In addition to User and Password, the CData Sync App also supports certificate authentication. To use certificate authentication, set the X509Certificate connection property to either point to a file that contains an X509 certificate in PEM format, or the PEM blob directly used for authentication during SAP Logon. In addition to setting X509Certificate, you will need to specify the appropriate SNC connection properties. The SNC connection properties are described under Fine-Tuning Data Access.

SAP ERP Connector for CData Sync

Configuring Dependencies

Connect Using the Classic RFC SDK

To use the Classic RFC SDK without Unicode support provided with the library librfc32.dll, set ConnectionType to Classic. Place the assembly in a location where it is accessible at run time, such as system32 or the bin folder in your installation directory or your path.

Connect Using the Classic RFC SDK with Unicode Support

To use the Classic RFC SDK with Unicode support, set ConnectionType to Classic_Unicode.

Place the following assemblies in a location where they are accessible at run time, such as system32 or the bin folder in your installation directory.

  • librfc32u.dll
  • icudt34.dll
  • icuin34.dll
  • icuuc34.dll

Connect Using the NetWeaver RFC SDK

Prior to connecting, you must have a valid S-User Id and be able to access the SAP software downloading site. You also must be able to download the SAP content from the SAP portal. To download the necessary SDK, follow these steps:

  1. Navigate to https://me.sap.com/softwarecenter.
  2. On the "Downloads" page, search for sap nw rfc.
  3. Click SAP NW FRC SDK 7.50.
  4. Select the platform you use and then download.

To use the NetWeaver RFC SDK, set ConnectionType to NetWeaver.

Place the following assemblies in a location where they are accessible at run time, such as system32 or the bin folder in your installation directory.

  • sapnwrfc.dll
  • icudt34.dll
  • icuin34.dll
  • icuuc34.dll
  • libicudecnumber.dll
  • libsapucum.dll

Connect Using SOAP Interface and RFC URL

To connect using the SOAP interface, set the following:

  • ConnectionType: Set this to Soap.
  • RFCUrl: Set this to the SOAP URL of your SAP system.

The SOAP service must be enabled in your SAP system for this type of connection to work properly.

Connect Using the JCo JAR File

The CData Sync App relies on the SAP RFC to execute queries and retrieve data from SAP. The RFC depends on the JCo (Java Connector) JAR file.

To access the RFC SDK used to communicate with SAP, you can use the SAP JCo (Java Connector). You need to include the sapjco3.jar in your build path and ensure that the native library location for the JAR is set to the folder containing the sapjco3 library.

You must also ensure that the bitness (32-bit or 64-bit) of the libraries matches the bitness of the Java Virtual Machine (JVM) on which your application is running. A mismatch between these can lead to errors where the JVM cannot load the native library, resulting in a failure to establish a connection to the SAP system. Before downloading, check your system's architecture and download the corresponding version of the library.

  • On Windows, place the sapjco3.dll in in the same directory as the sapjco3.jar.
  • On Linux, place the libsapjco3.so file in the same directory as the sapjco3.jar.
  • On Mac OS X, place the libsapjco3.jnilib file in the same directory as the sapjco3.jar.

Follow these steps to download the relevant jar file:

  1. Open the SAP Java Connector.
  2. Select the Jco version that matches your platform.
  3. Click the download link. This opens the login page.
  4. Login to the SAP site with a valid S-User ID.
  5. Download the package.

SAP ERP Connector for CData Sync

Supported Editions and Content

Ways to Communicate with SAP

The CData Sync App can communicate with SAP R/3 systems using the following methods:

  • Business Application Programming Interface (BAPIs)
  • Remote Function Calls (RFCs)
  • SAP Tables
  • SAP Queries
  • IDoc Messages

Terminology

SAP: The term SAP is an umbrella term for all supported SAP editions. This in general indicates SAP ECC version 6+ and SAP S/4 Hana on-premise, but includes other editions that also support the RFC SDK. For the CData Sync App to work, it requires a connection to an edition of SAP that supports the RFC SDK.

Function Module: A function module is a type of program or function in SAP that can be used to execute almost any operation. These modules can be tested and written in SAP via the SE37 TCode.

RFC: A Remote Function Call (RFC) is a type of function module that has been modeled as an API call that can be executed by external applications. This includes using libraries distributed by SAP that are installed on the SAP server, and may also be downloaded from sap.com. Specific RFCs may or may not be maintained across SAP upgrades. There are standard RFCs supplied by SAP, and thus may have differences or may not exist in older editions. Custom RFCs can (and frequently are) built to support integrations, and must be maintained by the SAP customer. By convention, custom RFCs begin with the letter Z.

BAPI: A Business API (BAPI) is a type of RFC distributed and maintained by SAP to give access to business logic operations. BAPIs have methods that are specific to a type of business object. For example, there are about 60 BAPIs related solely to the Customer object. In practice, only a few are typically used.

SAP Table: An SAP table is a table that stores data in SAP. These are not the same as business objects. For instance, there is no Purchase Order table in SAP. Instead, there are many tables that include purchase order data in them, such as EBAN, EBKN, EINA, EKPO, etc. Custom tables by convention begin with the letter Z.

SAP Queries: An SAP Query is a saved object in SAP that details information to retrieve from one or more tables. These are typically used for reporting purposes.

SAP Editions

Our support for RFC connections means any edition of SAP that supports an RFC connection and the specific RFCs we require for the connection will work. Specifically, we support connections to:

  • SAP BW
  • SAP ECC
  • SAP ERP
  • SAP R/3
  • SAP S/4 Hana on-premise

Other editions that support RFC connections may also be supported.

Available Content

The following SAP content is accessible from the CData Sync App:

SAP Tables: SAP Tables are exposed as views automatically via the TableMode connection property. If you know exactly which SAP Tables you want to work with, you can specify them via the Views connection property, which overrides TableMode. Because they contain pieces of the business objects, SAP discourages directly modifying the tables themselves. Instead, it recommends using BAPIs to modify any tablular data. For this reason, our tools do not support direct modification of SAP Tables.

BAPIs and RFCs: BAPIs and RFCs are exposed directly as stored procedures. By default, all RFCs starting with the keyword BAPI are displayed as an available stored procedure. This behavior can be modified by changing the StoredProcedureFilter connection property.

SAP Queries: SAP Queries are also exposed as views, but they are turned off by default. They are less commonly required than SAP Tables and BAPIs. If you want to expose SAP Queries, change the QueryMode connection property.

Raw IDoc and IDoc XML: Intermediate Document (IDoc) files are SAP objects that carry business transaction data from one system to another in the form of an electronic message. IDocs transfer data from SAP to non-SAP systems via Electronic Data Interchange (EDI) systems. When the transfer is between two SAP systems, IDocs employ ALE technology.

For further information, see Provider Schema.

SAP ERP Connector for CData Sync

Accessing SAP Entities

The number of entities in an SAP system can make it difficult to work with when all the entities are surfaced at the same time. The following sections provide an overview of how to choose the SAP entities you want to work with.

See Provider Schema for more information on working with SAP entities.

Filtering SAP Entities

The following connection properties provide basic functionality to select the entities you need:

  • TableMode: Filters tables from the DD02L system table in SAP.
  • QueryMode: Filters queries by your SAP workspace.
  • StoredProcedureFilter: Filters SAP function modules, which are modeled as stored procedures.
Users who need more control over SAP entities can use schema files; saving schemas to a file provides an easy way to include or exclude schemas individually: The Location folder contains the entities you want to surface. Set the GenerateSchemaFiles connection property along with Location to generate schema files at run time.

SAP ERP Connector for CData Sync

Using a Custom Read Table Function

RFC_READ_TABLE

The Sync App uses the SAP RFC_READ_TABLE function to get data from SAP tables. However, it has certain limitations.

As an example, consider the DATA_BUFFER_EXCEEDED exception. The SAP RFC_READ_TABLE has a fixed size of 512 bytes. It can buffer for each row of data, and thus you cannot select more columns than the amount that would fit in this buffer. If you select more than 512 bytes, an exception will occur indicating that you have exceeded the maximum buffer size allowed per row and need to select fewer columns.

RFC_READ_TABLE2

The Sync App also supports the RFC_READ_TABLE2 table read function. You can switch the active table read function to RFC_READ_TABLE2 by setting ReadTableFunction to "/SAPDS/RFC_READ_TABLE2".

Custom Read Table Functions

Install a Custom Read Table RFC

The Sync App includes the code for Z_CUSTOM_READ_TABLE, a custom read-table RFC that is similar to the SAP RFC_READ_TABLE, but with a larger buffer to address the DATA_BUFFER_EXCEEDED problem as well as bypass other RFC_READ_TABLE limitations.

Follow the steps below to use the included custom read-table RFC to bypass limitations with the default RFC_READ_TABLE.

  1. Use the RFC_READ_TABLE function as a template for the new function: Select transaction code SE37 and the SDTX Function Group and copy RFC_READ_TABLE to a new function group or your working function group. In this example, RFC_READ_TABLE is copied to "Z_CUSTOM_READ_TABLE".
  2. On the Attributes tab of the SAP screen, select "Remote Enabled Module".
  3. On the Tables tab, set the DATA parameter to "CHAR8000" (you may need to right-click and then click "Display <-> Change")
  4. On the Source Code tab, paste the example source code for the replacement RFC_READ_TABLE function module located in the "db" subfolder of the installation directory. The code is located in Z_CUSTOM_READ_TABLE.txt, though Z_CUSTOM_READ_TABLE_752.txt is preferred if your SAP ERP instance is running ABAP version 7.52 or later (see section below). Click Save.
  5. Define the imports, tables, and exceptions as documented in the provided custom read table.
  6. Activate the function module and in your connection string set ReadTableFunction to Z_CUSTOM_READ_TABLE, or the name of your function module.

The ABAP 7.52 Custom Read Table

Along with Z_CUSTOM_READ_TABLE.txt, there is also a Z_CUSTOM_READ_TABLE_752.txt file, designed for ABAP version 7.52 and above.

It is mostly the same as Z_CUSTOM_READ_TABLE, but it takes advantage of newly available keywords in ABAP 7.52 to perform paging within the database instead of in the ABAP script itself. This makes paging far more efficient and causes a very noticeable performance boost when working with large tables.

It is recommended to use the Z_CUSTOM_READ_TABLE_752 RFC if at all possible. Note: please follow the link https://www.cdata.com/kb/entries/sap-custom-read-table-function.rst to get the Z_CUSTOM_READ_TABLE_752.txt and Z_CUSTOM_READ_TABLE_752.txt files.

SAP ERP Connector for CData Sync

Fine-Tuning Data Access

Fine Tuning Data Access

  • UseSimpleNames: SAP ERP supports attribute names with special characters that many database-oriented tools do not support. You can use this property to replace any nonalphanumeric character with an underscore.
  • InitialValueMode: Set this to return null or the exact value returned by SAP for fields that have an undefined or unknown value. By default the Sync App returns null.

Connecting to a Distributed SAP System

If you are connecting to a distributed SAP system, such as a system using load balancing, you must set the following additional properties. An administrator can obtain these connection properties on the Connection tab of the System Entry Properties dialog.

  • SystemId: Set this property to the value in the System Id box.

    The SystemId property is the System Id or R3Name of the SAP system. The system Id is a string with a maximum of three characters.

  • MessageServer: Set this property to the value in the Message Server box. If a value is specified in the SAProuter box, prepend the value in the SAProuter box onto the value for the MessageServer connection string property.

    The MessageServer property must be specified when connecting to an SAP system using load balancing.

  • Group: If a value is specified, set this property to the value in the Group/Server box.

    The Group property specifies the logon group being used. The default in most SAP systems will be PUBLIC.

If you are using a message server service other than HTTP, set MessageServerService.

Connecting to a Custom Application Server

If you are connecting to an SAP system with a dedicated application server or a custom application server, you can obtain the following connection properties on the Connection tab of the System Entry Properties dialog.

  • SystemId: Set this property to the value in the System Id box.

    The SystemId property is the System Id or R3Name of the SAP system. The system Id is a string with a maximum of three characters.

  • Host: Set this property to the value in the Application Server box.

    The Host property specifies the host name of the target system. This value can be a regular host name, IP address, or SAProuter address.

  • SystemNumber: Set this property to the value in the SystemNumber box.

    The SystemNumber property defines the target system.

Configuring Secure Network Connections

If the administrator has configured Secure Network Communication (SNC), you need to set the following additional properties. You can obtain the following SNC connection string properties on the Network tab of the System Entry Properties dialog.

  • SNCMode: If the "Activate Secure Network Connections" checkbox is enabled, set the SNCMode connection string property to True. If this checkbox is disabled, set the SNCMode connection property to False.

    The SNCMode connection property is a boolean value determining if you are using SNC. The default value is False.

  • SNCPartnerName: Set this property to the value in the SNC Name box.

    The SNCPartnerName property specifies the application server's SNC name. For example: p:CN=IDS, OU=IT, O=CSW, C=DE

  • SNCName: Optional. Set this property to the value in the SNC Name box.

    The SNCName property specifies the name of the SNC connection. Set this property to make sure that the correct SNC name is used for the connection.

  • SNCQop: Set this property to the selected option in the Secure Network Settings section. For example, if the Integrity option is selected, set the SNCQop property to 3.

    The SNCQop property specifies the level (or quality) of data protection. If this property is not specified, the integer -1 is set for this property. Valid values are 1, 2, 3, 8, or 9, which correspond to the following protection levels:

    1 Apply authentication only. The identities of communication partners are verified.
    2 Apply integrity protection. The SAP system detects any changes or manipulation of the data exchanged.
    3 Apply privacy protection. This level provides integrity and authentication. The SAP system encrypts the messages being transferred. No one but the two communication partners can read or tamper with the data. This is the maximum level of protection.
    8 Apply the default protection.
    9 Apply the maximum protection.

  • SNCLibPath: Set this property to the path and filename of your SNC library.

    The SNCLibPath property specifies the full path to the security library you are using. For example, C:\Secude\secude.xll.

SAP ERP Connector for CData Sync

Advanced Features

This section details a selection of advanced features of the SAP ERP Sync App.

User Defined Views

The Sync App supports the use of user defined views, virtual tables whose contents are decided by a pre-configured user defined query. These views are useful when you cannot directly control queries being issued to the drivers. For an overview of creating and configuring custom views, see User Defined Views .

SSL Configuration

Use SSL Configuration to adjust how Sync App handles TLS/SSL certificate negotiations. You can choose from various certificate formats;. For further information, see the SSLServerCert property under "Connection String Options" .

Firewall and Proxy

Configure the Sync App for compliance with Firewall and Proxy, including Windows proxies and HTTP proxies. You can also set up tunnel connections.

Query Processing

The Sync App offloads as much of the SELECT statement processing as possible to SAP ERP and then processes the rest of the query in memory (client-side).

For further information, see Query Processing.

Logging

For an overview of configuration settings that can be used to refine CData logging, see Logging. Only two connection properties are required for basic logging, but there are numerous features that support more refined logging, which enables you to use the LogModules connection property to specify subsets of information to be logged.

SAP ERP Connector for CData Sync

SSL Configuration

Customizing the SSL Configuration

By default, the Sync App attempts to negotiate TLS with the server. The server certificate is validated against the default system trusted certificate store. You can override how the certificate gets validated using the SSLServerCert connection property.

To specify another certificate, see the SSLServerCert connection property.

SAP ERP Connector for CData Sync

Firewall and Proxy

Connecting Through a Firewall or Proxy

HTTP Proxies

To authenticate to an HTTP proxy, set the following:

  • ProxyServer: the hostname or IP address of the proxy server that you want to route HTTP traffic through.
  • ProxyPort: the TCP port that the proxy server is running on.
  • ProxyAuthScheme: the authentication method the Sync App uses when authenticating to the proxy server.
  • ProxyUser: the username of a user account registered with the proxy server.
  • ProxyPassword: the password associated with the ProxyUser.

Other Proxies

Set the following properties:

  • To use a proxy-based firewall, set FirewallType, FirewallServer, and FirewallPort.
  • To tunnel the connection, set FirewallType to TUNNEL.
  • To authenticate, specify FirewallUser and FirewallPassword.
  • To authenticate to a SOCKS proxy, additionally set FirewallType to SOCKS5.

SAP ERP Connector for CData Sync

Provider Schema

The CData Sync App dynamically retrieves schemas for SAP tables, queries, and function modules at run time. However, since it can be inefficient to retrieve the metadata for the entire SAP system, the Sync App also applies default filters to represent only a slice of your SAP system.

Below is an explanation of how the Sync App models each type of SAP object. How the Sync App determines what to display is highly customizable; see Accessing SAP Entities for more information on selecting the SAP objects you want.

SAP Tables

SAP tables are listed as views. This is because SAP strongly discourages directly making changes to SAP tables. Instead, function modules such as BAPIs should be used for making changes to table data. See Function Modules below for more on that.

Table data is retrieved from SAP using either the RFC_READ_TABLE or Z_CUSTOM_READ_TABLE function module if you have it installed. These give access to basic SQL support, but more complex queries such as joins and group by must be handled locally. More complex queries will be handled automatically by the Sync App as long as SupportEnhancedSQL is set to true.

See Using a Custom Read Table Function for more information on circumventing limitations with RFC_READ_TABLE.

SAP Queries

Just like tables, you can also work with SAP queries as relational views. By default they are turned off to try and avoid cluttering the Sync App with too many options. They can be turned on by using the QueryMode connection property.

Unlike tables, SAP queries may require certain values to be specified as inputs. You can specify these query inputs as part of the predicate in the SQL. For instance:

SELECT * FROM Z_SAP_QUERY WHERE InputName='x'
All SAP query views will include a Variant column that you can also input as part of the projection.

Be aware that values that are only inputs in an SAP query will be reflected back in the results as the same value that was specified. This does not actually indicate that SAP returned the value that way. It is just something that is required to keep the SQL statement valid.

Function Modules

Function modules in SAP can be used for almost any task. These include the very RFC calls that the Sync App makes such as RFC_READ_TABLE and function modules that modify data such as BAPI_PO_CREATE.

You can execute a function module directly as a stored procedure. SAP function modules accept and return primitive values and complex structures; the corresponding stored procedures accept and return SQL types and tables. For instance:

EXEC STFC_CONNECTION

For a more complex example, try RFC_READ_TABLE:

  EXEC RFC_READ_TABLE @QUERY_TABLE='MARA', @FIELDS='FIELDS#TEMP', @ROWCOUNT=1

In the above example, the RFC_READ_TABLE function module is executed to return the MARA table. The QUERY_TABLE and ROWCOUNT parameters are passed in as primitive values. In this function module, FIELDS is an input table. To provide this input, you can populate a temporary table with the #TEMP syntax and INSERT statements. For example:

  INSERT INTO FIELDS#TEMP (FIELDNAME) VALUES ('MANDT');
  INSERT INTO FIELDS#TEMP (FIELDNAME) VALUES ('MATNR');
  INSERT INTO FIELDS#TEMP (FIELDNAME) VALUES ('ERSDA');
  INSERT INTO FIELDS#TEMP (FIELDNAME) VALUES ('ERNAM');

Alternatively, JSON or XML can be used to submit tabular data for environments where the #TEMP tables would be difficult to use. For example:

  EXEC RFC_READ_TABLE OPTIONS='{ \"TEXT\": \"TABNAME LIKE ''MARA%''\" }', QUERY_TABLE='DD02L', ROWCOUNT='1', ReturnTables='DATA'

Customizing Stored Procedure Schemas

Instead of using the dynamic, in-memory schemas, you can use GenerateSchemaFiles to save static schema files that are easy to customize. A common use case is to remove extra unwanted inputs and outputs that the Sync App may report for a stored procedure.

In SAP, there is nothing in the metadata that distinguishes tables in function modules as either inputs or outputs. Since there is no way to know which tables are actually used for inputs and which are used for outputs, the Sync App reports the tables as being available for both inputs and outputs.

To generate the schema file, set GenerateSchemaFiles to "OnUse" and call the stored procedure. Also, set the Location property to the folder where you want the schema to be output.

To modify the schema file, open the generated schema file in the Location folder with any text editor. Then find the <input> or <output> tags that are not needed and remove them. Refresh the connection in the Sync App to pick up the schema and your changes.

SAP ERP Connector for CData Sync

Views

Views are similar to tables in the way that data is represented; however, views are read-only.

Queries can be executed against a view as if it were a normal table.

SAP ERP Connector for CData Sync Views

Name Description
SearchFunctions A list of SAP functions available in your system.

SAP ERP Connector for CData Sync

SearchFunctions

A list of SAP functions available in your system.

Columns

Name Type Description
Name String The name of the function.
Group String The group name for the function.
Filter String The filter you are using to search for functions with.

The default value is RFC*.

SAP ERP Connector for CData Sync

Connection String Options

The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider. Click the links for further details.

For more information on establishing a connection, see Establishing a Connection.

Authentication


PropertyDescription
ConnectionTypeThe type of connection you are making.
ConnectionSchemeSpecifies whether you are connecting to a SAP system with a message server (GroupServer) or without one (ApplicationServer).
HostHost name of the target system.
SystemNumberThe number by which the target system is defined. Used when setting the Host connection property.
UserThe user that is authenticating to the SAP system.
PasswordThe password used to authenticate to the SAP system.
ClientThe client authenticating to the SAP system.
X509CertificateThe X509 certificate used for login as an alternative to User , and Password .
MessageServerThe message server must be specified when connecting to an SAP system that uses load balancing.
GroupThe Logon Group being used. This typically only needs to be specified when connecting to an SAP system that uses load balancing.
SystemIdThe System Id or R3Name of the SAP System is a string with a maximum of three characters. It is often used in load balancing connections.
RFCURLThe URL of the SOAP interface to connect with SAP.
MessageServerServiceThe message server service you wish to connect to.

Security


PropertyDescription
SNCModeA boolean determining if you are using SNC. Set this to true to use SNC.
SNCNameAn optional input with the name of your SNC connection.
SNCQopThe quality of protection for your SNC connection.
SNCPartnerNameThe application server's SNC name. This is a required input when using SNC.
SNCLibPathAn optional input detailing the path and file name of the external library.
SNCSSOWhether to use the SNC identity for authenticating the caller when connnection via SNC mode.

SSL


PropertyDescription
SSLServerCertSpecifies the certificate to be accepted from the server when connecting using TLS/SSL.

Firewall


PropertyDescription
FirewallTypeSpecifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.
FirewallServerIdentifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.
FirewallPortSpecifies the TCP port to be used for a proxy-based firewall.
FirewallUserIdentifies the user ID of the account authenticating to a proxy-based firewall.
FirewallPasswordSpecifies the password of the user account authenticating to a proxy-based firewall.

Proxy


PropertyDescription
ProxyAutoDetectSpecifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.
ProxyServerThe hostname or IP address of the proxy server that you want to route HTTP traffic through.
ProxyPortThe TCP port on your specified proxy server (set in the ProxyServer connection property) that has been reserved for routing HTTP traffic to and from the client.
ProxyAuthSchemeSpecifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.
ProxyUserThe username of a user account registered with the proxy server specified in the ProxyServer connection property.
ProxyPasswordThe password associated with the user specified in the ProxyUser connection property.
ProxySSLTypeThe SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.
ProxyExceptionsA semicolon separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.

Logging


PropertyDescription
LogModulesSpecifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.

Schema


PropertyDescription
BrowsableSchemasOptional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .
TablesOptional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .
ViewsOptional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .

Miscellaneous


PropertyDescription
SAPEditionThe edition of SAP being used. Set either SAP cloud or SAP OnPremise.
BAPINameSeparatorA separator for concatenating table and column names when the output of the stored procedure contains a table type parameter.
CharsetThe system code page used for Unicode to multibyte translations.
CheckDecimalNotationA boolean indicating if you need to use the Decimal Notation of the SAP user profile to format the decimal data.
EndianTypeThe endian type for the SAP server. Enter either Big or Little.
GatewayHostThe gateway host you wish to connect to.
GatewayServiceThe gateway service you wish to connect to.
GenerateSchemaFilesDetermines how schema files should be generated.
InitialValueModeHow to treat initial values in SAP.
LanguageThe language value to be used when connecting to the SAP system.
LocationA path to the directory that contains the schema files defining tables, views, and stored procedures to work with your chosen data source. This must be set in order to add new tables to provider.
MapNUMCToVarcharSpecifies whether to map the SAP NUMC and ACCP type to number or varchar types.
MapRAWToVarcharIf True, the provider maps the SAP RAW and LRAW types to Varchar type. If False, the provider maps RAW and LRAW types to Binary type.
MaxRowsSpecifies the maximum rows returned for queries without aggregation or GROUP BY.
OtherSpecifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.
PagesizeThe number of results to return per page from SAP. Only used for SAP tables.
PseudoColumnsSpecifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.
QueryModeDetermines which SAP queries will be displayed as views, if any.
ReadTableDelimiterThe delimiter is submitted to the ReadTableFunction .
ReadTableFunctionThe function to use for reading table data.
ServerTimeZoneThe timezone by which the server is expected to report date and times values.
StoredProcedureFilterA filter indicating which function modules to report as stored procedures.
SupportServerSideCountDetermines if the count function of the simple query is executed in the SAP server. For example, select count(*) from ADRC.
TableModeDetermines which SAP tables will be displayed as views if any.
TimeoutSpecifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.
TrimStringsA boolean indicating if varchar columns should be trimmed or not.
UseAdvancedReplicationIndicates if advanced replication features should be used when caching data.
UseInternalNamesSpecifies the whether to use the internalName of columns.
UseLabelsSet this property to determine if labels should be used for table and column names.
UserDefinedViewsSpecifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.
UseSimpleNamesBoolean determining if simple names should be used for tables and columns.
UseUnicodeRFCA boolean indicating if you want to use RFC_GET_UNICODE_STRUCTURE to get structure information.
WhitespaceToNullIndicates whether to read the empty value as original value or as null.
SAP ERP Connector for CData Sync

Authentication

This section provides a complete list of the Authentication properties you can configure in the connection string for this provider.


PropertyDescription
ConnectionTypeThe type of connection you are making.
ConnectionSchemeSpecifies whether you are connecting to a SAP system with a message server (GroupServer) or without one (ApplicationServer).
HostHost name of the target system.
SystemNumberThe number by which the target system is defined. Used when setting the Host connection property.
UserThe user that is authenticating to the SAP system.
PasswordThe password used to authenticate to the SAP system.
ClientThe client authenticating to the SAP system.
X509CertificateThe X509 certificate used for login as an alternative to User , and Password .
MessageServerThe message server must be specified when connecting to an SAP system that uses load balancing.
GroupThe Logon Group being used. This typically only needs to be specified when connecting to an SAP system that uses load balancing.
SystemIdThe System Id or R3Name of the SAP System is a string with a maximum of three characters. It is often used in load balancing connections.
RFCURLThe URL of the SOAP interface to connect with SAP.
MessageServerServiceThe message server service you wish to connect to.
SAP ERP Connector for CData Sync

ConnectionType

The type of connection you are making.

Remarks

The type of connection you are making to SAP.
Use CLASSIC for the librfc32.dll.
Use CLASSIC_UNICODE for the librfc32u.dll.
Use NETWEAVER to indicate you are using the sapnwrfc.dll.
Use JCO to indicate you are using the sapjco.jar.
Use SOAP to indicate you are using SOAP and setting the RFC URL.

SAP ERP Connector for CData Sync

ConnectionScheme

Specifies whether you are connecting to a SAP system with a message server (GroupServer) or without one (ApplicationServer).

Remarks

Choose the connection scheme and change the required system properties:

GroupServer The connection to the SAP system is set up using a message server. In this case, load balancing can take place.
ApplicationServer (default) The connection to the SAP system is set up directly without using a message server.

SAP ERP Connector for CData Sync

Host

Host name of the target system.

Remarks

Host names can be regular host names defined in a hosts file, an IP address like 123.123.123.123, or an SAProuter address such as "/H/hostname/S/port/H/host/S/port/ ..."

This property is required when connecting through the SAP librfc32.dll interface. The "librfc32.dll" is included in R/3 (NetWeaver) and RFC API installations, or may be acquired directly from SAP.

This property is necessary only when not using the RFCUrl property to connect with SAP.

SAP ERP Connector for CData Sync

SystemNumber

The number by which the target system is defined. Used when setting the Host connection property.

Remarks

The valid range is 0 to 99. In general, this value is 0.

SAP ERP Connector for CData Sync

User

The user that is authenticating to the SAP system.

Remarks

Client, User, and Password are needed for authentication to the R/3 server.

SAP ERP Connector for CData Sync

Password

The password used to authenticate to the SAP system.

Remarks

Client, User, and Password are needed for authentication to the R/3 server.

SAP ERP Connector for CData Sync

Client

The client authenticating to the SAP system.

Remarks

Client, User, and Password are needed for authentication to the R/3 server.

SAP ERP Connector for CData Sync

X509Certificate

The X509 certificate used for login as an alternative to User , and Password .

Remarks

Using an X509 certificate for login requires also setting the SNC connection properties. The X509 certificate may be specified using a file path pointing to a file containing an X509 certificate in PEM format, a PEM blob beginning with the "-----BEGIN ..." header, or a PEM blob without the "-----BEGIN ..." header.

SAP ERP Connector for CData Sync

MessageServer

The message server must be specified when connecting to an SAP system that uses load balancing.

Remarks

The message server is used instead of an individual application server when connecting to an SAP system using load balancing. The load is balanced between several application servers and clients only need to know the name of the message server to connect.

SAP ERP Connector for CData Sync

Group

The Logon Group being used. This typically only needs to be specified when connecting to an SAP system that uses load balancing.

Remarks

The default in most SAP systems will be PUBLIC.

SAP ERP Connector for CData Sync

SystemId

The System Id or R3Name of the SAP System is a string with a maximum of three characters. It is often used in load balancing connections.

Remarks

The System Id is a string with a maximum of three characters. It often used in connections to SAP systems with load balancing, but may also be used in SAP systems with a dedicated application server.

SAP ERP Connector for CData Sync

RFCURL

The URL of the SOAP interface to connect with SAP.

Remarks

If connecting to SAP through the SOAP interface, this property must be set to the SOAP URL of your SAP system.

An example of this is http://localhost:8000/sap/bc/soap/rfc.

The SOAP service must be enabled in your SAP system for this type of connection to work properly.

SAP ERP Connector for CData Sync

MessageServerService

The message server service you wish to connect to.

Remarks

If not specified, http will be used. On windows machines, these services to their port mappings are stored on C:\windows\system32\drivers\etc\services.

SAP ERP Connector for CData Sync

Security

This section provides a complete list of the Security properties you can configure in the connection string for this provider.


PropertyDescription
SNCModeA boolean determining if you are using SNC. Set this to true to use SNC.
SNCNameAn optional input with the name of your SNC connection.
SNCQopThe quality of protection for your SNC connection.
SNCPartnerNameThe application server's SNC name. This is a required input when using SNC.
SNCLibPathAn optional input detailing the path and file name of the external library.
SNCSSOWhether to use the SNC identity for authenticating the caller when connnection via SNC mode.
SAP ERP Connector for CData Sync

SNCMode

A boolean determining if you are using SNC. Set this to true to use SNC.

Remarks

SNC security will only be used when you establish a connection to SAP using one of the RFC SDKs outlined in the ConnectionType. You should be able to find the values you need to specify by going to your SAP Logon, right-clicking your connection and opening Properties. On the System Entry Properties dialog, open the Network --> Secure Network Settings window. This window should have the information you need to specify for the SNC properties.

SAP ERP Connector for CData Sync

SNCName

An optional input with the name of your SNC connection.

Remarks

Although this parameter is optional, we recommend setting it to make sure that the correct SNC name is used for the connection.

SAP ERP Connector for CData Sync

SNCQop

The quality of protection for your SNC connection.

Remarks

This is an integer that will be -1 if unspecified and can potentially go to a maximum of 9 depending on your application server. Valid values are 1, 2, 3, 8, or 9, which correspond to the following protection levels:

1Apply authentication only.
2Apply integrity protection (authentication).
3Apply privacy protection (integrity and authentication).
8Apply the default protection.
9Apply the maximum protection.

SAP ERP Connector for CData Sync

SNCPartnerName

The application server's SNC name. This is a required input when using SNC.

Remarks

The application server's SNC name.

SAP ERP Connector for CData Sync

SNCLibPath

An optional input detailing the path and file name of the external library.

Remarks

The default is the system-defined library as defined in the environment variable SNC_LIB.

SAP ERP Connector for CData Sync

SNCSSO

Whether to use the SNC identity for authenticating the caller when connnection via SNC mode.

Remarks

The default vaule is 1. Valid values are 0,1.

0User/password or other identity information can be used for authenticationg the caller.
1Which means to make use of the SSO behavior for SNC.

SAP ERP Connector for CData Sync

SSL

This section provides a complete list of the SSL properties you can configure in the connection string for this provider.


PropertyDescription
SSLServerCertSpecifies the certificate to be accepted from the server when connecting using TLS/SSL.
SAP ERP Connector for CData Sync

SSLServerCert

Specifies the certificate to be accepted from the server when connecting using TLS/SSL.

Remarks

If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.

This property can take the following forms:

Description Example
A full PEM Certificate (example shortened for brevity) -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate C:\cert.cer
The public key (example shortened for brevity) -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated) ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated) 34a929226ae0819f2ec14b4a3d904f801cbb150d

If not specified, any certificate trusted by the machine is accepted.

Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.

SAP ERP Connector for CData Sync

Firewall

This section provides a complete list of the Firewall properties you can configure in the connection string for this provider.


PropertyDescription
FirewallTypeSpecifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.
FirewallServerIdentifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.
FirewallPortSpecifies the TCP port to be used for a proxy-based firewall.
FirewallUserIdentifies the user ID of the account authenticating to a proxy-based firewall.
FirewallPasswordSpecifies the password of the user account authenticating to a proxy-based firewall.
SAP ERP Connector for CData Sync

FirewallType

Specifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

Note: By default, the Sync App connects to the system proxy. To disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.

The following table provides port number information for each of the supported protocols.

Protocol Default Port Description
TUNNEL 80 The port where the Sync App opens a connection to SAP ERP. Traffic flows back and forth via the proxy at this location.
SOCKS4 1080 The port where the Sync App opens a connection to SAP ERP. SOCKS 4 then passes theFirewallUser value to the proxy, which determines whether the connection request should be granted.
SOCKS5 1080 The port where the Sync App sends data to SAP ERP. If the SOCKS 5 proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.

To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.

SAP ERP Connector for CData Sync

FirewallServer

Identifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

SAP ERP Connector for CData Sync

FirewallPort

Specifies the TCP port to be used for a proxy-based firewall.

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

SAP ERP Connector for CData Sync

FirewallUser

Identifies the user ID of the account authenticating to a proxy-based firewall.

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

SAP ERP Connector for CData Sync

FirewallPassword

Specifies the password of the user account authenticating to a proxy-based firewall.

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

SAP ERP Connector for CData Sync

Proxy

This section provides a complete list of the Proxy properties you can configure in the connection string for this provider.


PropertyDescription
ProxyAutoDetectSpecifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.
ProxyServerThe hostname or IP address of the proxy server that you want to route HTTP traffic through.
ProxyPortThe TCP port on your specified proxy server (set in the ProxyServer connection property) that has been reserved for routing HTTP traffic to and from the client.
ProxyAuthSchemeSpecifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.
ProxyUserThe username of a user account registered with the proxy server specified in the ProxyServer connection property.
ProxyPasswordThe password associated with the user specified in the ProxyUser connection property.
ProxySSLTypeThe SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.
ProxyExceptionsA semicolon separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.
SAP ERP Connector for CData Sync

ProxyAutoDetect

Specifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.

Remarks

When this connection property is set to True, the Sync App checks your system proxy settings for existing proxy server configurations (no need to manually supply proxy server details).

This connection property takes precedence over other proxy settings. Set to False if you want to manually configure the Sync App to connect to a specific proxy server.

To connect to an HTTP proxy, see ProxyServer. For other proxies, such as SOCKS or tunneling, see FirewallType.

SAP ERP Connector for CData Sync

ProxyServer

The hostname or IP address of the proxy server that you want to route HTTP traffic through.

Remarks

The Sync App only routes HTTP traffic through the proxy server specified in this connection property when ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True, which is the default, the Sync App instead routes HTTP traffic through the proxy server specified in your system proxy settings.

SAP ERP Connector for CData Sync

ProxyPort

The TCP port on your specified proxy server (set in the ProxyServer connection property) that has been reserved for routing HTTP traffic to and from the client.

Remarks

The Sync App only routes HTTP traffic through the proxy server port specified in this connection property when ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True, which is the default, the Sync App instead routes HTTP traffic through the proxy server port specified in your system proxy settings.

For other proxy types, see FirewallType.

SAP ERP Connector for CData Sync

ProxyAuthScheme

Specifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.

Remarks

The authentication type can be one of the following:

  • BASIC: The Sync App performs HTTP BASIC authentication.
  • DIGEST: The Sync App performs HTTP DIGEST authentication.
  • NTLM: The Sync App retrieves an NTLM token.
  • NEGOTIATE: The Sync App retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
  • NONE: Set this when the ProxyServer does not require authentication.

For all values other than "NONE", you must also set the ProxyUser and ProxyPassword connection properties.

If you need to use another authentication type, such as SOCKS 5 authentication, see FirewallType.

SAP ERP Connector for CData Sync

ProxyUser

The username of a user account registered with the proxy server specified in the ProxyServer connection property.

Remarks

The ProxyUser and ProxyPassword connection properties are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

After selecting one of the available authentication types in ProxyAuthScheme, set this property as follows:

ProxyAuthScheme Value Value to set for ProxyUser
BASIC The user name of a user registered with the proxy server.
DIGEST The user name of a user registered with the proxy server.
NEGOTIATE The username of a Windows user who is a valid user in the domain or trusted domain that the proxy server is part of, in the format user@domain or domain\user.
NTLM The username of a Windows user who is a valid user in the domain or trusted domain that the proxy server is part of, in the format user@domain or domain\user.
NONE Do not set the ProxyPassword connection property.

The Sync App only uses this username if ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True, which is the default, the Sync App instead uses the username specified in your system proxy settings.

SAP ERP Connector for CData Sync

ProxyPassword

The password associated with the user specified in the ProxyUser connection property.

Remarks

The ProxyUser and ProxyPassword connection properties are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

After selecting one of the available authentication types in ProxyAuthScheme, set this property as follows:

ProxyAuthScheme Value Value to set for ProxyPassword
BASIC The password associated with the proxy server user specified in ProxyUser.
DIGEST The password associated with the proxy server user specified in ProxyUser.
NEGOTIATE The password associated with the Windows user account specified in ProxyUser.
NTLM The password associated with the Windows user account specified in ProxyUser.
NONE Do not set the ProxyPassword connection property.

For SOCKS 5 authentication or tunneling, see FirewallType.

The Sync App only uses this password if ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True, which is the default, the Sync App instead uses the password specified in your system proxy settings.

SAP ERP Connector for CData Sync

ProxySSLType

The SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.

Remarks

This property determines when to use SSL for the connection to the HTTP proxy specified by ProxyServer. You can set this connection property to the following values :

AUTODefault setting. If ProxyServer is set to an HTTPS URL, the Sync App uses the TUNNEL option. If ProxyServer is set to an HTTP URL, the component uses the NEVER option.
ALWAYSThe connection is always SSL enabled.
NEVERThe connection is not SSL enabled.
TUNNELThe connection is made through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.

SAP ERP Connector for CData Sync

ProxyExceptions

A semicolon separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.

Remarks

The ProxyServer is used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.

Note that the Sync App uses the system proxy settings by default, without further configuration needed. If you want to explicitly configure proxy exceptions for this connection, set ProxyAutoDetect to False.

SAP ERP Connector for CData Sync

Logging

This section provides a complete list of the Logging properties you can configure in the connection string for this provider.


PropertyDescription
LogModulesSpecifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.
SAP ERP Connector for CData Sync

LogModules

Specifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.

Remarks

This property lets you customize the log file content by specifying the logging modules to include. Logging modules categorize logged information into distinct areas, such as query execution, metadata, or SSL communication. Each module is represented by a four-character code, with some requiring a trailing space for three-letter names.

For example, EXEC logs query execution, and INFO logs general provider messages. To include multiple modules, separate their names with semicolons as follows: INFO;EXEC;SSL.

The Verbosity connection property takes precedence over the module-based filtering specified by this property. Only log entries that meet the verbosity level and belong to the specified modules are logged. Leave this property blank to include all available modules in the log file.

For a complete list of available modules and detailed guidance on configuring logging, refer to the Advanced Logging section in Logging.

SAP ERP Connector for CData Sync

Schema

This section provides a complete list of the Schema properties you can configure in the connection string for this provider.


PropertyDescription
BrowsableSchemasOptional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .
TablesOptional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .
ViewsOptional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .
SAP ERP Connector for CData Sync

BrowsableSchemas

Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .

Remarks

Listing all available database schemas can take extra time, thus degrading performance. Providing a list of schemas in the connection string saves time and improves performance.

SAP ERP Connector for CData Sync

Tables

Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .

Remarks

Listing all available tables from some databases can take extra time, thus degrading performance. Providing a list of tables in the connection string saves time and improves performance.

If there are lots of tables available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those tables. To do this, specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.

Note: If you are connecting to a data source with multiple schemas or catalogs, you must specify each table you want to view by its fully qualified name. This avoids ambiguity between tables that may exist in multiple catalogs or schemas.

SAP ERP Connector for CData Sync

Views

Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .

Remarks

Listing all available views from some databases can take extra time, thus degrading performance. Providing a list of views in the connection string saves time and improves performance.

If there are lots of views available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those views. To do this, specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.

Note: If you are connecting to a data source with multiple schemas or catalogs, you must specify each view you want to examine by its fully qualified name. This avoids ambiguity between views that may exist in multiple catalogs or schemas.

SAP ERP Connector for CData Sync

Miscellaneous

This section provides a complete list of the Miscellaneous properties you can configure in the connection string for this provider.


PropertyDescription
SAPEditionThe edition of SAP being used. Set either SAP cloud or SAP OnPremise.
BAPINameSeparatorA separator for concatenating table and column names when the output of the stored procedure contains a table type parameter.
CharsetThe system code page used for Unicode to multibyte translations.
CheckDecimalNotationA boolean indicating if you need to use the Decimal Notation of the SAP user profile to format the decimal data.
EndianTypeThe endian type for the SAP server. Enter either Big or Little.
GatewayHostThe gateway host you wish to connect to.
GatewayServiceThe gateway service you wish to connect to.
GenerateSchemaFilesDetermines how schema files should be generated.
InitialValueModeHow to treat initial values in SAP.
LanguageThe language value to be used when connecting to the SAP system.
LocationA path to the directory that contains the schema files defining tables, views, and stored procedures to work with your chosen data source. This must be set in order to add new tables to provider.
MapNUMCToVarcharSpecifies whether to map the SAP NUMC and ACCP type to number or varchar types.
MapRAWToVarcharIf True, the provider maps the SAP RAW and LRAW types to Varchar type. If False, the provider maps RAW and LRAW types to Binary type.
MaxRowsSpecifies the maximum rows returned for queries without aggregation or GROUP BY.
OtherSpecifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.
PagesizeThe number of results to return per page from SAP. Only used for SAP tables.
PseudoColumnsSpecifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.
QueryModeDetermines which SAP queries will be displayed as views, if any.
ReadTableDelimiterThe delimiter is submitted to the ReadTableFunction .
ReadTableFunctionThe function to use for reading table data.
ServerTimeZoneThe timezone by which the server is expected to report date and times values.
StoredProcedureFilterA filter indicating which function modules to report as stored procedures.
SupportServerSideCountDetermines if the count function of the simple query is executed in the SAP server. For example, select count(*) from ADRC.
TableModeDetermines which SAP tables will be displayed as views if any.
TimeoutSpecifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.
TrimStringsA boolean indicating if varchar columns should be trimmed or not.
UseAdvancedReplicationIndicates if advanced replication features should be used when caching data.
UseInternalNamesSpecifies the whether to use the internalName of columns.
UseLabelsSet this property to determine if labels should be used for table and column names.
UserDefinedViewsSpecifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.
UseSimpleNamesBoolean determining if simple names should be used for tables and columns.
UseUnicodeRFCA boolean indicating if you want to use RFC_GET_UNICODE_STRUCTURE to get structure information.
WhitespaceToNullIndicates whether to read the empty value as original value or as null.
SAP ERP Connector for CData Sync

SAPEdition

The edition of SAP being used. Set either SAP cloud or SAP OnPremise.

Remarks

The SAP S/4 HANA cloud requires the SAP JCO 3.1.2 or later.

SAP ERP Connector for CData Sync

BAPINameSeparator

A separator for concatenating table and column names when the output of the stored procedure contains a table type parameter.

Remarks

When the output parameter of the stored procedure is the table type, we would try to flatten it in the result set of the stored procedure. To avoid the name conflicting issue, we use the separator(default separator is underscore "_") for concatenating table and column names and generate a full column name.

SAP ERP Connector for CData Sync

Charset

The system code page used for Unicode to multibyte translations.

Remarks

SAP returns data in byte arrays, which the Sync App converts to a string. This property specifies the code page to use to do the conversion. For example, UTF-8. The Sync App defaults to the machine's code page.

The default can typically be used, but this property can be useful to fix Unicode-to-multibyte encoding problems. For instance, if you are on a U.S. machine and reading from a Japanese SAP server with Japanese characters, you may need to set Charset to shift_jis to get them to display properly.

SAP ERP Connector for CData Sync

CheckDecimalNotation

A boolean indicating if you need to use the Decimal Notation of the SAP user profile to format the decimal data.

Remarks

A boolean indicating if you need to use the Decimal Notation of the SAP user profile to format the decimal data.

SAP ERP Connector for CData Sync

EndianType

The endian type for the SAP server. Enter either Big or Little.

Remarks

If you do not know the endian type for the SAP server, set this value to Auto. The Sync App attempts to automatically detect the endian type. However, if your SAP server does not have the RFC needed to determine this, you can set this property to avoid an error.

SAP ERP Connector for CData Sync

GatewayHost

The gateway host you wish to connect to.

Remarks

The gateway host you wish to connect to. If not specified, the Sync App will attempt to connect to the SAP system specified by Host.

SAP ERP Connector for CData Sync

GatewayService

The gateway service you wish to connect to.

Remarks

The gateway service you wish to connect to. This property determines the port the Sync App will use to connect to the GatewayHost server. If not specified, the SAP system will use the default "sapgw##" where the "##" is the SystemNumber.

SAP ERP Connector for CData Sync

GenerateSchemaFiles

Determines how schema files should be generated.

Remarks

Schema files may be used to give the highest degree of control over the CData Sync App.

For example, it can be inefficient to retrieve the metadata for the entire SAP system. Or, you may want to only display certain SAP entities. Basic filtering of these entities is possible with the TableMode, QueryMode, and StoredProcedureFilter properties. However, you may need more granular control.

Control Over Individual Schemas

Schema files override the schemas the Sync App generates when you connect. The CData Sync App reports views and stored procedures defined in the folder specified by Location. This enables you to work with individual schemas; for example, you can remove an individual schema by deleting its schema file. Or, you can customize how columns are reported.

How to Use GenerateSchemaFiles

Use GenerateSchemaFiles along with Location to specify how files should be generated and where they should be written. Setting GenerateSchemaFiles to OnUse will generate a schema file when a metadata request is made for the specific view. Setting GenerateSchemaFiles to OnStart will attempt to generate schema files for all the views reported on connection open.

Schema files will not be overwritten if they already exist in the Location folder. To pick up changes in the metadata, first delete the schema file.

SAP ERP Connector for CData Sync

InitialValueMode

How to treat initial values in SAP.

Remarks

Set to Null to treat them as if they were null. Set to InitialValue to return the values exactly as they come back from SAP.

SAP ERP Connector for CData Sync

Language

The language value to be used when connecting to the SAP system.

Remarks

Set this property to the language you specify when you log into SAP. This property is a ISO 639-1 code for the language the SAP system uses. By default, EN will be used.

SAP ERP Connector for CData Sync

Location

A path to the directory that contains the schema files defining tables, views, and stored procedures to work with your chosen data source. This must be set in order to add new tables to provider.

Remarks

The path to a directory which contains the schema files for the Sync App (.rsd files for tables and views; .rsb files for stored procedures). The Location property allows the Sync App to interface with a variety of data sources.

The schema files used in your application must be deployed with other assemblies. You must also ensure that Location points to the folder that contains the schema files. The folder location can be a relative path from the location of the executable.

SAP ERP Connector for CData Sync

MapNUMCToVarchar

Specifies whether to map the SAP NUMC and ACCP type to number or varchar types.

Remarks

The SAP NUMC type is a long character field that only allows numeric entries. The length of this field is limited to a maximum of 255 characters. The SAP ACCP type represents a posting period. This field is 6 characters long, with the format YYYYMM.

SAP ERP Connector for CData Sync

MapRAWToVarchar

If True, the provider maps the SAP RAW and LRAW types to Varchar type. If False, the provider maps RAW and LRAW types to Binary type.

Remarks

If True, the Sync App maps the SAP RAW and LRAW types to Varchar type. If False, the Sync App maps RAW and LRAW types to Binary type.

SAP ERP Connector for CData Sync

MaxRows

Specifies the maximum rows returned for queries without aggregation or GROUP BY.

Remarks

This property sets an upper limit on the number of rows the Sync App returns for queries that do not include aggregation or GROUP BY clauses. This limit ensures that queries do not return excessively large result sets by default.

When a query includes a LIMIT clause, the value specified in the query takes precedence over the MaxRows setting. If MaxRows is set to "-1", no row limit is enforced unless a LIMIT clause is explicitly included in the query.

This property is useful for optimizing performance and preventing excessive resource consumption when executing queries that could otherwise return very large datasets.

SAP ERP Connector for CData Sync

Other

Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.

Remarks

This property allows advanced users to configure hidden properties for specialized scenarios. These settings are not required for normal use cases but can address unique requirements or provide additional functionality. Multiple properties can be defined in a semicolon-separated list.

Note: It is strongly recommended to set these properties only when advised by the support team to address specific scenarios or issues.

Specify multiple properties in a semicolon-separated list.

Integration and Formatting

DefaultColumnSizeSets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMTDetermines whether to convert date-time values to GMT, instead of the local time of the machine.
RecordToFile=filenameRecords the underlying socket data transfer to the specified file.

SAP ERP Connector for CData Sync

Pagesize

The number of results to return per page from SAP. Only used for SAP tables.

Remarks

The number of results to return per page from SAP. Only used for SAP tables. The RFC_READ_TABLE uses the rowcount and rowskips parameters for paging. This can cause unusual behavior if you are paging through data while it is being interacted with. For instance, if a new row is inserted to a table while you are paging through data, you may see a duplicate entry show up. Also, if a row is deleted from a table, the results you get back may be missing a row. This can be avoided by increasing the pagesize to a degree that there is only one page of data returned. However, please note that this can significantly decrease performance for large tables.

SAP ERP Connector for CData Sync

PseudoColumns

Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.

Remarks

This property allows you to define which pseudocolumns the Sync App exposes as table columns.

To specify individual pseudocolumns, use the following format: "Table1=Column1;Table1=Column2;Table2=Column3"

To include all pseudocolumns for all tables use: "*=*"

SAP ERP Connector for CData Sync

QueryMode

Determines which SAP queries will be displayed as views, if any.

Remarks

Just like tables can be displayed as views, so can SAP queries. Depending on your use case, you may not be planning to use this feature. In that case, set the QueryMode to None so that SAP queries do not display as available views. Otherwise, use the settings Global, Local, or All to specify what workspace to draw SAP queries from.

SAP ERP Connector for CData Sync

ReadTableDelimiter

The delimiter is submitted to the ReadTableFunction .

Remarks

We defaultly use the "~" as the Delimiter when calling the new RFC_Read_Table function of the SAP Note 2246160. Except for the case, we do not use a Delimiter by default.

SAP ERP Connector for CData Sync

ReadTableFunction

The function to use for reading table data.

Remarks

Change this to a custom function to remove limitations on the buffer size.

The RFC_READ_TABLE2 function is also supported. To use this function, set this property to "/SAPDS/RFC_READ_TABLE2".

SAP ERP Connector for CData Sync

ServerTimeZone

The timezone by which the server is expected to report date and times values.

Remarks

The CData Sync App uses the CDPOS and CDHDR tables to replicate data incrementally. SAP ERP does not actually store a timezone when it returns a date and time to the CData Sync App from these tables. In order to ensure dates can be converted from your local time to SAP ERP, you may specify the ServerTimeZone. For example, EST, JST, PST. The CData Sync App will assume values coming from CDPOS and CDHDR match the specified timezone so that when values are passed to it requesting only the latest results, nothing is skipped over when converting from your local time to the server's.

SAP ERP Connector for CData Sync

StoredProcedureFilter

A filter indicating which function modules to report as stored procedures.

Remarks

You can execute any function module in SAP through the Sync App as a stored procedure if the stored procedure is remote enabled. There are many function modules that may be useful to execute in SAP, but to try and keep things readable you may choose to only display certain function modules. By default, the Sync App lists only BAPI function modules. Set StoredProcedureFilter to * to list all functon modules.

Note that not all function modules in SAP are remote enabled. If there is a function module you are interested in using that does not display, check the TFDIR system table to verify its FMODE is set to 'R'.

SAP ERP Connector for CData Sync

SupportServerSideCount

Determines if the count function of the simple query is executed in the SAP server. For example, select count(*) from ADRC.

Remarks

Please confirm whether your RFC_READ_TABLE function supports the feature before enabling this property. RFC_READ_TABLE provides an option to determine only the number of data records in the SAP note 3390051. The import parameter NO_DATA has been added to the function module RFC_READ_TABLE:'C' . Returns the number of entries according to the selection criteria in ET_DATA. There are no other return values.

SAP ERP Connector for CData Sync

TableMode

Determines which SAP tables will be displayed as views if any.

Remarks

There are many tables in SAP that could potentially be displayed. The TableMode property enables you to specify which tables are important to you. The list of tables is retrieved from the DD02L system table, with each mode acting as a different filter on a set of transparent tables. Transparent tables contain your business and application data.

SettingFilterDescription
TransparentApplication TABCLASS = 'TRANSP' AND CONTFLAG = 'A'Master and transaction data.
TransparentCustomer TABCLASS = 'TRANSP' AND ( CONTFLAG = 'C' OR CONTFLAG = 'G' )Data maintained by the customer only
TransparentSystem TABCLASS = 'TRANSP' AND ( CONTFLAG = 'E' OR CONTFLAG = 'S' OR CONTFLAG = 'W' )Customer namespaces, program status changes, development environment tables, etc.
Pooled TABCLASS = 'POOL'All pooled tables.
Cluster TABCLASS = 'CLUSTER'All cluster tables such as BSEG and KONV.
All All tables regardless of type. Warning: This will cause a massive amount of tables to be retrieved and may result in a noticeable delay in table listing.
None No filter. No SAP tables are displayed. This may be useful if you intend to use schema files instead or SAP queries.

Alternatively you can specify your own filter if the tables you want to work with are not available in these examples.

SAP ERP Connector for CData Sync

Timeout

Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.

Remarks

This property controls the maximum time, in seconds, that the Sync App waits for an operation to complete before canceling it. If the timeout period expires before the operation finishes, the Sync App cancels the operation and throws an exception.

The timeout applies to each individual communication with the server rather than the entire query or operation. For example, a query could continue running beyond 60 seconds if each paging call completes within the timeout limit.

Setting this property to 0 disables the timeout, allowing operations to run indefinitely until they succeed or fail due to other conditions such as server-side timeouts, network interruptions, or resource limits on the server. Use this property cautiously to avoid long-running operations that could degrade performance or result in unresponsive behavior.

SAP ERP Connector for CData Sync

TrimStrings

A boolean indicating if varchar columns should be trimmed or not.

Remarks

In SAP, RFC_READ_TABLE will necessarily pad the response of varchar columns with spaces. This is due to the structure where any instance of an empty value will be represented by a space. This makes it impossible to accurately determine if leading and trailing spaces are in fact intentional or simply due to how RFC_READ_TABLE works. The most correct behavior in most cases is to simply trim the string, but this option is available in cases where there are purposeful leading or trailing spaces that should be captured.

SettingDescription
TrimLeftTrim the leading spaces of the string value.
TrimRightTrim the trailing spaces of the string value.
TrimAllTrim the leading and trailing spaces of the string value.
NoneNot trim any spaces of the string value.

SAP ERP Connector for CData Sync

UseAdvancedReplication

Indicates if advanced replication features should be used when caching data.

Remarks

Typically replication is done using a modified column on the specific table to incrementially cache the data to a database. However, many SAP tables lack a a modified date column, or use a different name for this column. To get around this limitation, we attempt to use the CDHDR and CDPOS tables to find changes that have occurred to records in tables. This is not a perfect solution as CDHDR and CDPOS do not contain entries for every possible table. Setting UseAdvancedReplication to true will attempt to use CDHDR and CDPOS tables for replication in most tables.

SAP ERP Connector for CData Sync

UseInternalNames

Specifies the whether to use the internalName of columns.

Remarks

Specifies the whether to use the internalName of columns

SAP ERP Connector for CData Sync

UseLabels

Set this property to determine if labels should be used for table and column names.

Remarks

Set the value of this property to NONE, if you want tables and columns to show up with the internal names used in SAP. Set the value of this property to Columns if you want columns to show up with a language specific name instead of the internal column names used in SAP. Set the value of this property to Tables if you want tables to show up with a language specific name instead of the internal table names used in SAP. Set the value of this property to TablesAndColumns if you want tables and columns to both show up with a language specific name instead of the internal names used in SAP. Note: The language used will be taken from the Language connection property. If no entries exist for the specific column or table, the internal names will be used instead.

SAP ERP Connector for CData Sync

UserDefinedViews

Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.

Remarks

This property allows you to define and manage custom views through a JSON-formatted configuration file called UserDefinedViews.json. These views are automatically recognized by the Sync App and enable you to execute custom SQL queries as if they were standard database views. The JSON file defines each view as a root element with a child element called "query", which contains the SQL query for the view. For example:


{
	"MyView": {
		"query": "SELECT * FROM MARA WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}

You can define multiple views in a single file and specify the filepath using this property. For example: UserDefinedViews=C:\Path\To\UserDefinedViews.json. When you use this property, only the specified views are seen by the Sync App.

Refer to User Defined Views for more information.

SAP ERP Connector for CData Sync

UseSimpleNames

Boolean determining if simple names should be used for tables and columns.

Remarks

SAP ERP tables and columns can use special characters in names that are normally not allowed in standard databases. UseSimpleNames makes the Sync App easier to use with traditional database tools.

Setting UseSimpleNames to true will simplify the names of tables and columns returned. It will enforce a naming scheme such that only alphanumeric characters and the underscore are valid for the displayed table and column names. Any nonalphanumeric characters will be converted to an underscore.

SAP ERP Connector for CData Sync

UseUnicodeRFC

A boolean indicating if you want to use RFC_GET_UNICODE_STRUCTURE to get structure information.

Remarks

A boolean indicating if you want to use RFC_GET_UNICODE_STRUCTURE to get structure information from your SAP system. Required for SAP systems in Unicode, but should be set to false for SAP systems that do not support RFC_GET_UNICODE_STRUCTURE.

SAP ERP Connector for CData Sync

WhitespaceToNull

Indicates whether to read the empty value as original value or as null.

Remarks

An empty value is a empty string or only contains the whitespace characters.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175