Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Alv output capturing changed Output values

Former Member
0 Likes
419

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

3 REPLIES 3
Read only

Former Member
0 Likes
396

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

Read only

Former Member
0 Likes
396

Use the fm : REUSE_ALV_LIST_LAYOUT_INFO_GET

Read only

former_member194669
Active Contributor
0 Likes
396

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