I am getting a Guid of an object in my function module. Now i need to get the entity with that guid.
I have the object type of the guid.
I am using the method get_entity of cl_crm_bol_core.
TRY. lr_core = cl_crm_bol_core=>get_instance( ). lr_evhist = lr_core->get_entity( iv_object_name = 'BT230_SLSC' iv_object_id = lv_genil_object_id ) . CATCH cx_crm_unsupported_object . ENDTRY.
My problem is that the guid I have, is of type CRMT_OBJECT_GUID. But this method accepts of type crmt_genil_object_guid.
Now how do I convert it.