VeloX Docs

Other plugins

Data Converter

Join the data of two sources into one table by key columns.

Overview

The Data Converter plugin joins the data of two sources into one table. You define the columns of the table, mark one or more of them as key columns, and map each column from the sources. Rows of the two sources that have the same key values become one row.

For example, one Excel file holds MATNR and MAKTX, and a database table holds MATNR and WERKS. With MATNR as the key column, the plugin returns one table with MATNR, MAKTX, and WERKS.

You can find the plugin in the Non-SAP Targets group on the left panel of the Designer section. It is a converter: map two sources to its import columns and map its export columns to a target or to the next plugin. It doesn't connect to SAP: the join runs locally in VeloXm.

How to use

  1. Add the Data Converter plugin to the canvas.
  2. Open Columns, enter a column name in Enter Column Name., and click Add Column (or press Enter). Repeat for each column you need. Each column has an import side and an export side.
  3. Click each column that identifies a row in both sources and select Key.
  4. Map every key column from both sources: one link from the first source and one link from the second source.
  5. Map each other column from the source that holds its data.
  6. Map the export columns to a target.

Column names must be unique in the plugin: if you add a name that already exists, no new column is added. To remove a column, click the close button on the column.

Columns

Option Description
Add Column Adds a column with the name entered in Enter Column Name.. The column appears on the canvas as an import field (left) and an export field (right).
Key Marks the column as a key column. The K badge appears on the column. Rows of the two sources are matched on the values of all key columns.

An import column can take links from more than one source. The number on the import column shows how many links it has.

Checks before the run

When you start a run, the plugin checks the mapping and stops with a message if one of these rules is broken:

Message What to do
Key fields are not selected. Mark at least one column as Key.
Key fields should be linked with two Data Source elements. Map every key column exactly twice, once from each source.
Import fields should be linked with two different Plugins. Map the import columns from two different source plugins.

Run-time behavior

The plugin reads all mapped columns from each of the two sources and builds one table for each source. Then it combines them in one of two ways:

  • Both sources return more than one row. The rows are matched on the key columns. Matched rows are combined into one row. Rows that have no match in the other source are kept, and their columns from the other source stay empty. The result is like a full outer join: rows of the first source come first, followed by the unmatched rows of the second source.
  • One of the sources returns exactly one row. The key columns are not compared. The non-key values of that single row are added to every row of the other source. Use this to add header values, such as a company code or a date, to every item row.

When both sources return more than one row, the key values must be unique within each source. If a source has two rows with the same key values, the run stops with an error. Key values are compared without regard to upper and lower case.

Map each non-key column from one source only. If a non-key column is mapped from both sources, the value of one source replaces the value of the other in matched rows.

All values are handled as text. When the next plugin reads the result as a table, rows that have the same values in all requested columns are returned once.

The plugin works the same way in simulation mode: it doesn't write data anywhere, so there is nothing to simulate.

Log

Each run is written to the technical log: the plugin version, the input table of each source, and the combined output table. If the run fails, the log row is marked as an error with the source Data Converter and the exception text.

Our experienced team of experts has the capability to develop customized solutions to fit your individual needs.

Please contact us for more information on how we can help you.

Esc