10-15-2008 7:13 AM
Hi All,
How can i retrive the data of selected rows from alv grid display output with out using class and methods.
10-15-2008 7:14 AM
use user_comand option..then use stmt "read table tble itab inot wa index selfield-index"
10-15-2008 7:15 AM
10-15-2008 7:18 AM
hi
if u want the row to be selected,
u need to set in layout sel_mode.
that is the only solution.
to retrive data from selected row, there are
methods get_selected_rows.
once u went forward after selecting, if u want to come back with selected rows, u can use
set_selected_rows.
if u want event , u have on_click but by handling that u can do some operations and all which does not match ur question.
regards
Satish
10-15-2008 7:18 AM
Hi Mahesh,
using user-command u can do that.
case sy-ucomm.
when '&ic1'.
give either read or select stmt & write it in another page or whereever u want to show taht result.
10-15-2008 7:20 AM
Hi,
The code will be like this ....
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
IF rs_selfield-fieldname =<fieldname>.
g_tplnr = rs_selfield-value.
g_index = rs_selfield-tabindex.
READ TABLE it_final2 INTO wa_final2 INDEX g_index.
10-15-2008 7:25 AM
10-15-2008 7:28 AM
hi
use checkbox in itab.
types: begin of itab,
cbox type c,
end of itab.
and in the layout itab
refer the checkbox fieldname ie cbox.
it_layout-box_fieldname = 'cbox'.
regards
suren.s