Create a SAP Table data source to enable Dataphin to read data from SAP Table through RFC. This topic describes how to create a SAP Table data source.
Permissions
Only custom global roles with the Create Data Source permission and system roles such as super administrator, data source administrator, domain architect, and project administrator can create data sources.
Procedure
On the Dataphin homepage, click Management Center > Datasource Management in the top navigation bar.
On the Datasource page, click +Create Data Source.
On the Create Data Source page, select SAP Table in the Semi-structured Storage section.
If you have recently used SAP Table, you can also select it from the Recently Used section. You can also enter keywords in the search box to quickly search for SAP Table.
On the Create SAP Table Data Source page, configure the connection parameters.
Configure the basic information of the data source.
Parameter
Description
Datasource Name
The name must meet the following requirements:
It can contain only Chinese characters, letters, digits, underscores (_), or hyphens (-).
It cannot exceed 64 characters in length.
Datasource Code
After you configure the data source code, you can reference tables in the data source in Flink_SQL tasks by using the format
data source code.table nameordata source code.schema.table name. If you need to automatically access the data source in the corresponding environment based on the current environment, use the variable format${data source code}.tableor${data source code}.schema.table. For more information, see Dataphin data source table development method.ImportantThe data source code cannot be modified after it is configured successfully.
After the data source code is configured successfully, you can preview data on the object details page in the asset directory and asset inventory.
In Flink SQL, only MySQL, Hologres, MaxCompute, Oracle, StarRocks, Hive, and SelectDB data sources are currently supported.
Data Source Description
A brief description of the data source. It cannot exceed 128 characters in length.
Data Source Configuration
Select the data source to configure:
If the business data source distinguishes between production and development data sources, select Production + Development Data Source.
If the business data source does not distinguish between production and development data sources, select Production Data Source.
Tag
You can categorize and tag data sources based on tags. For information about how to create tags, see Manage data source tags.
Configure the connection parameters between the data source and Dataphin.
If you select Production + Development Data Source for Data Source Configuration, you need to configure the connection information for both Production + Development Data Source. If you select Production Data Source, you only need to configure the connection information for the Production Data Source.
NoteTypically, production and development data sources should be configured as separate data sources to achieve environment isolation, reducing the impact of development data sources on production data sources. However, Dataphin also supports configuring them as the same data source with identical parameter values.
SAP Table data source supports Single Server, Load Balancing, and Configuration File connection methods. Different connection methods require different configurations. The following table compares the conditions based on the SDK version:
Single Server Connection Method
Parameter
Description
HOST
The address of the server where the SAP instance is located. For example,
192.198.*.212.System Number
The system number (SYSNR) of the SAP system. It is represented as a two-digit decimal number in string format. For example,
00.Client ID
The ID of the client (CLIENT) in the SAP system. It is represented as a three-digit decimal number in string format. For example,
100.Username, Password
The username and password of the SAP server.
Language
The language used by the SAP system. The default value is EN. To set it to Chinese, enter ZH.
Load Balancing connection method
Parameter
Description
MS Host
The address of the Simple Message Queue (formerly MNS) server where the SAP instance is located. For example,
192.198.*.212.Log Group
Used to specify the group of SAP servers to which the client should connect.
MSSERV
The service port of the SAP Simple Message Queue (formerly MNS) server.
Client ID
The client number in the SAP system, represented as a three-digit decimal number in string format.
Username, Password
The username and password of the SAP server.
Language
The language used by the SAP system. The default value is EN. To set it to Chinese, enter ZH.
Configuration File connection method
Parameter
Description
JCO Configuration File
The JCO configuration file. Configuration items generally start with
jco.client.Password
Enter the password.
Select a Default Resource Group, which is used to run tasks related to the current data source, including database SQL, offline database migration, data preview, and more.
Perform a Connection Test or directly click OK to save and complete the creation of the SAP Table data source.
Click Connection Test to test whether the data source can connect to Dataphin normally. If you directly click OK, the system will automatically test the connection for all selected clusters. However, even if all selected clusters fail the connection test, the data source can still be created normally.