2009 Jun 08 6:54 PM
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
2009 Jun 08 7:36 PM
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
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
2009 Jun 08 7:36 PM
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
2009 Jun 08 7:55 PM
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!
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |