This is the eh_onselect row method's coding.
*CALL METHOD SUPER->EH_ONSELECT
** EXPORTING
** HTMLB_EVENT =
** HTMLB_EVENT_EX =
* .
DATA: lv_htmlb_event TYPE REF TO cl_htmlb_event_tableview,
lr_table_view TYPE REF TO cl_thtmlb_table_view.
me->typed_context->builheader->set_selection_mode( cl_bsp_wd_context_node_tv=>selmode_multi ).
TRY.
lv_htmlb_event ?= htmlb_event.
lr_table_view ?= htmlb_event_ex.
CATCH cx_sy_move_cast_error.
EXIT.
ENDTRY.
CHECK lr_table_view IS BOUND.
GT_ROW_SELECTED = lr_table_view->get_rows_selected( includecurrentselectedrow = 'TRUE' ).
me->typed_context->BuilHeader->eh_on_row_selection(
iv_htmlb_event = lv_htmlb_event
iv_htmlb_event_ex = htmlb_event_ex ).
endmethod.
Base on the condition you can select the rows of table