Skip to Content
1
Apr 26, 2018 at 10:25 AM

SAP CRM - How to get current activity in IC from a different UI component

664 Views Last edit Apr 27, 2018 at 08:09 AM 7 rev

Hi experts,

I need to access an activity data from an UI component. I have to implement some code in CRMCMP_EMAIL/MailSearchResultView but first, I need to have access to the current activity data in IC (BT125H_TASK UI Component). So here is the scenario: The operator confirm a BP, then search an activity (Navigation Bar--> Search activity), then goes in edit mode, after that click on Email Outbounding (Navigation Bar-->Email)...and here is where I need to intervene to implement my code and I need to access the current activity data which is in edit mode. I tried to use

lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( me )

but can't get any data regarding the current activity in IC. But if I repeat the same process with Service Request instead of activity (Navigation Bar--> Search Service Request), it gave perfectly the entity of current service request. what am I missing?

Does anyone know which of the following Global Custom Controller provides me the entity of the activities?

GLOBAL.CRM_IC/CategoryController”

GLOBAL.ICCMP_CM/CuCoCm”

GLOBAL.CRMCMP_BPIDENT/CuCoBuPa”

GLOBAL.ICCMP_BT_GLOBAL/CuCoBT”

GLOBAL.ICCMP_BT_GLOBAL/CuCoDeBT”

GLOBAL.ICCMP_FAXLETTER/CuCoFaxLetter”

GLOBAL.CRMCMP_IC_FRAME/CuCoHiddenView”

GLOBAL.ICCMP_IBASE/cucoibase”

GLOBAL.ICCMP_BT_GLOBAL/CuCoIRec”

GLOBAL.CRMCMP_CCS_EML/MailCuCo”

GLOBAL.ICCMP_BT_GLOBAL/CuCoProcess”

GLOBAL.ICCMP_PROD_GLOB/CucoProduct”

GLOBAL.ICCMP_GLOBAL/CuCoUI”

GLOBAL.ICCMP_EMP_SRCH/CuCoEmp”

GLOBAL.ICCMP_AUTO_VEHI/VEHICuco’

I also tried:

DATA: LV_CC TYPE REF TO CL_BT125H_T_TASKDETAILSCU_IMPL.

LV_CC ?= GET_CUSTOM_CONTROLLER( 'GLOBAL.BT125H_TASK/TaskDetailsCuCo' ).

but the BSP application crashes. Any suggestion?

appreciate your time and attention in advance