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

Unable to refresh buffer memory

Former Member
0 Likes
2,259

Hi Gurus,

I am trying the use the refresh an ALV report output.

Whenever i click on the refresh button it again calls the select queries.

In that select query i am using one function module 'STATUS_READ'.

Now this fm is giving the same result that it was giving when the report is run for the first time even though the value is changed now.

I think it's not clearing the buffer area for a particular input value that's why it's giving the same result for a particular input.

Please provide your input.

Regards,

Amit Kumar Singh

7 REPLIES 7
Read only

Former Member
0 Likes
1,221

Hi,

Use his method to refresh the container

CALL METHOD g_alv->refresh_table_display.

Hope it helps you.

Regards

Manjari.

Read only

Former Member
0 Likes
1,221

You should refresh the container before reading the data..

Read only

0 Likes
1,221

Hi Gurus,

How to refresh an container.

Could you provide some code/examples.

btw i am using reuse_alv_grid_display for table display and i getting the problem in the use of fm 'STATUS_READ' where it's not giving the correct output when i am using it second time in the program.

If i come out of the program and execute it.it gives the correct result.

Regards,

Amit Kumar Singh

Read only

Former Member
0 Likes
1,221

Try this

DATA: REF1 TYPE REF TO CL_GUI_ALV_GRID.

*after reuse_alv_grid_display write

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

  • ET_EXCLUDING =

  • E_REPID =

  • E_CALLBACK_PROGRAM =

  • E_CALLBACK_ROUTINE =

E_GRID = REF1

  • ET_FIELDCAT_LVC =

  • ER_TRACE =

  • E_FLG_NO_HTML =

  • ES_LAYOUT_KKBLO =

  • ES_SEL_HIDE =

.

CALL METHOD REF1->CHECK_CHANGED_DATA.

Read only

0 Likes
1,221

Hi Sathar,

I used your code but it's not solving my requirement.

Regards,

Amit Kumar Singh

Read only

0 Likes
1,221

U paste this code in ur pgm where u have written code when function code for Refresh. If still not working, pls send ur code.

Regards

Sathar

Read only

0 Likes
1,221

Hi all,

Thanks for all your support.

Now my problem has been resolved.

I used FM 'STATUS_BUFFER_REFRESH' . This refresh the buffer memory.

Regards,

Amit Kumar Singh