2006 Mar 22 7:24 PM
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
2006 Mar 22 7:27 PM
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
2006 Mar 22 7:27 PM
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.
2006 Mar 22 7:31 PM
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