cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BOPF ALV REFRESH .

ronaldo_aparecido
Contributor
0 Likes
846

Hi community.

I created an alv with reuse_alv_grid and I used the user command to refresh data(button) , but I noticed if I input new data like a new Freight order on screen of nwbc and click save and then I go to click in refresh button of my alv the data is not updated then i noticed that the retrieve or query did not get the data changed in real time , I need to close the report and open again then the new data is showed.Some body know how to get data in real time with bopf?thanks.

OBs:I tried to use submit to call the report again when refresh, but the problem is when we want to back to first screen becuase it appears cleaned.

View Entire Topic
cwolter90
Participant
0 Likes

Hello,

when you use the bopf service manager (/BOBF/IF_TRA_SERVICE_MANAGER) you have an importing parameter IV_INVALIDATE_CACHE for the retrieve methods.

You do the query without reading data (IV_FILL_DATA = ABAP_FALSE) and then you do retrieve on the keys you get from the query with invalidating the cache.

Best regards

ronaldo_aparecido
Contributor
0 Likes

Thanks Christian.

Worked.

Thanks.