‎2007 May 02 12:13 PM
Hi I use something this:
DATA: l_node_text TYPE lvc_value,
ls_res TYPE res_wa.
set item-layout
DATA: lt_item_layout TYPE lvc_t_layi,
ls_item_layout TYPE lvc_s_layi,
LS_NODE_LAYOUT TYPE LVC_S_LAYN..
ls_item_layout-style =
cl_gui_column_tree=>style_intensified.
ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
APPEND ls_item_layout TO lt_item_layout.
add node
SELECT SINGLE butxt FROM t001
INTO l_node_text
WHERE bukrs = ps_res-bukrs .
CONCATENATE ps_res-bukrs l_node_text INTO l_node_text SEPARATED BY space.
CALL METHOD tree1->add_node
EXPORTING
i_relat_node_key = p_relat_key
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = l_node_text
is_outtab_line = ls_res
it_item_layout = lt_item_layout
IS_NODE_LAYOUT = LS_NODE_LAYOUT
IMPORTING
e_new_node_key = p_node_key.
And I need a unfolded node. How can I get it?
‎2007 May 02 5:54 PM
try the following:
call method tree1->expand_nodes EXPORTING it_node_key = p_node_key
after adding/creating the node.
‎2007 May 02 5:54 PM
try the following:
call method tree1->expand_nodes EXPORTING it_node_key = p_node_key
after adding/creating the node.
‎2007 May 02 6:17 PM
‎2007 May 02 6:26 PM
‎2007 May 02 7:14 PM
It is ALWAYS a nice courtesy to reward points to someone who took their time to help, dont you think?
‎2007 May 02 7:24 PM
Sorry for my incomprehension, I didn't understand what you want before :-[.