Application Development and Automation 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: 
Read only

Refresh method in ALV

former_member205645
Participant
0 Likes
441

Hello, i have two programs that work with one transparent table, one for editing and one for displaying. After editing i need to hit refresh button on the ALV for display, for the data to be refreshed. This is the code:


...
toolbar_handler FOR EVENT toolbar OF cl_gui_alv_grid
...
method toolbar_handler.
    SELECT * FROM zianexe into TABLE itab.
endmethod.
...

The problem is that i have to press the button two times.

2 REPLIES 2
Read only

Former Member
0 Likes
426

Hi

Use the grid method REFRESH_TABLE_DISPLAY

Example:

CALL METHOD go_grid->refresh_table_display.

http://www.erpgenie.com/abap/controls/alvgrid.htm#Make%20an%20Exception%20field%20(%20=%20Traffic%20...

Rewards points if useful.

Regards

Nikunj Shah

Read only

0 Likes
426

But the "go_grid->refresh_table_display" won`t work because i must refresh the internal table from the database first.

Anyone ?