‎2008 Mar 12 1:30 PM
Dear All,
i have created a Module Pool Program. in that i have
used Oject Oriented ALV in a custom Container. now
in that ALV some rows are displayed. now i select
particular lines in that ALV. now i want to save those
selected lines into the Ztable created.
i have written code in PAI Event as:
it_table type lvc_t_row.
it_sel type lvc_s_row.
call method alv_object->get_selected_rows
importing
et_index_rows = it_table.
now in it_table i am not getting any selected rows.
Pls Solve it.
‎2008 Mar 12 8:43 PM
You will have to mark the selected rows on the ALV inside your internal table in event before_user_command. Make sure you subscribe to this event before using it.
‎2008 Mar 13 5:21 AM
Hi,
Check the fields SEL_MODE, NO_ROWMARK in layout structure.
there is three prarameter, check possibilities
IT_INDEX_ROWS
IT_ROW_NO
IS_KEEP_OTHER_SELECTIONS
‎2008 Mar 13 6:00 AM
Hi Sandeep,
For the method GET_SELECTED_ROWS, import the parameter et_row_no too.
then it will work.
CALL METHOD gt_grid1->get_selected_rows
IMPORTING et_index_rows = gt_row_ind
et_row_no = gt_row_line.
Try this .
Reward points