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 problem

Former Member
0 Likes
315

Hi.

I have got containet that i have splited using spliter into 2 windows. in first window i got tree and in another i have grid. I splited my conteiner once again and i want to put into my new window a copy of my tree, but i dont know how to do it.

help

1 REPLY 1
Read only

Former Member
0 Likes
292

Hi,

Use the method obj_split to split the container into required number of rows and columns

Then as per your requirement you wanna have two containers your ALV tree

use the method get_container for the ALV tree

Sample code

obj_split TYPE REF TO cl_gui_splitter_container , " Split the container area

obj_container TYPE REF TO cl_gui_custom_container

CREATE OBJECT obj_split

EXPORTING

parent = obj_container

rows = 3

columns = 1.

CALL METHOD obj_split->get_container

EXPORTING

row = 1

column = 1

RECEIVING

container = detail_parent_html.

in your case assign the tree to the both the containers sap

Row 1 column 1 and row1 column2

This way you can achieve this.

Hope this helps

Regards

Pavan