Ok thanks you Andrei, I Read the engage rules.
I already tried to get the BP like in the post mentioned, but when i do the instruction:
lv_context = cl_crm_ui_data_context_srv=>get_instance( ).
I get this exception:
An exception (CX_BSP_WD_NAVIGATION_REJECTED) occurred
Mesage N. TPDA430
My class is defined as logical link in table CRMV_UI_LLINK, type "report BI" the class ZCL_CRM_GEN_UI_BI_UTIL is a copy of standard CL_CRM_GEN_UI_BI_UTIL.
Instead for example if the record BI in called from a factsheet, that use the interface IF_EX_BSP_DLC_FS Interface for BAdI: BSP_DLC_FS_BADI,
in the method IF_EX_BSP_DLC_FS~GET_BI_REP_PARAMETER
the instruction
lv_context = cl_crm_ui_data_context_srv=>get_instance( ).
Works well.
Do you know why in the class ZCL_CRM_GEN_UI_BI_UTIL, method CREATE_BI_ENTITY the same instruction to get the context server instance doesn't works?
Thanks. Marco