Show TOC Entering content frame

Object documentation Business Object Relationships Locate the document in its SAP Library structure

Definition

It is the link between business objects that are modeled based on business logic, the details of which are stored in the Mobile Application Repository.

Structure

The types of relationships include:

·        Parent-Child

·        Normal

Cardinalities

Business objects can be related to each other with different cardinalities.

·        one-to-one (1:1), where a business object is related to another, that is, one record is related to another in the database

·        one-to-many (1:n), where a business object is related to many other business objects which are in the form of a business collection.

·        many-to-many (m:n)

In the business framework, relationships are modeled as business object attributes.

In a one-to-one relationship, a business object owns the partner business object as an attribute. The name of the attribute is the role name of the partner business object, which is defined in the Mobile Application Studio.

In a one-to-many relationship, a business object owns a business collection of the related business object as an attribute. So, it can use the normal navigation means of the business collection to access the required business object.

A many-to-many (m:n) relationship can be modeled using a link object, which has two business collections as its attributes.

Example 

If object A and object B has an m:n relationship, then a link object C is defined, which has m:1 relationship with object A and n:1 relationship with object B.

See also:

Visual Depiction of Business Object Relationships

Leaving content frame