Application Development and Automation 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: 
Read only

ALV TREE DOUBT

Former Member
0 Likes
361

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

3 REPLIES 3
Read only

franois_henrotte
Active Contributor
0 Likes
333

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.

Read only

Former Member
0 Likes
333

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.allsaplinks.com/

http://www.sap-img.com/

http://www.sapgenie.com/

http://help.sap.com

http://www.sapgenie.com/abap/OO/

http://www.sapgenie.com.

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

Read only

Former Member