07-27-2005 3:56 AM
Hi,
I want to know the difference between ALV and OOALV.When do we go for OOALV.
07-27-2005 4:26 AM
Hi,
Clasical ALV are specifically meant to create simple ALV with pre defined event handling options. In case of advanced options we go for OO-ALV.
In OOps ALV we mainly use classes.
You can check this link for an docu on oops alv.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
http://www.sapgenie.com/abap/controls/alvgrid.htm
Regards,
Anjali
07-27-2005 4:50 AM
Hi,
Welcome to SDN.
In OOPS,we will use classes and Object.For displaying data,we have to use,set_table_for_first_display.We have to use docking or custom containers.
In normal ALV,we will use Reuse_ALV_GRID_DISPALY and REUSE_ALV_LIST_DISPLAY.
Here is the definition for ALV from SAP Help: The ALV Grid control is a flexible tool for displaying lists. The tool provides common list operations as generic functions and can be enhanced by self-defined options. The ALV Grid control is used to build non-hierarchical, interactive, and modern-design lists. As a control, it is a component that is installed on the local PC. The ALV Grid control provides typical list functions as sorting, filtering, summing, etc.,while also gives the opportunity to develop user functions where needed. It presents numerous interfaces like Excel Inplace and Crystal Reports. The wrapper class implemented to encapsulate ALV Grid functionality is CL_GUI_ALV_GRID. There is another way to display lists with ALV utilizing REUSE_ALV... functions. However, that way is not comprised in this tutorial.
Check the standard program BCALV_TEST_GRID_EVENTS to know the full usuage of REUSE_ALV_GRID_DISPLAY.
Check the standard program BCALV_TEST_GRID_EVENTS to know the full usuage of REUSE_ALV_LIST_DISPLAY.
Check this link for displaying data using OOPS concept.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/alv grid/abap code sample to display data in alv grid using object oriented programming.doc
If you need more information,get back.Otherwise,kindly close the thread by rewarding points for useful answers( click Green star[6 points] or yellow star[2 points] or blue star[10 points-solved problem against the useful replies).
Message was edited by: Jayanthi Jayaraman
07-27-2005 5:02 AM
Hi, Many difference has been mentioned by the former reply.
Add something I know,
the structure which Classical ALV used is only defined in a type pools.
And the structure of OO ALV is all defined as DDIC structure.
For the event, if you have a check in the Classical ALV, actually, it has a event class GT_GRID for trigger all of the ALV event. And you input the Event Handle subroutine name e.g. 'DATA_CHANGED' into the event table, and call the REUSE...DISPLAY. Then the name will be stored into GT_GRID-I_CALLBACK_DATA_CHANGED, when the event trigger, the server will call you subroutine like this
PERFORM (GT_GRID-I_CALLBACK_DATA_CHANGED)
IN PROGRAM (I_CALLBACK_PROGRAM) USING XXXX.
What I want to expression though this is that even the Classical ALV also has class usage inside it.
07-27-2005 6:32 AM