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

Picking up changed ALV values

Former Member
0 Likes
316

Hi guys,

I have created an editable ALV grid. When you type in values the values in the outtab table are not being correctly changed.

ie users types in data

Field 1 2 3

Value x y z

outtab contents

Field 1 2 3

Value x

Not all of the changes are being correctly picked up!! Any ideas what would cause this, or do you know if there is a method that returns a table of rows that have been edited??

Hi guys,

I have created an editable ALV grid. When you type in values the values in the outtab table are not being correctly changed.

ie users types in data

Field 1 2 3

Value x y z

outtab contents

Field 1 2 3

Value x

Not all of the changes are being correctly picked up!! Any ideas what would cause this, or do you know if there is a method that returns a table of rows that have been edited??

1 REPLY 1
Read only

Former Member
0 Likes
285

I use this for Editable ALV's...Never fails -;)


DATA: ref_grid TYPE REF TO cl_gui_alv_grid.

FORM user_command USING r_ucomm     LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.
  IF ref_grid IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        e_grid = ref_grid.
  ENDIF.

  IF NOT ref_grid IS INITIAL.
    CALL METHOD ref_grid->check_changed_data.
  ENDIF.
ENDFORM.

Greetings,

Blag.