Configure the SAP HANA reader component
The SAP HANA reader component reads data from an SAP HANA data source. To synchronize data from an SAP HANA data source to a destination, you first configure the SAP HANA reader component, and then configure the destination component. This topic describes how to configure the SAP HANA reader component.
Prerequisites
Before you begin, make sure you have completed the following tasks:
-
Created an SAP HANA data source. For more information, see Create an SAP HANA data source.
-
Your account must have synchronization read permission on the data source. If you do not have this permission, you must apply for it. For more information, see Apply for, renew, and release data source permissions.
Procedure
-
On the Dataphin homepage, choose Develop > Data Integration from the top navigation bar.
-
On the data integration page, select a Project from the top navigation bar. In Dev-Prod mode, you also need to select an environment.
-
In the left-side navigation pane, click Offline Integration. In the Offline Integration list, click the Batch Pipeline that you want to develop to open its configuration page.
-
In the upper-right corner of the page, click Component Library to open the Component Library panel.
-
In the left-side navigation pane of the Component Library panel, select Input. From the list of input components on the right, find the SAP HANA reader component and drag it onto the canvas.
-
On the SAP HANA reader component card, click the
icon to open the SAP HANA Reader Configuration dialog box. -
In the SAP HANA Reader Configuration dialog box, configure the following parameters.
Parameter
Description
Step name
The name of the SAP HANA reader component. Dataphin automatically generates a step name, but you can change it based on your business requirements. The name must follow these rules:
-
Can contain only Chinese characters, letters, underscores (_), and digits.
-
Cannot exceed 64 characters in length.
Data source
The drop-down list displays all SAP HANA data sources, including those for which you have synchronization read permission and those for which you do not. Click the
icon to copy the name of the current data source.If you lack synchronization read permission for a data source, click Apply next to its name to request it. For more information, see Apply for, renew, and release data source permissions.
If you do not have an SAP HANA data source, click Create Data Source to create one. For more information, see Create an SAP HANA data source.
Schema (Optional)
A schema is like a project within a data source that contains tables. If you do not select a schema, the system defaults to the schema that has the same name as the current user.
Table
Select the source table for data synchronization. You can search by entering a keyword from the table name, or enter the exact table name and click Exact Match. After you select a table, the system automatically checks its status. Click the
icon to copy the name of the selected table.Split key (Optional)
Use this parameter with the concurrency setting. You can specify a column from the source table as the split key. This column must be of an integer data type. We recommend using a primary key or an indexed column as the split key.
Batch size (Optional)
Specifies the number of records to read in a single batch, such as 1024. Reading data in batches instead of one record at a time reduces round trips to the data source, improves I/O efficiency, and lowers network latency.
Filter (Optional)
Enter a filter condition for the input data, for example,
ds=${bizdate}. Use this parameter in the following scenarios:-
Filtering a fixed portion of the data.
-
Filtering data by using parameters.
Output fields
This section displays all fields from the selected table. If you do not need to output certain fields to downstream components, you can remove them:
-
To remove a few fields, click the
icon in the Actions column for each unwanted field. -
To remove multiple fields at once, click Field Management. On the Field Management page, select the fields you want to remove, and then click the
icon to move them from the Selected Input Fields list to the Unselected Input Fields list.
-
Create a new output field: Click + Create Output Field, specify the Field Name, Data Type, and Comment, and select a Mapping Type. When you are done, click the
icon to save.System field: You can add system fields to identify the source of each row. After you select a system field, the system automatically populates the field type and mapping type. This is useful when you synchronize data from multiple tables (for example, sharded tables) to a single destination table. System fields include:
-
dp_datasource: The name of the data source being synchronized. -
dp_dbname: The name of the database being synchronized, if any. -
dp_schema: The name of the schema being synchronized, if any. -
dp_source_table: The name of the source table being synchronized. -
dp_read_timestamp: The timestamp when the SELECT operation started on the source.
You can concatenate multiple system variables to form a system field, for example,
dp_dbname.dp_source_table.Note-
You cannot modify the data type or mapping type of a system field.
-
The
dp_read_timestampfield can be used only by itself and cannot be concatenated.
-
-
-
Click OK to save the configuration of the SAP HANA reader component.

icon to save.