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

alv refresh is not working

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 23, 2007 at 05:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

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.