Joining Segment Tables
Use
A join is a connection between two tables that represents the parent-child relationship between the tables. The two tables are merged based on a common field creating a new virtual table.
To view data from two different tables, you need to create a join condition.
Procedure
-
Log on to the CRM server and choose .
The CRM BDoc Modeler screen appears.
-
Expand the synchronization or Mobile Application BDoc type in the tree.
-
Right-click the segment to which you want to add the join condition.
A context menu appears.
-
Choose Change .
The Segment Overview , Mappings , Joins , and Segment Fields tabs appear.
-
Choose the Joins tab.
-
Enter the alias names of the source and destination tables in the Source Table Alias and Destination Table Alias fields.
-
Choose
.The Join Condition dialog box appears.
-
Enter the join condition.
-
Save the BDoc type.
Example
Customers and Contact Persons are stored in the table SMOKNA1.
Addresses are stored in the table SMOADRC.
Task
In a query, you want to search for a Contact Person with search parameters from both the tables.
Solution
Define a join between tables SMOKNA1 and SMOADRC.
SMOKNA1.sfakna1=SMOADRC.sfakna1
Where,
sfakna1 - is a common field in both the tables and is the primary key for SMOKNA1 and foreign key for SMOADRC.

