Skip to Content

BOPF ALV REFRESH .

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 09 at 08:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded