Application Development 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: 

How to add Text to button on the ALV Tree Item Layout - CL_GUI_ALV_TREE

SampathReddy
Participant
0 Kudos
900

I am working on ALV Tree control and added a button using method CL_GUI_ALV_TREE->ADD_NODE by passing parameter IT_ITEM_LAYOUT


The problem I am facing is I couldn't add Text to the button. Could you please help me.

Thank you !

For example below report output BCALV_TREE_06, how to add Text/Tooltip to the button for column 'Pl.type'

1 ACCEPTED SOLUTION

SampathReddy
Participant
425

Hello All,

Text and tooltip can be added to the Icons in the ALV tree using FM ICON_CREATE and it will overwrite the standard tooltip.
I have used the above FM and it worked fine for me.

Thank you all for your valuable inputs.

Regards

Sampath

3 REPLIES 3

DoanManhQuynh
Active Contributor
0 Kudos
425

its icon, not button. you could see that column Carrier already have text next to icon.

Sandra_Rossi
Active Contributor
0 Kudos
425

The column "Carrier" is not shown in the original screenshot (why?), here it is as shown by BCALV_TREE_06 in a 7.52 system:

SampathReddy
Participant
426

Hello All,

Text and tooltip can be added to the Icons in the ALV tree using FM ICON_CREATE and it will overwrite the standard tooltip.
I have used the above FM and it worked fine for me.

Thank you all for your valuable inputs.

Regards

Sampath