Skip to Content
0
Former Member
Jul 10, 2008 at 10:35 AM

Text and Icon to a pushbutton in a alv cell

1576 Views

Hi

I have cells in an ALV grid that contain pushbuttons.

(ls_celltab-fieldname = 'S_OFF_ICON'.

ls_celltab-style = cl_gui_alv_grid=>mc_style_button.)

I can add text to this button --> wa_itab-S_OFF_ICON = 'SOME_TEXT'

OR I can add an icon to the button --> wa_itab-S_OFF_ICON = '@01@'

BUT how do I add both ?

I have tried F/M ICON_CREATE , this allows me to add an icon and tooltip text but if I use the "text" parameter of this function module the icon does not display ?

Any ideas ?