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 refresh is not working

Former Member
0 Kudos

Hi all,

I am using alv grids.

after selecting one record and press approve button that record must disappear and grid must refresh.

record is updating but grid is not refreshing.

I am sending the code which i am using.

go through this code and can any body help me regarding the refresh.

CALL METHOD w_grid->get_selected_rows

IMPORTING

et_index_rows = i_selected_rows.

LOOP AT i_selected_rows INTO w_selected_rows.

READ TABLE INT_FINAL_CM INTO w_FINAL_CM INDEX w_selected_rows-

index

IF sy-subrc EQ 0.

LOOP AT INT_FINAL_CM INTO w_FINAL_CM

WHERE PERNR_CM = W_FINAL_CM-PERNR_CM.

MOVE-CORRESPONDING w_FINAL_CM TO w_modified_CM.

APPEND w_modified_CM TO i_modified_CM.

ENDLOOP.

ENDIF.

ENDLOOP.

LOOP AT I_MODIFIED_CM INTO W_MODIFIED_CM.

LOOP AT INT_FINAL_CM INTO W_FINAL_CM.

updating the database here

ENDLOOP.

DELETE int_final_CM where pernr_CM = w_modified_CM-pernr_CM.(deleting the record here from grid here)

ENDLOOP.

CALL METHOD w_grid->refresh_table_display.(this is for refreshing the grid)

thanks and regards,

giri.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

comment tthis code and "CALL METHOD w_grid->refresh_table_display.(this is for refreshing the grid)"

Try this method: "check_changed_data"

Regards,

Prabhu Rajesh

1 REPLY 1

Former Member
0 Kudos

Hi,

comment tthis code and "CALL METHOD w_grid->refresh_table_display.(this is for refreshing the grid)"

Try this method: "check_changed_data"

Regards,

Prabhu Rajesh