Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP CRM selection mode MULTISELECT

Hi Dear Experts,

I have an issue that confused me so much. In CRM Web UI, there is a component to display some data, but it just allow us to select one row, the view has not yet been enhanced. I then re-define the method do_init_context  to pass the 'MULTISELECT' as below:

typed_context->result->set_selection_mode(

       iv_selection_mode = cl_bsp_wd_context_node_tv=>selmode_multi

     ).


But it is still could not work correctly. Please see the attachment. No.1 could choose muliple but No.2 could not.


BR

Jay

Former Member
Former Member replied

I think you need to write your code in DO_PREPARE_OUTPUT method. Not DO_INIT_CONTEXT.

Redefine DO_PREPARE_OUTPUT and try by writing the below code.

me->typed_context->result->set_selection_mode( cl_bsp_wd_context_node_tv=>selmode_multi ).

    IF me->typed_context->result->collection_wrapper->if_bol_bo_col~multi_select ne abap_true.

      me->typed_context->result->collection_wrapper->if_bol_bo_col~set_multi_select( ).

    ENDIF.

typed_context->result->build_table( ).

R

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question