Application Development 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: 

ALV FM vs ALV OOP

LanceV
Explorer
0 Kudos

Howdy,

I've only created ALV grids using the ALV class CL_GUI_ALV_GRID.

What are the pros and cons of using the class CL_GUI_ALV_GRID vs the FM REUSE_ALV_GRID_DISPLAY.

Thanks.

Message was edited by: Ernest Vialpando

10 REPLIES 10

LucianoBentiveg
Active Contributor
0 Kudos

PRO: You can put more of one grid per dynpro.

Former Member
0 Kudos

You have the better control if you uses OOPS methods.

Mutlipal grids,

Cell Control. [can not do that if you uses FM]

Lots of Events [Like Right Click ,CLICK_ROW_COL etc]

Regards

Aman

Former Member
0 Kudos

Ernest,

Programming perspective - You will have to build the report right from the containers in case of ALV, where REUSE is nothing but a wrapper around these classes.

Execution perspective - Not much difference, except that you can incorporate lot more features using OOP and I have seen slightly better performance in case of OOP than the functions.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hi Ernest,

Adding to Ravi's point, there are also some advantages with REUSE function module, we can build Hierarchial List and Block list using the REUSE function modules which is not possible using CL_GUI_ALV_GRID.

Regards,

Arun.

0 Kudos

Hi Arun,

What do you mean by a block list?

0 Kudos

Hi Ernest,

Block list means multiple list.

Regards.

Arun.

Former Member
0 Kudos

Hi,

You can have more than one ALV grid display on a screen using OO ALV using class CL_GUI_EASY_SPLITTER_CONTAINER..

i dont think thats not possible using FM.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

0 Kudos

Hi,

I think you have to split the container to display more than on list, but it will not work in Background execution of the report, and also hierarchial list is not possible with OOALV.

Regards,

Arun.

hymavathi_oruganti
Active Contributor
0 Kudos

alv oop is much more flexible than normal alv.

u have many classes and ready made methods , for exmaple

to get_selected_rows, get_slected_columns etc.

in normal alv much coding is required to achive above.

as there are many classes and methods and ready made functionalities when compared to normal alv, oo alv is much powerful

Former Member
0 Kudos

Hi ernest,

1. Some differences:

a) alv grid using FM is simple

as compared to OO concept.

(OO concept is quite cumbersome)

b) Alv grid (using oo concept) requires

designing the screen layout .

Hence, in one screen, we can show more

then one alv grid

(we cannot show more than

one alv grid on one screen using FM)

c) ALV grid uses ActiveX controls

present on the Presentation Server.

Hence, it consumes More Memory

on the presentation server.

regards,

amit m.