Skip to Content
Jun 08, 2009 at 05:54 PM

ALV Refresh not working


I have created an ALV and am calling using FM REUSE_ALV_GRID_DISPLAY. I added a refresh button to the toolbar and in my form USER_COMMAND, when sy-ucomm = '&NTE', I go through my main logic again to re-populate my report table, and I also set my slis_selfield-refresh = 'X'.

My problem is the data for my internal table seems to be saved in some sort of buffer...when I debug, I can see that it's getting the 'old' data, not the data from the production order that I just changed and saved. Specifically, I pull back the status of a production order. In another session, I change the status of the production order. I come back to my ALV and refresh, and the STATUS_READ FM is pulling the data from some table JEST_BUF, which still contains the old data.

I see the same thing with other fields, not just the status field.

So it seems like I need to be clearing out a buffer or something similar when I do the refresh, but I can't seem to find anything like that. I tried setting the 'i_bypassing_buffer' to X in the REUSE_ALV_GRID_DISPLAY and that didn't make a difference.

Any ideas??