05-11-2006 9:24 PM
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
05-11-2006 9:30 PM
05-11-2006 9:57 PM
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
05-12-2006 1:35 AM
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
05-12-2006 4:39 AM
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.
05-12-2006 6:17 PM
05-12-2006 6:29 PM
05-12-2006 4:48 AM
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>
05-12-2006 4:59 AM
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.
05-12-2006 4:51 AM
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
05-12-2006 5:08 AM
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.