READ Methods
Definition
You can read related objects from an object with these methods of the CL_BINARY_RELATION class.
Use
Note that performance problems can occur when reading relationships without giving the relationship type or role, in which the object is related, if the roles are not saved in the database. For more information, see Persistent Roles.
READ_LINKS
Transfer the object for which the linked objects are to be read. You can make the following restrictions:
-
Only read relationships of a specific type
-
Only read relationships where the object occurs in a specific role
READ_NETWORK
In addition to the function of READ_LINKS, the related object from the related objects is also read from the outbound object entered. As a restriction, you can enter to what depth the relationships are to be read. You have to give this restriction if you do not restrict relationship type and role.
Ensure that the relationship type given refers to the object given, that is, it is the relationship type in which this object occurs. If, for example, you want to read all the successors of an object, you have to enter the predecessor relationship type.
READ_LINKS_OF_BINREL and READ_LINKS_OF_BINRELS
For these methods, you have to restrict reading by entering one or multiple relationship types.
For more information, see the system documentation for these methods.