Skip to main content

Advanced Join Keys

The Advanced Join Key feature enables you to customize join keys when establishing relationships, such as object-to-object or activity-to-object relations. This is useful when columns do not match one-on-one.

Advanced Join Key Types​

You can manipulate columns using any of the following advanced join key types:

TypeDescriptionUsageExample
ConstantInserts a constant value.- Select Value: Specify the constant value to use.If you set the value to 4748, the constant 4748 will be used in the join key.
PaddingPads a column's value with a specified character to a certain length, either from the left or right.- Select Column: Choose the column to pad.
- Direction: Left or Right.
- Length: Total length after padding.
- Character: Character to pad with.
Padding the ID column to a length of 5 with zeros on the left:
- Original ID: 123
- Result: 00123
TrimTrims characters from a column's value from the left or right.- Select Column: Choose the column to trim.
- Direction: Left or Right.
- Length: Number of characters to trim.
Trimming 2 characters from the left of Code column:
- Original Code: ABCD
- Result: CD
Left CharactersTakes a specified number of characters from the left of the column's value.- Select Column: Choose the column.
- Number of Characters: How many characters to take from the left.
Taking 3 characters from the left of Name column:
- Original Name: Jonathan
- Result: Jon
Right CharactersTakes a specified number of characters from the right of the column's value.- Select Column: Choose the column.
- Number of Characters: How many characters to take from the right.
Taking 2 characters from the right of Serial column:
- Original Serial: A12345
- Result: 45
SubstringExtracts a substring from the column's value starting at a specified position for a certain length.- Select Column: Choose the column.
- Start Position: The starting character position.
- Number of Characters: Length of the substring.
Extracting 3 characters starting at position 5 from AccountNumber column:
- Original AccountNumber: 123-456-789
- Result: 456

Example: Join Key Columns with Different Formats​

Let’s explore when and how to use the Advanced Join Key feature. In this example, we want to create a relationship between the object Sales order item and Sales doc flow.

Key details​

  1. To connect the two tables, we use three join keys for each table.
  2. Comparing the column previews, we observe the following:
    • The columns mandt and vbeln have a matching format in both tables.
    • However, Sales order item.posnr includes leading zeros, while Sales doc flow.posnn does not.

Advanced Join Key Example: Join Keys with Different Formats

Problem:​

If we try to establish this relationship without modifications, Konekti will issue a warning: no relations could be created due to the mismatch between posnr (000001) and posnn (1). These are treated as different values.

Solution:​

We can resolve this by modifying Sales doc flow.posnn with an Advanced Join Key. By adding padding, we can reformat 1 to 000001, ensuring consistency between the columns.

How to Add an Advanced Join Key​

  1. Go to the Edit relation screen.
  2. Click the + option to add a join key.
  3. From the dropdown menu, select Advanced Join Key.
  4. Enter the required details to customize the key.
  5. Click Save to apply your changes.

Adding an Advanced Join Key

Example: Configuring an Advanced Join Key​

In our example, we configure the Advanced Join Key for Sales doc flow.posnn. The Formatted value example field in the editor shows the result of the reformatting. After applying padding, posnn is aligned with the format of posnr.

Configured Advanced Join Key Example