Configure the SAP Table source component
The SAP Table source component reads data from an SAP Table data source. To synchronize data to a different data source, you must first configure the SAP Table source component and then the component for the target data source.
Prerequisites
-
You have created an SAP Table data source. For instructions, see Create an SAP Table data source.
-
You must have synchronization read permission for the data source. If you do not have the required permission, you must apply for it. For more information, see Apply for, renew, or return data source permissions.
Procedure
-
In the top navigation bar of the Dataphin homepage, choose Develop > Data Integration.
-
In the top menu bar, select a project. If you are in Dev-Prod mode, you must also select an environment.
-
In the left-side navigation pane, click Batch Integration. In the Batch Integration list, click the batch pipeline 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 Source. In the list of source components on the right, find the SAP Table component and drag it to the canvas.
-
On the SAP Table source component card, click the
icon to open the SAP Table Input Configuration dialog box. -
In the SAP Table Input Configuration dialog box, configure the parameters.
-
Select RFC_READ_TABLE
RFC_READ_TABLEis a standard RFC function in SAP systems that reads the structure and data of SAP database tables.Parameter
Description
Step name
The name of the SAP Table source component. Dataphin automatically generates a step name, which you can modify based on your business scenario. The name must meet the following requirements:
-
Can contain only Chinese characters, letters, digits, and underscores (_).
-
Cannot exceed 64 characters.
Data source
Select an SAP Table data source from the list of available data sources in Dataphin. You can click the
icon to copy the current data source name.-
If you do not have synchronization read permission for a data source, you can apply for it. For more information, see Apply for, renew, or return data source permissions.
-
If no SAP Table data source exists, click New to create one. For details, see Create an SAP Table data source.
RFC
Select an RFC from the SAP system.
Query_table
Enter the name of the table you want to read and click Validate. If the table exists, its fields appear in the Output fields section.
No_data
If a value is provided, no data is output from the table. If this parameter is left empty, data is output.
Rowskip
The zero-based row number of the first record to output.
Rowcount
The total number of rows to output, starting from the
Rowskipvalue. Specify 0 to output all rows.Filter
The query conditions for the table. You can use SAP query operators to filter the data.
The SAP query operators are as follows:
-
EQ: Equal to.
-
NE: Not equal to.
-
LT: Less than.
-
LE: Less than or equal to.
-
GT: Greater than.
-
GE: Greater than or equal to.
-
IN: For example,
TABCLASS IN ('TRANSP', 'INTTAB'). -
LIKE: For example,
LIKE 'Emma%'.
Batch size
The number of records to read in each batch. You can adjust this value based on database performance and data volume.
Output fields
This section displays all fields from the selected table. If you do not want to send specific fields to a downstream component, you can remove them.
-
To remove a small number of fields, click the
icon in the Actions column for each field you want to remove. -
To remove many fields at once, click Field Management. In the Field Management pane, select the fields and click the
icon to move them from Selected input fields to Unselected input fields.
-
-
Select an RFC other than RFC_READ_TABLE
Parameter
Description
Step name
The name of the SAP Table source component. Dataphin automatically generates a step name, which you can modify based on your business scenario. The name must meet the following requirements:
-
Can contain only Chinese characters, letters, digits, and underscores (_).
-
Cannot exceed 64 characters.
Data source
Select an SAP Table data source from the list of available data sources in Dataphin. You can click the
icon to copy the current data source name.-
If you do not have synchronization read permission for a data source, you can apply for it. For more information, see Apply for, renew, or return data source permissions.
-
If no SAP Table data source exists, click New to create one. For details, see Create an SAP Table data source.
RFC
Select an RFC from the SAP system.
Data fetching mode
Select the parameter passing mechanism for reading data from the SAP system. You can select table parameter (TABLES) or export parameter (EXPORT). The default is table parameter (TABLES).
-
table parameter (TABLES): Reads data from the
TABLESparameter of the RFC. This method is suitable for most standard RFC/BAPI interfaces, especially in scenarios where datasets are returned through an internal table. -
export parameter (EXPORT): Executes the RFC once to output a single record. This method maps the
EXPORTparameters of the RFC to output fields, with all fields treated as string types.EXPORTparameters of theSTRUCTUREorTABLEtype are not supported for reading and are not mapped to output fields. This method is suitable for specific custom function modules where data or control flags are returned throughEXPORTparameters instead of a standard table structure.
IMPORT input parameters
Enter the input parameters that correspond to the selected RFC.
Table
In table parameter (TABLES) mode, select the table to synchronize from the custom RFC.
Output fields
In table parameter (TABLES) mode, this section displays all fields from the selected table. In export parameter (EXPORT) mode, it displays the fields mapped from the RFC's
EXPORTparameters; all fields are of the string type. To avoid sending specific fields to a downstream component, you can remove them:-
To remove a small number of fields, click the
icon in the Actions column for each field you want to remove. -
To remove many fields at once, click Field Management. In the Field Management pane, select the fields and click the
icon to move them from Selected input fields to Unselected input fields.
-
-
-
Click OK to save the configuration for the SAP Table source component.