Application Development 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: 

ALV Grid Changes not updated in Internal table

Former Member
0 Kudos

Hi Experts,

I have displayed an ALV using OOPs ,

Now when i do the Sub totaling(Standard functionality ) in the ALV Grid

The order changes, Accordingly my internal table doesnt changes

Because of which my double click event goes wrong.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Steps will be as follows :

1. *-- Get the selected rows

CALL METHOD o_grid1->get_selected_rows

IMPORTING

et_row_no = gw_row_no[].

2. *-- Track the changes in the ALV Grid

CALL METHOD o_grid1->check_changed_data

IMPORTING

e_valid = gv_valid.

3. IF gv_valid = 'X'.

PERFORM save. " Save changes into your internal table using the row no.

ENDIF.

4. Now, Display this table again.

1 REPLY 1

Former Member
0 Kudos

Steps will be as follows :

1. *-- Get the selected rows

CALL METHOD o_grid1->get_selected_rows

IMPORTING

et_row_no = gw_row_no[].

2. *-- Track the changes in the ALV Grid

CALL METHOD o_grid1->check_changed_data

IMPORTING

e_valid = gv_valid.

3. IF gv_valid = 'X'.

PERFORM save. " Save changes into your internal table using the row no.

ENDIF.

4. Now, Display this table again.