Warning
This component will be available in the Palette of
Talend Studio on the condition that you have subscribed to one of
the Talend Platform products.
Component family |
Business |
|
Function |
tSAPIDocReceiver connects to |
|
Purpose |
tSAPIDocReceiver lets you extract |
|
Basic settings |
Connection |
Talend SAP RFC Server host: Enter Port: Enter the port used by User: Enter a valid username used Password: Enter the password that To enter the password, click the […] button next to the |
|
Mode |
The component is linked to tHMap: If the tSAPIDocReceiver component Mode: Select Keep running forever if you want the Select Batch (consume all IDocs available Maximum duration (seconds): If Maximum number of IDocs to |
Advanced settings |
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 For further information regarding connections, see |
|
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 |
Once executed, this component keeps listening for new IDocs (at |
|
Limitation/Prerequisites |
To use this component, you must have already installed and You must also add specific jar and dll files validated and |
The following scenario creates a three-component Job that connects to an SAP server,
in order to consume IDocs for processing by
tHMap.
Note that Talend SAP RFC Server needs to be running
for this scenario to work. In addition, the
tHMap component is only available in the Palette of Talend Studio if you have subscribed to one of the Talend Platform
products.
Creating an SAP connection and importing the IDoc structures
-
In the Integration perspective, in the
Repository view, expand Metadata, right-click SAP
Connections and then, in the contextual menu, click Create SAP connection. The [SAP
Connection] wizard opens. -
Enter a name for your connection in the Name
field, for instance SAPServerConnection, and
then click Next. -
In the next screen of the wizard, enter the appropriate connection parameters
to connect to your SAP server, and then click Finish to create the connection.If you do not have this information, contact the administrator of your SAP
server for help. -
In the Repository view, under Metadata, expand SAP
Connections, right-click the connection you just created and
then, in the contextual menu, select Import Data Mapper
IDoc Structures. -
In the [Search SAP for IDoc types] wizard
that opens, enter some search criteria to reduce the number of results returned
or leave all fields blank to return all available IDocs, and then click
Search. -
Select the structure or structures you want to import, and then click
Next. -
Enter IDocs in the Structure name field to import the structure into a folder
called IDocs, and then click Next and then Finish
to complete the import process.
Adding and linking the components
-
In the Integration perspective, create a
new Job and call it idoc_job. -
Click the point in the design workspace where you want to add the first
component, start typing tSAPIDocReceiver, and
then click the name of the component when it appears in the list proposed in
order to select it. -
Do the same to add a tHMap component and a
tLogRow component as well. -
Connect the tSAPIDocReceiver component to the
tHMap component using a Row > Main link, then connect the tHMap component to the tLogRow
component using a Row > Main link.
Defining the properties of tSAPIDocReceiver
-
Select the tSAPIDocReceiver component to
define its properties. -
If Talend SAP RFC Server is installed on
your local machine, leave all the default settings unchanged.Otherwise, enter the IP address of Talend SAP RFC
Server in the Talend RFC Server host
field and update the Port, User and Password fields
if necessary. Leave all the other settings unchanged.
Defining the properties of tHMap
-
Select the tHMap component to define its
properties. -
Click the Sync columns button to synchronise
the schema between the different components of your Job. -
Click the […] button next to the Open Map Editor field to create a new map.
-
In the [tHMap Structure Generate/Select]
dialog box that opens, select Select an existing
hierarchical mapper structure for the input structure, and then
click Next. -
Select the IDoc structure that you imported earlier, and then click Next and then Finish.
-
Do the same for the output structure, again selecting the IDoc structure that
you imported earlier, and then click Next and
then Finish. -
In the Mapping perspective that opens, in the
Data Mapper view, expand Hierarchical Mapper, Maps, Jobs and then idoc_job, and then right-click the tHMap_1 map and select Properties in the contextual menu. -
Click the […] button next to the Output Representation field, select XML in the dialog box that opens, click OK, and then click OK again to close the [Properties] dialog box.
-
In the map, drag the root element from the Input
(Flat) side to its corresponding root element on the Output (XML) side to create a simple map in which the
input file will be transformed into an XML file on output. -
Press Ctrl+S to save your changes to the
map. -
Switch back to the Integration perspective to
complete the settings for the tHMap component
in your Job. -
Set Read Input As to Single column.
-
Set Write Output As to String (single column).