Skip to Content
avatar image
Former Member

oops tree alv

how to create a folder with sub nodes on container.

Moderator message: Please search the forum before posting basic questions. Thread locked!

Edited by: Neil Gardiner on Sep 21, 2010 4:08 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 21, 2010 at 06:09 AM

    Hello,

    For this rquirement, you need to use two classes:

    CL_GUI_CUSTOM_CONTAINER and CL_GUI_ALV_TREE.

    a) First on the screen, create a Custom Control with name say 'Test'

    b) Then in the PBO of the screen, create an object of CL_GUI_CUSTOM_CONTAINER with the control name as 'Test'

    c) Then create an object of class CL_GUI_ALV_TREE with the parent as the object created in (b)

    d) Build the field catalog, layout and use the method set_table_for_first_display

    e) after this create the tree structure using ADD_NODES method

    For further reference, use amy program starting with BCALV_TREE*

    Hope this helps,

    Regards,

    Himanshu

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 21, 2010 at 06:10 AM

    Hi,

    Search the SDN you will find enough material, also see example programs in SLIS,

    Just try yourself and when you face problem just come back we will help you out.

    Regards

    Bikas

    Add comment
    10|10000 characters needed characters exceeded