Skip to Content
0

REUSE_ALV_LIST_DISPLAY vs REUSE_ALV_GRID_DISPLAY for simple list programs

Mar 28, 2017 at 07:43 PM

88

avatar image

Hi all,

I had always read that, for simple list programs (albeit with large quantities of data), the REUSE_ALV_LIST_DISPLAY function was better (faster, more efficient?) than the REUSE_ALV_GRID_DISPLAY function. Nevertheless, recently I was running some comparisons and found that ALV_GRID was faster and (apparently) used less resources than the LIST_DISPLAY function.

Am I right on this? My tests were run using a small subset of the data I would normally find in our production environment (~11.000 records in our sandbox compared to more than 200.000 in our PRD system).

Would appreciate any thoughts on this matter...

Regards,

Luis

10 |10000 characters needed characters left characters exceeded

It's like asking whether Mitsubishi Eclipse is better than Mazda RX-7. Both were good cars for their time but they're already obsolete.

Move on and start using SALV.

1

Jelena,

Thanks for your post. The main reason I asked this was that we have several old programs (just as well, as this is a very *old* system) that have been written using ALV_GRID. I was just wondering if we should convert them to ALV_LIST, which is a trivial task. Changing them to use OO (which I accept is the way to go) wouldn't be so convenient...

Thanks again,

Luis

0

Luis,

REUSE_ALV_GRID_DISPLAY uses SAP GUI in your client/PC, namely the grid stays in every users computer, so the loading data and refresh (flushing) data also takes time with a grid. On the other hand REUSE_ALV_LIST_DISPLAY does not use any client-SAP GUI based object and it will save time to display data.

Though I don't recommend to replace the GRID ones with DISPLAY ones.

1

Tuncay,

Thanks for your answer. Most of our old programs already use ALV_GRID. New ones, of course, are being done with OO (SALV and so on).

The few tests we had done gave us better perfomance numbers using ALV_GRID than with ALV_LIST, although the info we had read seemed to imply otherwise.

Thanks again,

Luis

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Mar 29, 2017 at 05:00 AM
2

The ALV grid sends few rows to the frontend (and rows are loaded only when user scrolls down to new records or for other requests like aggregation, filter, etc.) while the ALV list (as part of ABAP list) sends all rows at once.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Sandra,

Thanks for your answer. Most of our programs are using ALV GRID (as opposed as using ALV_LIST). so I guess we are ok in this.

Thanks again,

Luis

0