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

ALV REFRESH DATA

Former Member
0 Likes
440

Hi,

I have an ALV Report that is showing the data correctly, but when I go back to the last screen and call the report again the shown data is duplicated on its columns, how can I avoid the duplicated columns? I´m using FM REUSE_ALV_GRID_DISPLAY.

Please help!!!

Gabriel

3 REPLIES 3
Read only

Former Member
0 Likes
424

Why are you calling the report again? I think when you are doing that, you appending the field catalog again, instead of clearing it out and building it. Check your logic for building the field catalog. May be you need to add, refresh field_catalog, before you start filling it.

You can achieve refreshing the contents by passing '&REFRESH' to ucomm in your user_command routine.

Srinivas

Read only

Former Member
0 Likes
424

Maybe you calling again the form that fills the table with data...Use CLEAR and REFRESH statements before you fill the table...That should help...It worked for me once -:)

Greetings,

Blag.

Read only

Former Member
0 Likes
424

HI,

Use the grid method REFRESH_TABLE_DISPLAY

Example:

CALL METHOD go_grid->refresh_table_display.

<b>exporting</b>

IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)

I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).

See this example for more info

http://www.sapgenie.com/abap/controls/alvgrid.htm#Refresh%20grid%20display

Thanks

Sudheer