Application Development 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: 

Refreshing ALV

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

hi,

go thru program : SAPTLIST_TREE_CONTROL_DEMO

regards,

shardul shah

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

use method : refresh_table_display.. it will refresh the data of your structure/table .

regards,

shardul shah

Former Member
0 Kudos

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

Former Member
0 Kudos

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