‎2007 Sep 11 9:18 AM
Hi frnds,
i was going thru "BCALV_TREE_SIMPLE_DEMO", i got a doubt that
" class cl_gui_column_tree definition load.
class cl_gui_cfw definition load."
what is the purpose of "load" and can anyone please explain me the flow of
"BCALV_TREE_SIMPLE_DEMO" program.
Thanking u all.
satya
‎2007 Sep 11 12:13 PM
From SAP help:
"The compiler normally loads the description of a global class from the class library the first time you use the class in your program - in particular, when you use the class for the first time to specify the type of a reference variable. However, if the first access to a global class in a program is to its static components or in the definition of an event handler method , you must load it explicitly using the statement CLASSclass DEFINITION LOAD. This variant has no corresponding ENDCLASS statement."
in this program, events names are coming from constants of class cl_gui_column_tree (statics components) and method dispatch of class cl_gui_cfw is also a static component of global class... so you need to load them in memory before yuo can access to components
flow logic of program is mainly contained into PBO and PAI of screen 100. PBO is calling routine init_tree and PAI is just to dispatch events and leave the screen.
‎2007 Sep 12 4:49 AM
Hi,
Below two classes are used to for stnadrad functionality for tree
First one used to control column activity for tree structure
and second one used for standard framework for tree structure.
CL_GUI_COLUMN_TREE (superclass CL_ITEM_TREE_CONTROL Column Tree Control )
CL_GUI_CFW (Control Framework Basic Class)
If you not inclide this classes then column activity for tree structure
will not work properly and standard framework for tree structure.
not get created respectively.
So it is compulsory to include these classes
you can check link for mor info.
http://www.erpgenie.com/abap/controls/alvgrid.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=37566
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
http://www.sapgenie.com/abap/OO/
For understanding COntrol Frameworks in OO ABAP, check this.
http://www.sapgenie.com/abap/controls/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
<b>Reward points if useful..............</b>
Regards
Minal
‎2007 Sep 12 10:01 AM
Hi Satya,
Please checkout this previous posting
+++++
http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm
<b>ALV report using oops.</b>
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://www.sapgenie.com/abap/controls/alvgrid.htm#Refresh%20grid%20display
Regards,
Aby