Skip to Content
0

Updating displayed alv grid when inserting a new row

Jun 05, 2017 at 10:22 AM

60

avatar image
Former Member

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 ?

Thanks

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
0

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
Former Member

Thanks for your answer !

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

selfield-refresh = 'X'.

0

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

0
Former Member

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

0

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?

0
Former Member

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 !

0

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.

1
Former Member

Hi !

Thank you so much

0