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

ABAP Objects - Graphical Tree Structure

Former Member
0 Likes
924

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.

7 REPLIES 7
Read only

athavanraja
Active Contributor
0 Likes
870

use class

cl_gui_splitter_container

for splitter control.

check out the demo program

RSDEMO_SPLITTER_CONTROL

Regards

Raja

Read only

Former Member
0 Likes
870

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

Read only

Former Member
0 Likes
870

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

Read only

Former Member
0 Likes
870

Hi,

RSDEMO_EASY_SPLITTER_CONTROL

Try the above Demo Prog.

regards

vijay

Read only

Former Member
0 Likes
870

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.

Read only

Former Member
0 Likes
870

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.

Read only

0 Likes
870

there may be a docking container inside container_1

Regards

Raja