Skip to Content
0
Jun 02, 2010 at 12:21 PM

editable alv.

20 Views

I had created an editable alv where I am having a blank field where the user will enter the data.And when hitting SAVE I want to capture this data in the alv grid back into the program for further processing.


form list1 using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
  case r_ucomm.

    when '&IC1'.

      if rs_selfield-fieldname = 'MATNR'.
        read table it_final index rs_selfield-tabindex.
        set parameter id 'MAT' field it_final-matnr.
        call transaction 'MM03' and skip first screen.
      endif.

  when '&SAVE'.
      rs_SELFIELD-REFRESH = 'X'.
      loop at it_final.
      if it_final-chk = 'X'.
      modify it_final index sy-tabix transporting chk incident.
      endif.
      endloop.
endform

I am getting the CHK as X but not the value that I am entering in the incident (field name) at ALV gird.

Thanks,

Kiran.