Business Object Classes, Root Objects and Dependent Objects
Use
With business objects (BOs) you can represent information and functions of different entities. You can create, change, delete, or display single objects (in contrast to the object reader). Technically, a BO is a derivation of the class CL_EEWA_BO_BASE, which describes the basic interface for BOs. A BO is represented in SAP Customer Relationship Management (CRM) by a root object or a dependent object. RELATIONS or DETAILS are dependent objects while every other BO is a root object.
Each business object type represents the structure of the corresponding business object (for example object address or waste disposal order (WDO) item) in the SAP ERP system. One instance of this concrete BO type represents exactly one of these corresponding business objects.
BOs store their primary data in a public property called DATAREF. This property is a type reference to a specific (not complex) structured type, which contains the data values as fields. These values can consist of persistent and transient fields. Data, which does not directly belong to the object or needs to be separated from the main data for other reasons, are stored in a public property called RELATIONS and DETAILS.
A RELATION can be described as 1:0.1 relation in UML. There are two types of RELATIONS:
-
Saveable
The system saves saveable RELATIONS to the database at the same time as it saves the BO.
-
Read only
The system does not save read-only relations.
1:0.n relations of business objects are designed as DETAILS. Each BO may have multiple DETAILS. A DETAIL consists of a technical description and a generic table, which must include a specific (not complex) structure. A DETAIL may be a head:position relation.
There are two types of DETAIL:
-
Simple DETAILS
A simple DETAIL is a plain structured list, which has to be modified using the master BO. It can be read only or changeable (such as a RELATION) and has to be modified (if allowed) by using provided functionality in the business object.
-
BO DETAILS
BO DETAILS means that all of the 0..n records in the list are BOs themselves. BO DETAILS are used when the subobject is complex. Complex details are changeable and should be changed using the business object. Loading and saving of this subobject is done by the master BO.
Prerequisites
To use this function, you must activate the business function Performance Improvements (CRM_FS_PERF_1).