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

Create Unfolded Node

Former Member
0 Likes
669

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?

1 ACCEPTED SOLUTION
Read only

vyende
Active Participant
0 Likes
646

try the following:

call method tree1->expand_nodes EXPORTING it_node_key = p_node_key

after adding/creating the node.

5 REPLIES 5
Read only

vyende
Active Participant
0 Likes
647

try the following:

call method tree1->expand_nodes EXPORTING it_node_key = p_node_key

after adding/creating the node.

Read only

Former Member
0 Likes
646

thanks, it realy works.

Read only

vyende
Active Participant
0 Likes
646

Please close and reward point accordingly.

Read only

vyende
Active Participant
0 Likes
646

It is ALWAYS a nice courtesy to reward points to someone who took their time to help, dont you think?

Read only

Former Member
0 Likes
646

Sorry for my incomprehension, I didn't understand what you want before :-[.