Creating a Model (Example)
Prerequisites
You have already created the object types that you want to link to one another in the Business Object Repository.
The default attribute should be entered (in the basic data) for these BOR objects: Its describing text is displayed in the relationship display. Otherwise, only the object key is displayed.
Procedure
-
Choose .
-
Enter the view cluster VRBINRELATION and choose
Maintain. -
Check whether role types are available in the system which are applicable for the object types to be linked. If not, double-click on Role Types and choose New Entries. Enter your role types and sufficiently descriptive texts.
-
Select a role type. Double-click on Object Ttypes for Role Types in navigation and assign the relevant object types to the role type. Proceed in exactly the same way for your other role types.
You can also not enter any object type. Then all BOR object types in this role can occur.
-
Double-click on Binary Relationship Types and choose New Entries. Also enter the Application Table here in which the relationships should be written. If you want to create attributes (last step) you must set the corresponding indicator.
Also enter sufficiently descriptive texts here (as " semantics")! Only in this way is the display of the relationships subsequently comprehensible.
By using the Cardinality of the role you enter whether several or only one object in this role can be linked with an object in the other role. For Cardinality 1: Cardinality N - relationship can therefore link any number of objects in the second role with one object in the first role.
The name of the application table should be < component> SRGBINREL, with < component> = SD, MM, ..., according to application.
-
Choose
.Your data is put in a transport request.
-
Optional: Position the mouse on Attributes for Binary Relationship Types and enter the attribute, the application table (for Attribute Mode P = "persistent") and the structure, by which the data part of the application table should be read. Assign your Relationship Type (= "binary relationship type") to the attribute. Choose .
The name of the application table should be < component> POSFORM, with < component> = SD, MM, ..., according to application.
The structure of the application table is described in the section Attributes of Relationship Types.

