05-24-2007 12:53 PM
Hi,
I am displaying a tree in the left side of the screen and based on the node selected (Double clicking the data needs to be displayed in the ALV adjacent to it. <b>Structure of the internal table changes with node selection(Dynamic internal table).</b> How to refresh the ALV?
Thanks in advance.
Message was edited by:
sekhar J
05-24-2007 12:57 PM
hi,
go thru program : SAPTLIST_TREE_CONTROL_DEMO
regards,
shardul shah
05-24-2007 1:18 PM
Hi,
Thank you very much for your reply.
But my requirement is to refresh the ALV grid but not handling the Double click of the Tree.
Regards,
Sekhar J
05-24-2007 2:39 PM
Hello,
You have to handle the double click of the tree and in this method
call set_frontend_fieldcatalog / set_frontend_layout to update the display structure and finally refresh_table_display to update the data
05-24-2007 2:51 PM
Hi,
use method : refresh_table_display.. it will refresh the data of your structure/table .
regards,
shardul shah
05-24-2007 1:14 PM
Hi,
Try with this:
In ALV, to refresh the table you have to call the method "refresh_table_display".
It has the syntax very similar to creating the table.
It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)
Regards,
Bhaskar
05-24-2007 2:58 PM
Hi,
In ALV, to refresh the table you have to call the method "refresh_table_display".
It has the syntax very similar to creating the table.
It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)
or
if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications).
the synatx is :-
call method grid (name of grid )->refresh_table_display
exporting
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).
Hope this helps.
Reward if helpful.
Regards,
Sipra