Hello Experts,
I implemented my own search page and added a link on every row of the returned query that should direct me to the email component eg. CRMCMP_CCS_EMLV.
I did something similar with Business partners and Task and it works. For BPs and tasks I managed to identify the object type and name associated to each of them and then I dynamically navigate to the components required.
The way I did it for tasks for instance is:
DATA: lr_entity TYPE REF TO cl_crm_bol_entity, lr_col TYPE REF TO cl_crm_bol_bo_col. DATA: lr_nav_descr TYPE REF TO if_bol_bo_property_access, lr_nav_serv TYPE REF TO if_crm_ui_navigation_service. lr_entity = lr_core->get_root_entity( iv_object_name = 'BTOrder' iv_object_guid = lv_guid ). CREATE OBJECT lr_col. lr_col->if_bol_bo_col~add( iv_entity = lr_entity iv_set_focus = abap_true ). CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_ui_object_based EXPORTING iv_ui_object_type = 'BT126_CALL' iv_ui_object_action = 'B' RECEIVING rr_result = lr_nav_descr. lr_nav_serv = cl_crm_ui_navigation_service=>get_instance( ). lr_col->if_bol_bo_col~insert( iv_bo = lr_nav_descr iv_index = 1 ). * start the navigatiostart the navigation lr_nav_serv->navigate_dynamically( iv_data_collection = lr_col ).
My question is whether doing the same for emails is possible and if yes can someone please share his/hers knowledge?
I guess that there should be a root object associate with emails like there is BTOrder for tasks.
Once the correct root object is identified I will need the object type (like BT126_CALL for tasks) to create the ui_object_based
Thank you for you help,
K