First you need to get the root entity using cl_crm_bol_core method get_root_entity by passing GUID and get the relation from GENIL_MODEL_BROWSER and get your relation.
lr_core ?= cl_crm_bol_core=>get_instance( ).
lr_root ?= lr_core->get_related_entity( iv_object_name = 'root entity name' iv_objkey = 'GUID' ).
Regards,
Deepika.