Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to refresh ALV screen

Hello Colleague,

In my development, I need to display data in ALV screen. I call the FMREUSE_ALV_GRID_DISPLAY to generate the ALV screen. It's succsful.

In the application toolbar of the screen, I also add a button "New Entries". The requirement is that when user clicks the button, another three new empty records should be appended to the ALV table. I'm sure the three empty records are appended into the internal table, but the ALV screen still keep the old data and don't refresh.

My question is, after the user click "New entries" button, which statement should i use to refersh the ALV screen so that the new empty records will be displayed too?

Thanks in advance,

Regards, Johnny.

Former Member

In the FORM associated with I_CALLBACK_USER_COMMAND parameter you have to force re-display of the ALV when user has pressed "new entries" and you have appended the initial records (check online help for the parameter of the user command form)

FORM user_command  USING r_ucomm LIKE sy-ucomm
                         rs_selfield TYPE slis_selfield.
* ...
  rs_selfield-refresh = 'X'.
  " rs_selfield-col_stable = 'X'.
  " rs_selfield-row_stable = 'X'.
* ...



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question