07-03-2007 6:50 AM
Hello,I want to get a node's text by its nodekey,but the method 'TREE_GET_NODE_TEXT' is protected in cl_gui_alv_tree class
,and I don't find another related method in this class to get text
of a node ,can anybody help me ?
Thanks
07-04-2007 10:36 AM
Hi Ray,
There is no direct method to get the text in cl_gui_alv_tree....but you can do it in a different way.
You will be having the table from which you built the tree, based on the node_key value, read from that table to get the text for that corresponing node_key.
Hope this helps you.
Regards,
Prasanth
Reward if helpful
07-04-2007 10:36 AM
Hi Ray,
There is no direct method to get the text in cl_gui_alv_tree....but you can do it in a different way.
You will be having the table from which you built the tree, based on the node_key value, read from that table to get the text for that corresponing node_key.
Hope this helps you.
Regards,
Prasanth
Reward if helpful
07-04-2007 10:51 AM
Hi,
You can try the method GET_OUTTAB_LINE in CL_GUI_ALV_TREE. It would provide you with all the info pertaining to the given node key.
ps: This internally uses "tree_get_node_text".
Regards,
Sharat.
Message was edited by:
Sharat Chandra