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

Tool tip for CL_GUI_COLUMN_TREE

Former Member
0 Likes
719

Good day for all.

Is anybody know the way to make cl_gui_column_tree nodes have tool tip with given text?

Good day for all.

Is anybody know the way to make cl_gui_column_tree nodes have tool tip with given text?

4 REPLIES 4
Read only

Former Member
0 Likes
678

You can do something like this :

DATA ls_fieldcat TYPE lvc_s_fcat,

gt_fieldcat_lvc TYPE lvc_t_fcat.

CLEAR ls_fieldcat.

ls_fieldcat-fieldname = 'XLOEV'.

ls_fieldcat-ref_table = 'ANLA'.

ls_fieldcat-coltext = 'Assigned to WBS'(003).

ls_fieldcat-tooltip = <ADD YOUR TEXT HERE>.

ls_fieldcat-seltext = ls_fieldcat-coltext.

ls_fieldcat-outputlen = '3'.

APPEND ls_fieldcat TO gt_fieldcat_lvc.

  • create empty tree-control

CALL METHOD <TREE_OBJECT>->set_table_for_first_display

EXPORTING

is_hierarchy_header = gv_hierarchy_header

  • I_BACKGROUND_ID = 'ALV_BACKGROUND'

it_list_commentary = gt_header[]

CHANGING

it_outtab = gt_asset[] "empty table

it_fieldcatalog = gt_fieldcat_lvc[].

  • this method must be called to send the data to the *frontend

CALL METHOD <TREE_OBJECT>->frontend_update.

Read only

0 Likes
678

It's a way for ALV Grid, but not for tree

Read only

0 Likes
678

No, i can't:) First of all, we don't use lvc_s_fcat structure in tree:) When we add new node or item to the tree, trere is no any "too tip" fields in corresponding structures. So, may be anybody has another guess-work?

Read only

Former Member
0 Likes
678

You can use the same for the tree.