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

ALV Refresh not working

sharon_mcclure
Explorer
0 Likes
1,021

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??

Sharon

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
866

you might have to change the status of Order before you execute the ALV. The session where u are changeing the status need to be closed. and then execute the ALV to get the updated values. all the statuses will be saved in Transp. table JEST

you might have to change the status of Order before you execute the ALV. The session where u are changeing the status need to be closed. and then execute the ALV to get the updated values. all the statuses will be saved in Transp. table JEST

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
867

you might have to change the status of Order before you execute the ALV. The session where u are changeing the status need to be closed. and then execute the ALV to get the updated values. all the statuses will be saved in Transp. table JEST

Read only

0 Likes
866

Well, I found a 'sort-of' solution'.... I added a call to STATUS_BUFFER_REFRESH when the refresh button is pushed and that fixed the issue with getting the old status. Still having an issue with getting other old data, but I think this puts me on the right track anyway. Thanks J@Y!