
Component family |
Business/SAP |
|
Function |
This component connects to an SAP server and reads data from a |
|
Purpose |
This component allows you to read data from an SAP table on an SAP |
|
Basic settings |
Property Type |
Either Built-In or Repository. |
|
|
Built-In: No property data stored |
|
|
Repository: Select the repository |
|
Use an existing connection |
Select this check box and from the list that appears select the relevant connection NoteWhen a Job contains the parent Job and the child Job, the list that appears presents |
|
Server Type |
Select the type of the server you are connecting to from the |
|
Client |
Specify the SAP system client ID. |
|
UserId and |
Specify the user connection ID and password. To enter the password, click the […] button next to the |
|
Language |
Specify the language of the SAP system. |
|
Host name |
Enter the name or IP address of the host on which the SAP server |
|
System number |
Enter the system number. This field appears only when Application |
|
System ID |
Enter the system ID. This field appears only when Message |
|
Group Name |
Enter the group name. This field appears only when Message |
|
Schema and Edit Schema |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
|
|
Table |
Specify the SAP table name. |
|
Filter |
Enter the filter condition between double quotes. The component Note that the column value must be surrounded by single quotes and |
|
Start row number |
Specify the sequence number of the row from which data retrieval The default value for this field is -1, which means to read all rows in the specified |
|
Max row number |
Specify the maximum number of rows to retrieve data from. The default value for this field is -1, which means to retrieve all rows that meet the |
Advanced settings |
SAP Properties |
If you need to use custom configuration for the SAP system being
|
|
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Connections |
Outgoing links (from this component to another): Row: Main, Iterate
Trigger: On Subjob Ok, On Subjob Incoming links (from one component to this one):
Trigger: On Subjob Ok, On Subjob For further information about connections, see Talend Studio User Guide. |
|
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is usually used as a start component in a Job and |
|
Limitation/Prerequisites |
You must add specific jar and dll files validated and provided by For further information about this procedure for adding the |
This scenario describes a Job that writes the data from a delimited file into an empty SAP
table, and then retrieves the data that meets the pre-defined filter condition from this
table and displays it on the console.

In this scenario, the input data in the delimited file is as follows:
1 2 3 4 5 6 7 8 9 10 11 |
YTC_ID;YTC_NAME;YTC_CITY 1;Ford;Beijing 2;Washington;Shanghai 3;Carter;Venice 4;Kennedy;Hongkong 5;Teddy;Beijing 6;Johnson;Paris 7;Truman;Beijing 8;Arthur;Venice 9;Adams;Shanghai 10;Tyler;Paris |
-
Create a new Job and add the following components by typing their names in
the design workspace or dropping them from the Palette: a tFileInputDelimited component, a tSAPOutput component, a tSAPTableInput component, and a tLogRow component. -
Connect tFileInputDelimited to tSAPOutput using a Row > Main link.
-
Connect tSAPTableInput to tLogRow using a Row > Main link.
-
Connect tFileInputDelimited to tSAPTableInput using a Trigger > On Subjob Ok
connection.
Writing the input data into an empty SAP table
-
Double-click tFileInputDelimited to open
its Basic settings view. -
In the File name/Stream field, browse to
the file that contains the input data. In this example, it is E:/in.csv. -
In the Header field, enter the number of
rows to be skipped at the beginning of the file. In this example, it is
1. -
Click the […] button next to Edit schema to open the schema editor.
Click the [+] button to add three
columns: id, name, and city, all of
the string type.Click OK to close the schema editor and
accept the propagation prompted by the pop-up dialog box. -
Double-click tSAPOutput to open its
Basic settings view. -
From the SAP JCO Version drop-down list,
select SAP JCO 3.*. -
Fill in the connection configuration fields with your SAP system
connection details. For more information about the connection parameters,
see tSAPOutput Properties. -
In the FunName field, enter the name of
the function to be used. In this example, it is ZBAPI_CREATECITY. -
In the Mapping table, click the cell in
Type column and select table_input from the drop-down list for each
row.Enter the structure table name in the cell of the TableName(StructureName) column for each row.
Enter the parameter name in the cell of the ParameterName column for each row.
Retrieving the data from the SAP table
-
Double-click tSAPTableInput to open its
Basic settings view. -
Fill in the connection configuration fields with your SAP system
connection details. For more information about the connection parameters,
see tSAPTableInput Properties. -
In the Table field, enter the name of the
table from which the data is retrieved. In this example, it is YTCITY. -
Click the […] button next to Edit schema to define the schema of the table in
the schema editor.Click the [+] button to add three
columns, YTC_ID, YTC_NAME, and YTC_CITY,
all of type String.Click OK to validate these changes and
accept the propagation prompted by the pop-up dialog box. -
In the Filter field, enter the filter
condition YTC_CITY = ‘Paris’ to retrieve
rows with the YTC_CITY column value set
to Paris. -
Double-click tLogRow to open its
Basic settings view. -
In the Mode area, select Table (print values in cells of a table) for a
better display of the output data.