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 the container in ALV grid

Former Member
0 Kudos

hi,

I am working on ALV GRID display (reports with ALV OOPS).

I hav created it, but now i need to refresh the container...........i.e when the user presses back and he is giving the new selection criteria , it shd pick the values based on the new selection criteria....

So, how do it refresh the container???????

1 ACCEPTED SOLUTION

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).

Regards,

Bhaskar

5 REPLIES 5

Former Member
0 Kudos

Hi,

Check out the prigram <b>BCALV_GRID_05</b>...u may get some idea.

Thanks,

Manjunath MS

Former Member
0 Kudos

when you click back and execute again , the grid values should be refreshed automatically, also

have you used this method after set_table_for_first_display

call method grid->refresh_table_display.

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).

Regards,

Bhaskar

0 Kudos

hi geeks,

I have used this method refresh_table_display" for refresh the custom container in the same screen but i am unable to refresh it.

In this structure (STRUCT OF TYPE LVC_S_STBL)which value i have to pass??

is this compulsaory that we have to the value to refresh_table_display..

pls let me know how to use this for refresh in same screen.

Thanks in Advance.

Former Member
0 Kudos

hi,

for refreshing table contents, call method REFRESH_TABLE_DISPLAY.

<b>syntax</b>

    • grid is the instance of the alvgrid

call method grid->refresh_table_display.

this method has no parameters.

regards,

Ashokreddy.

Message was edited by:

Ashok Reddy