‎2007 Jun 08 4:07 PM
hi all,
I have an alv grid output. In this output i have one column which is input enabled . I will be changing the values and I have a pushbutton in the application tool bar. When I press the pushbutton, by selecting the row with the changed value, that row should be captured in the internal table of a program.
How can I achieve this.
Thanks
Saravana
‎2007 Jun 08 4:10 PM
Hi
See the links for How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
Reward points for useful Answers
Regards
Anji
‎2007 Jun 08 4:12 PM
‎2007 Jun 08 4:13 PM
Hi,
If you are using OOp
call method grid1->get_selected_rows
importing
et_index_rows = i_sel_alvrows[].
call method cl_gui_cfw=>flush.
describe table i_sel_alvrows lines v_dbcnt.
if i_sel_alvrows[] is initial.
* Info message : Please select a row
message i176. " Please select a row'.
endif.
if v_dbcnt gt 1.
* Info message : Multiple Row Selection not possible
message i177. " Multiple Row Selection not
" possible'
else.
read table i_output into wa_output index wa_sel_alvrows-index.
Here wa_output contains the selected row.
aRs