method set_selected_rows .
data: lt_roid type lvc_t_roid,
lt_row type lvc_t_row.
lt_row = it_index_rows.
lt_roid = it_row_no.
*----------------------------------------------------
*Webdynpro Conversion Runtime
*----------------------------------------------------
* if cl_dynp_global_control=>is_wdpmode( ) eq
* cl_dynp_global_control=>co_conversion_mode.
* if mr_alv_model is initial.
* create object mr_alv_model
* exporting
* i_cntl_handle = me->h_control
* ir_alv_grid = me.
* endif.
* call method mr_alv_model->set_selected_rows
* exporting
* it_index_rows = lt_row .
* endif.
* if not mr_alv_model is initial.
* check mr_alv_model->get_wdcomp( ) > 0.
* endif.
*----------------------------------------------------
* End of Webdynpro Conversion Runtime
*----------------------------------------------------
if me->m_performance eq 'X' and
me->m_roids_sent eq space and
( not it_index_rows is initial or not it_row_no is initial ).
call method me->set_row_id
exporting
row_id_table = mt_roid.
me->m_roids_sent = 'X'.
endif.
if not it_index_rows is initial and
it_row_no is initial.
call method me->map_row_to_roid
exporting
it_index_rows = lt_row
importing
et_row_no = lt_roid.
endif.
call method set_selected_rows_id_base
exporting
row_table = lt_roid
keep_other_selections = is_keep_other_selections.
endmethod. "set_selected_rows
위와같이 찾아보니 나오는데
어떻게 메소드를 콜 해서 쓰는지 이해가 안됩니다...
아시는분좀 알려주세요.
ALL METHOD GO_GRID1->SET_SELECTED_ROWS
EXPORTING
IT_INDEX_ROWS = LT_SELECT_ROW.
이리 쓰면 되네요...^^
너무 간단한걸..