Hi Matthias,
thanks for the information about the WCF_FAV_* tables.
I did a little research, the favorite is stored in table WCF_ML_OBJECT as an BOL object.
You can use the following code to get a collection which contains the BTOrder entity for a favorite:
DATA: lr_bol TYPE REF TO cl_crm_bol_core,
ls_instances TYPE crmt_genil_obj_instance,
lt_instances TYPE crmt_genil_obj_instance_tab,
lr_col TYPE REF TO if_bol_bo_col,
ls_object TYPE wcf_ml_object.
TRY.
lr_bol = cl_crm_bol_core=>get_instance( ).
lr_bol->start_up( 'BT' ).
CATCH cx_root.
RETURN.
ENDTRY.
SELECT SINGLE * FROM wcf_ml_object INTO ls_object. "here select with the ID from the WCF_FAV_* tables
CLEAR lt_instances.
ls_instances-object_name = ls_object-name.
ls_instances-object_id = ls_object-genil_id.
INSERT ls_instances INTO TABLE lt_instances.
lr_col = lr_bol->get_access_entities( it_instances = lt_instances ).
IF lr_col IS BOUND.
ENDIF.