Configure the SAP Table source component

Updated at:

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

Procedure

  1. In the top navigation bar of the Dataphin homepage, choose Develop > Data Integration.

  2. In the top menu bar, select a project. If you are in Dev-Prod mode, you must also select an environment.

  3. 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.

  4. In the upper-right corner of the page, click Component Library to open the component library panel.

  5. 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.

  6. On the SAP Table source component card, click the image icon to open the SAP Table Input Configuration dialog box.

  7. In the SAP Table Input Configuration dialog box, configure the parameters.

    • Select RFC_READ_TABLE

      RFC_READ_TABLE is 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 image icon to copy the current data source name.

      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 Rowskip value. 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 image 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 image icon to move them from Selected input fields to Unselected input fields.image

    • 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 image icon to copy the current data source name.

      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 TABLES parameter 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 EXPORT parameters of the RFC to output fields, with all fields treated as string types. EXPORT parameters of the STRUCTURE or TABLE type 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 through EXPORT parameters 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 EXPORT parameters; 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 image 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 image icon to move them from Selected input fields to Unselected input fields.image

  8. Click OK to save the configuration for the SAP Table source component.