Source - Target - Link

Administration > Data Integration Hub > Data integration hub > Import Definition > Source -Target - Link

Top  Previous  Next
Expand/Collapse Toggles

PATH: Administration > Data Import/Export > Data Integration Hub > "Open" Import definition > "Source - Target" - Link button.

Target field and source field can be linked on this screen.

 

Important: The target fields are on the left side and the source fields are on the right side.

Source_target_link_EXPLAIN_06

Window import_fields_browse.psr

 

All available target fields and their details are displayed. A source field can be assigned to a selected target field from the right-side list. The assignments are displayed in the last column.

A value from the source table, a default value or a calculated value must be transferred to the target field.

 

The Import preview window shows the result.

 

Field

Database column of the target field

Column description

Displays the target field name. Mandatory columns are displayed in bold.

When you hover over the description, Beas displays more information about the field.

import_help

Column name

Database field name

Type

hmtoggle_plus1 The type of assignment

From table: Directly apply type from the source "Import column".

SQL instruction: Execution of the SQL-instruction, which was defined in the "Import column"

Default: The default value was applied directly

No: No transfer

Column Name Origin

hmtoggle_plus1 Indicate what to import

Type table: Field name from the source table or field name in placeholder "<" and ">", for example <description1> <description2>. All default Beas placeholders as well as formatting information are available.

 

From the right-click menu a source field can be selected directly.

Type SQL: Select-instruction. The field name of the source table may be inserted as placeholder.

Type default: The here entered text, will be inserted directly as a number.

 

Note on data types:

Numbers

In script, all values are used with the Windows regional settings.

Germany: 300,25

USA: 300.25

It is important to ensure, that these values match the Windows regional settings.

 

Date

Date should be in the following format:

yyyy/mm/dd

or

yyyy/mm/dd hh:mm

otherwise the import can be incorrect.

 

Date

yyyy = Year, four digits

mm = Month, two digits

dd = Day, two digits

 

Time

hh = Hours two digits, 24h format

mm = Minutes two digits
 
If date or number not available in correct format, you can use the conversion field to convert the value

Max. length

hmtoggle_plus1 Max. length of a character string

The max. length of a character string can be indicated. Value 0 indicates that there is no maximum value.

Setting the maximum length is usually not necessary, because Beas controls these automatically:

 

Automatic control:

If the target field is a mandatory field, the maximum length is exceeded, the data row is not applied and an error is reported. For all other fields the exceeding length is cut off.

Conversion

hmtoggle_plus1The value can be converted, changed or checked using a script

Beas script can be included, which can change or check the source.

The transfer value is in the value variable and can also be changed.

setvar=value=<today,yyyy/mm/dd>  Returns the date.

 

If the field is selected and you double-click on an item in "table origin", Beas inserts the field in the conversion field.import_conversion1

 

The assistant and extended editor helps to define the script.

import_conversion2

All existing variables or window information (of the window from which the import is accessed) can be used.

 

Special variables:

<importfile>

File name, if a file is imported. For example, the item number can be encrypted.

<importrequestid>

The RequestId, which is stored in the Import-Settings - Extended. (beas 9.2 PL: 01)

<import.[columnname]>

On a column of the source file directly, if a value has to be filled that is dependent on another column.

if <import.ite#bom#quantity> n> 5 then
  setvar=value=A
end if

 

Example: Convert a value

Converts the source to "M", when this is "Y", otherwise this is not changed.

if <value> = Y then
  setvar=value=M
end if

 

The return value true/false can determine, whether the data row should be applied.

 

Example: Replace dot with comma

Regional settings: comma is the separator:

tools=globalreplace=value=.=,

10.5 is converted to 10,5

Regional setting: dot is the separator, but at import a comma should be used:

tools=globalreplace=value=,=.

 

Example: Cancel in case of a certain value

Stops the import, if the value begins with 1:

if <value,left 1> = 1 then
  return failure
end if

 

All source fields can be accessed. For this, the "<import.[feldname]>" placeholder is used.

 

Example: Determine item group

The "itemgroup" source field is available.

Material group should be "100", if "item group" is 50, otherwise material group 200 should be used.

To achieve this enter the following in "Material group" field at the test script:

if <import.itemgroup> = 50 then
  setvar=value=100
else
  setvar=value=200
end if

 

 

 

Buttons

Button

Description

OK/Update

After modifying any field, you can update the changes and close this window.

Cancel

Close window without any changes.

Search

Search

Go on search

Continue searching

Automatch

With this button you can create an automatic match between fields defined in the import file with fields defined in the import. See Automatch function.


Help URL: https://help.beascloud.com/beas202102/index.html?felddefinitionen.htm