tELTSAPMap
tELTSAPInput components.
During the execution of the Job, the tELTSAPMap component executes the SQL
query statement on the SAP system, then the SAP system generates as many files as needed and
writes the retrieved data in these files, finally the tELTSAPMap component
reads the files one by one via an FTP connection and transfers the data to an output
component, such as tFileOutputDelimited.
tELTSAPMap Standard properties
These properties are used to configure tELTSAPMap running in the
Standard Job framework.
The Standard
tELTSAPMap component belongs to the ELT
family.
The component in this framework is available in all subscription-based Talend products.
Basic settings
Property Type |
Either Built-In or Repository.
|
Use an existing connection |
Select this check box and from the list displayed select the Note: When a Job contains the parent Job and the child Job, if you
need to share an existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection |
SAP Map Editor |
The ELT Map editor allows you to define the output schema and build graphically |
Server Type |
Select the type of the SAP server to be connected, either |
Client |
The SAP system client ID. |
UserId and Password |
The user connection ID and password. To enter the password, click the […] button next to the |
Language |
The language of the SAP system. |
Host name |
The name or IP address of the host on which the SAP server is |
System number |
The SAP system number. This property is available only when Application |
System ID |
The SAP system ID. This property is available only when Message |
Group Name |
The SAP group name. This property is available only when Message |
Batch size |
Specify the maximum number of records that can be written in each file |
File protocol |
Select either FTP or the secure alternative SFTP. |
FTP host |
Specify the IP address or the host name of the FTP server. |
FTP port |
Specify the listening port number of the FTP server. |
FTP user and FTP password |
Specify the user authentication data to access the FTP server. To enter the password, click the […] button next to the |
FTP directory |
Specify the directory where the files generated by the SAP system will be |
Data filename prefix |
Specify the prefix of the files generated by the SAP system. |
Specify a shared destination |
Select this check box and specify the shared destination in the Besides specifying the shared destination name in the component, Note that if you use the component’s own connection configuration, |
RFC server url |
Enter your RFC server details in the field provided. The Studio uses the RFC server as the streaming proxy to support high volume of This field becomes visible when you select Use the RFC server in the Advanced settings view. |
Package size |
Specify the number of records for each package. By default, In case you have a value higher than 10000, for example, 12000, the Studio This field becomes visible when you select Use the RFC server in the Advanced settings view. |
Advanced settings
Use the RFC server (Technical Preview) |
Select this check box if you wish to directly extract high volumes of data from an SAP application. When you select this option, the Connection configuration section displays the fields for the RFC server url and Package size. For more information, see the corresponding description of those fields in the Basic settings view. |
Kafka Properties | When you select the Use the RFC server option, the window displays the Kafka Properties table. Kafka, or Apache Kafka, is an open-source distributed streaming platform. For more information about Kafka, refer to https://kafka.apache.org/. Enter your Kafka information in the fields |
Use space to replace the control characters in data |
Select this option to replace special characters in data with spaces. Some characters in data This option is selected by default. |
SAP Properties |
If you need to use custom configuration for the SAP system being
used, complete this table with the property or properties to be customized. For example,
This property is not visible when the Use an existing |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the Job level |
Global Variables
ERROR_MESSAGE |
The error message generated by the component when an error occurs. This |
Usage
Usage rule |
The tELTSAPMap component is more commonly used along |
Support |
tELTSAPMap should be used to interact with the ERP part of |
Aggregating and filtering data in multiple SAP tables
tELTSAPMap components to aggregate data from two SAP tables and
filter the columns and rows of data, finally write the filtered data into a local CSV file
using a tFileOutputDelimited component.
Creating a Job for aggregating and filtering data in multiple SAP tables
-
The corresponding SAP transport that performs the SAP table join function
needs to be installed on your SAP system. For more information, see the
related documentation on how to install a Talend function
module for SAP. -
The FTP connection has been set up on the SAP server side to allow the
tELTSAPMap component to download all data files
generated by the SAP system. -
The connection dedicated to your SAP server has been set up in the
Repository tree view and the two SAP tables
ZTAL_VBRK and ZTAL_VBRP to
be joined and their schemas have been retrieved and saved under the SAP
connection node.
-
Create a new Job and add a tELTSAPMap component and a
tFileOutputDelimited component onto the design
workspace. -
Drag and drop the table node ZTAL_VBRK in the
Repository tree view onto the design workspace, in
the pop-up dialog box, select tELTSAPInput and click
OK, a tELTSAPInput component
labeled to ZTAL_VBRK will be added. -
Do the same to drag and drop the table node ZTAL_VBRP in
the Repository tree view onto the design workspace to add
another tELTSAPInput component labeled to
ZTAL_VBRP. -
Link the tELTSAPInput component labeled to
ZTAL_VBRK to the tELTSAPMap
component using a Link > ZTAL_VBRK (Table) connection. -
Link the tELTSAPInput component labeled to
ZTAL_VBRP to the tELTSAPMap
component using a Link > ZTAL_VBRP (Table) connection. -
Link the tELTSAPMap component to the
tFileOutputDelimited component using a Row > *New Output* (Main) connection, in the pop-up dialog box, enter the output name
out in the field and click OK.
The tELTSAPMap component will be linked to the
tFileOutputDelimited component using a connection
labeled to out (Main).
Configuring the Job for aggregating and filtering data in multiple SAP tables
-
Click the tELTSAPMap component and then the
Component tab to open its Basic
settings view. -
Select Repository from the Property
Type drop-down list and click the […]
button near to Property Type and in the pop-up dialog box
select the SAP connection node that has been created in the
Repository tree view. When done, click
OK and all SAP connection configuration fields will
be automatically filled. -
In the FTP host, FTP port,
FTP user, FTP password and
FTP directory fields, enter the FTP connection
information. The tELTSAPMap component will read all data
files generated by the SAP system via this FTP connection. -
In the Data filename prefix field, specify the prefix of
the files generated by the SAP system. -
Click the […] button next to SAP Map
Editor to open its map editor. -
On the top left panel, drag and drop the node LFNINDX in
the ZTAL_VBRK table onto the node
LFNINDX in the ZTAL_VBRP table
to create an inner join between the two tables. -
Drag and drop the nodes MANDT,
LFNINDX, VBELN,
FKART, FKTYP,
VBTYP, WAERK,
VKORG, VTWEG in the
ZTAL_VBRK table on the top left panel onto the
out table on the top right panel, and only the data
of those columns will be retrieved and written into the output CSV file. -
Click the Add clause row button on the top right corner
of the out table and then click Add a WHERE
clause. In the Additional WHERE clauses
field displayed, enter the clause used to filter the rows of data to be
retrieved. In this example, it is ZTAL_VBRK~VKORG = '1000' AND
ZTAL_VBRK~VTWEG = '10', which will filter only the rows of data
with the value of VKORG set to
1000 and the value of VTWEG
set to 10. -
Click Generated SQL Select query for “” output at the
bottom and you will see the generated SQL SELECT query used to aggregate and
filter the data from the two tables.When done, click OK to close the map editor.
-
Double-click the tFileOutputDelimited component to open
its Basic settings view. In the File
Name field, specify the path to the file into which the
aggregated and filtered data will be written, D:/out.csv
in this example. Then click the Sync columns button to
retrieve the schema from its previous component.
Executing the Job to aggregate and filter data in multiple SAP tables
- Press Ctrl + S to save the Job.
-
Press F6 or click
Run on the Run tab to execute
the Job.Note that the execution of the Job might take a long time if there is a large
amount of data in the source tables. -
Open the generated CSV file to check the filtered data.
As shown above, only the selected nine columns of data with the value of
VKORG set to 1000 and the
value of VTWEG set to 10 is
filtered and written into the output CSV file.