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

tree in oops alv

Former Member
0 Likes
744

hi all,

i want to know how to add a tree like structure of folder in a container

which is the class and method for this, and please mention something splitting a container

thanks in advance,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
713

Hi,

Go through this program for ALV Tree:

BCALV_TEST_SIMPLE_TREE

and, do not use split screen instead use docking container which is best suitable for ur requirement (i feel) Go through for

* Docking Container
data docking type ref to cl_gui_docking_container.
* Picture Control
data picture type ref to cl_gui_picture.
* Definition of Control Framework
data  init.
data ok_code type sy-ucomm.
data repid type sy-repid.
data dynnr type sy-dynnr.

    repid = sy-repid.
    dynnr = sy-dynnr.
* create the docking container
    create object docking
                  exporting repid     = repid
                            dynnr     = dynnr
                            side      = docking->dock_at_left
                            extension = 180.
* create the picture container
    create object picture
                  exporting parent = docking.

Intstead of creating picture control creatr ALV here.

Jogdand M B

hi all,

i want to know how to add a tree like structure of folder in a container

which is the class and method for this, and please mention something splitting a container

thanks in advance,

4 REPLIES 4
Read only

Former Member
0 Likes
713

Hi,

Go through the link,

http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm

Also go throgh the sample programs

BCALV_TREE_01

BCALV_TREE_02

BCALV_TREE_03

BCALV_TREE_04

BCALV_TREE_05

BCALV_TREE_06

BCALV_TREE_DEMO

BCALV_TREE_DND

BCALV_TREE_DND_MULTIPLE

BCALV_TREE_EVENT_RECEIVER

BCALV_TREE_EVENT_RECEIVER01

BCALV_TREE_ITEMLAYOUT

BCALV_TREE_MOVE_NODE_TEST

BCALV_TREE_SIMPLE_DEMO

BCALV_TREE_VERIFY

Regards,

Azaz Ali.

Read only

0 Likes
713

thanks for your support

Read only

Former Member
0 Likes
713

CL_GUI_ALV_TREE is used.

refer program BCALV_TREE_DEMO

BCALV_TREE_SIMPLE_DEMO

for splitting container example goto SE38 screen in the menu bar select

Environment->Examples->Control Examples.

here u can see all type of container examples

Read only

Former Member
0 Likes
714

Hi,

Go through this program for ALV Tree:

BCALV_TEST_SIMPLE_TREE

and, do not use split screen instead use docking container which is best suitable for ur requirement (i feel) Go through for

* Docking Container
data docking type ref to cl_gui_docking_container.
* Picture Control
data picture type ref to cl_gui_picture.
* Definition of Control Framework
data  init.
data ok_code type sy-ucomm.
data repid type sy-repid.
data dynnr type sy-dynnr.

    repid = sy-repid.
    dynnr = sy-dynnr.
* create the docking container
    create object docking
                  exporting repid     = repid
                            dynnr     = dynnr
                            side      = docking->dock_at_left
                            extension = 180.
* create the picture container
    create object picture
                  exporting parent = docking.

Intstead of creating picture control creatr ALV here.

Jogdand M B