Skip to Content
author's profile photo Former Member
Former Member

ALV simple edit problem

Hello all,

I've have in an ALV list an editable column, the proble is that when the cell values are changed the data table remains the same. Is there a method for cl_gui_alv_grid class or another way to update the data table form ALV list.

Lots of thanks

Bogdan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 07:50 AM

    Hi

    You can use the event DATA_CHANGED

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      first check whether data is changed .if data is changed then get the changed value from the cell and modify the internal table accordingly.

      check whether following code works......

      call method w_obj_grid1->check_changed_data

      importing

      e_valid = lw_valid.

      if lw_valid = 'X'.

      call method pr_data_changed->get_cell_value

      exporting i_row_id = row_id

      i_fieldname = fieldname

      importing e_value = get value here.

      loop at t_data into fs_data.

      if sy-tabix = row_id.

      modify t_data from fs_data.

      endif.

      endloop.

      call method w_obj_grid1->refresh_table_display.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.