Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference > Adding Custom Extensions to the Data Model >
EIM Table Mapping Wizard
The EIM Table Mapping Wizard is accessed by right-clicking on a table entry in the Table list applet. The EIM menu item is only enabled with the non-standalone customer table. You can select an interface table and specify a prefix for the interface table columns that are generated by the wizard and that create a complete hierarchy of EIM Table Mapping objects needed to import and export data to and from the selected table. See Figure 75.
The EIM Table Mapping Wizard does not map foreign key columns if they point to a parent table column that does not have user key attributes. Because you cannot add user key attributes, this means that the EIM Table Mapping Wizard does not work with either standalone tables or foreign keys to custom tables.
In order to invoke the EIM Table Mapping Wizard for those Siebel base tables that do not have the foreign key as part of the user key, you need to create a temporary column with the following properties:
Field Value Inactive Y User Key Sequence <> NULL (for example, set it to 0) FK (Foreign Key) Set (FK) Foreign Key table as itselfBy creating this temporary column, when you launch the EIM Mapping Wizard, it will list standard EIM interface tables that are already mapped to this table as the target or destination tables. The wizard will also list EIM tables that are mapped to tables to which this table has a foreign key. However, the foreign key must be part of the "Traditional U1 Index" user key of this table.
NOTE: After the EIM Mapping Wizard finishes, you should delete this temporary column.
To map a new table to an EIM interface table using the EIM Table Mapping Wizard
- Lock the project.
- Select Table object type in the Object Explorer.
- Select an entry in the Object List Editor.
Choose from the list a base table that will be mapped to an EIM Table. It will be the primary table into which data from the existing Interface table will be imported.
This wizard is only available to tables of type Data (Public) and Data (Intersection), and Data (Extension), and Data (Extension-Siebel).
- Right-click and select EIM Mapping Table from the menu.
The Interface Mapping dialog box is displayed with the Base Table name field populated with the selection you made in the Object List Editor.
- In the "Edit the Column name prefix" field, enter a distinguishing prefix.
If a prefix does not already exist for the selected EIM table, the new prefix will be added to specified EIM Interface Table Columns related to the target table. If a prefix already exists, the existing prefix will be used.
- In the "Select an interface table" field, select from the picklist.
The picklist for selecting the EIM Interface Table that will be mapped is constrained to show those standard interface tables that are mapped to tables to which the new custom table has a foreign key.
When selecting an existing base table, the wizard will only let you select the interface tables that have the base table defined as a target table.
The list is sorted by EIM table name. In the list you see candidate interface tables.
However, you will be given the option to select a different EIM table from the list. The picklist for choosing an EIM table will show the name of the table. In the picklist, interface tables with EXIST='Y' means that these EIM tables already have the base table mapped. If you extend existing Siebel tables, please consider these tables as the ideal candidates for EIM mapping.
If the EIM table you picked is not locked, you cannot proceed. You must lock the EIM table before starting the wizard.
- Click Next on the Interface Table Mapping dialog box.
The Summary dialog box appears with a summary of the choices you have made.
- Click Finish on the Summary dialog box to accept the choices you made and generate the EIM Interface Table object.
Based on this information, the wizard creates new EIM table mapping objects and adds several child objects to an existing EIM interface table object:
- EIM Interface Table Column
- EIM Table Mapping
- Attribute Mapping
- EIM Explicit Primary Mapping
- Foreign Key Mapping
- Foreign Key Mapping Column
EIM Object Specifications
The specifications for EIM objects are as follows:
- EIM Interface Table (Table 17)
- EIM Interface Table Columns (Table 18)
- Generic EIM Interface Table Columns for EIM processing
For each EIM Table Interface the following three columns are created to facilitate processing. Customers cannot change their values, which are shown in Table 19.
- EIM Interface Table Columns for processing a mapping to a particular table
There are four of these columns for each EIM Table Mapping object, with the following properties (Table 20):
For example, if the target table selected by the user is CX_SEC_LEV, an EIM Table Mapping object is created. The following four column objects are generated, with the corresponding default properties (Table 21):
- EIM Interface Table Columns for foreign key processing
A column is created for each foreign key on the relevant EIM Table Mapping object (that is, the target table). These columns have the following properties (Table 22):
For example, if CX_SEC_LEV contains foreign key columns called OPTY_ID and ACCNT_ID to the S_OPTY and S_ORG_EXT tables, respectively, the following EIM Table Columns are generated (Table 23):
- EIM Interface Table Columns for foreign keys
A separate foreign key column will be created for each U1 user key column on the foreign key tables. The columns have the following properties (Table 24):
Continuing with the CX_SEC_LEV example (Table 25):
NOTE: Depending on the base column type, corresponding EIM columns are generated accordingly.
- EIM Interface Table Column for each attribute on the target table
Attribute columns on the target table are those of type Data (Public) that have a null Foreign Key Table property. These EIM interface table columns will have the following properties (Table 26):
For example, if you enter a prefix of SECL and have the following attribute columns in CX_SEC_LEV: NAME (Varchar 100), DESC_TEXT (Varchar 250), and AUTO_UPDATE (Char 1), the following EIM interface table columns are generated (Table 27):
- EIM Table Mapping objects based on the target table
The name and destination columns will be set to the name of the target table. The processing column properties will correspond to those that have been automatically generated. For example (Table 28):
- Attribute Mapping objects for each EIM interface column generated
These should have the following property values (Table 29):
Table 29. Attribute Mapping Objects for Each EIM Interface Column Object Value Name Attribute column on target table Interface Table Data Column Name of corresponding EIM interface table column generated (Table 27) Base Table Attribute Column Name of attribute column on target table- Foreign Key Mapping for each foreign key column on the Target Table
A separate Foreign Key Mapping object is created for each foreign key mapping column on the target table. The following properties are set for each (Table 30):
Continuing with the CX_SEC_LEV example (Table 31):
- Foreign Key Mapping Columns for each Foreign Key Mapping object
A separate Foreign Key Mapping Column object is created for each user key column in the user key specified for the parent Foreign Key Mapping object (Table 30). The following properties are set for each foreign key mapping column (Table 32):
Table 32. Foreign Key Mapping Columns for Each Foreign Key Mapping Object Column Value Name EIM interface table column to which the user key column on the target table should be mapped.This EIM interface table column is generated according to the specifications in Table 24. Interface Data Column EIM interface table column to which the user key column on the target table should be mapped.This EIM interface table column is generated according to the specifications in Table 24. User Key Attribute Name of the corresponding user key column that belongs to the user key specified in Table 30.Continuing with the CX_SEC_LEV example (Table 33):
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference, Version 7.5, Rev. A Published: 18 April 2003 |