‎2008 Aug 06 10:39 AM
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
‎2008 Aug 06 11:06 AM
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