Skip to Content
author's profile photo Former Member
Former Member

ABAP Objects - Graphical Tree Structure

Hi All,

I have a problem in splitting the container of graphical tree.

i want to split the left side container which will generally have the tree hierarchy in small size, which can be viewed on the right side in a bigger size by positioning on the necessary portion of left side container.

Please help me out as in how to split the container. is there any property which has to be set so taht it can be splitted.

Regards,

Theja.

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:56 AM

    Hi all,

    Thnx for all ur replies. but thats not the problem. All of u are talking about the normal splitter for containers.

    but i am talking about hierarchy graphical tree. This is visualised as two parts. left side has the detailed hierachy based on the portion selected on the right side.

    i want to split the right side part.

    have no idea whether these are two different containers or one.

    i am passing container_1 to CL_GUI_GP_HIER which implements an interface IF_GRAPHIC_PROXY~INIT..

    i have no idea how the container_1 is getting splitted into two parts.some logic goes after this method call.

    CALL METHOD GP4->IF_GRAPHIC_PROXY~INIT

    *Change by TREDDY

    EXPORTING PARENT = container_1

    • EXPORTING PARENT =

    *splitter->BOTTOM_RIGHT_CONTAINER

    "SPLITTER_AREA2

    DC = DC_INST

    PROD_ID = PROD_GP4

    • force_prod = gfw_true

    EVTCODE_LIST = EVTCODE_LIST

    FILTER_LIST = FILTER_LIST

    IMPORTING RETVAL = RETVAL.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 25, 2005 at 08:47 AM

    use class

    cl_gui_splitter_container

    for splitter control.

    check out the demo program

    RSDEMO_SPLITTER_CONTROL

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 25, 2005 at 08:50 AM

    Hi Theja,

    You check examples of Controls they are very helpful.

    Go to environment examples in that control examples.

    try them, they used splitter control.

    regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 08:53 AM

    SAPTLIST_TREE_CONTROL_DEMO

    SAPCOLUMN_TREE_CONTROL_DEMO

    SAPSIMPLE_TREE_CONTROL_DEMO

    see these program from se38--> just run them, i think this what you want..

    plz reward point if this post helped you.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 25, 2005 at 08:53 AM

    Hi,

    RSDEMO_EASY_SPLITTER_CONTROL

    Try the above Demo Prog.

    regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:00 AM

    Thejaswi,

    You can do it in two ways. If you want only two divisions then you can use a EASY SPLITTER. If you more parts you can go for a SPLITTER CONTAINER.

    w_custom_contnr TYPE REF TO cl_gui_custom_container,

    w_split TYPE REF TO cl_gui_easy_splitter_container,

    w_contnr_top TYPE REF TO cl_gui_container,

    w_contnr_bot TYPE REF TO cl_gui_container,

    IF w_custom_contnr IS INITIAL.

    • Create Event Receiver

    • CREATE OBJECT w_event_receiver.

    IF cl_gui_alv_grid=>offline( ) IS INITIAL.

    CREATE OBJECT w_custom_contnr

    EXPORTING container_name = c_container.

    • Create the splitter control

    CREATE OBJECT w_split

    EXPORTING

    parent = w_custom_contnr

    • ORIENTATION = 0

    sash_position = 16

    with_border = 0

    EXCEPTIONS

    cntl_error = 1

    cntl_system_error = 2

    OTHERS = 3.

    • Get the containers of the splitter control

    w_contnr_top = w_split->top_left_container.

    w_contnr_bot = w_split->bottom_right_container.

    ENDIF.

    CREATE OBJECT w_tree

    EXPORTING i_parent = w_contnr_bot.

    Regards,

    Ravi

    Note : Please reward the posts that help you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.