Skip to Content

Updating displayed alv grid when inserting a new row

Jun 05, 2017 at 10:22 AM


avatar image

Hi experts !

I have an ALV that is displaying archived documents ( using reuse alv grid display) ! i have created a button that adds new archived new documents ! the problem is that the displayed list isn't updated automatically when i press the button ! i should go out and log in to see the added rows !

Any thoughts ?


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Jun 05, 2017 at 11:18 AM

Once you updated the internal table, With an ALV class use the refresh display method, for old outdated FM set the refresh parameter back in the user_command form.

Show 7 Share
10 |10000 characters needed characters left characters exceeded

Thanks for your answer !

my ALV isn't OOPS so what i tried and did not work is :

selfield-refresh = 'X'.


Did you reload the displayed internal table before setting rs_selfiedl-refresh?


How can i reload it while it is in another program ?


Did you create the user_command form in the same program/class that filled the internal table, or are you able to add the line yourself in the user_command?


In the first program i have archiv_display_list on the second program i have the user command in which i have the FM ARCHIV_CREATE_TABLE_MULT ( which creates new archived )

so i don't really know how to display the new added lines without needing to log out and log in again !

Merci beaucoup pour le temps que vous prenez pour me répondre !


Then you have to trigger end of ALV (RS_SELFIELD-EXIT = 'X' ) and pass control back to the caller (the select/list program) when the REUSE FM return a value in the E_EXIT_CAUSED_BY_CALLER parameter and not an exit function code which would fill ES_EXIT_CAUSED_BY_USER parameter.


Hi !

Thank you so much