
fill_buttons_data_table
You use this method to fill the internal table that you pass to the method
add_button_group in order to create a set of new pushbuttons in your toolbar.CALL METHOD toolbar->fill_buttons_data_table
EXPORTING fcode = fcode
icon = iconid
disabled = disabled
butn_type = butn_type
text = text
quickinfo = quickinfo
checked = checked
CHANGING data_table = data_table.
Parameters |
Meaning |
fcode |
Function code that will be passed to the application program by an event when the user chooses the pushbutton. |
icon |
Icon to be displayed on the pushbutton. |
disabled |
'X' : Pushbutton is inactive' ' : Pushbutton is active |
butn_type |
cntb_btype_button : Pushbuttoncntb_btype_dropdown : Pushbutton with menucntb_btype_menu : Menucntb_btype_sep : Separatorcntb_btype_group : Pushbutton groupcntb_btype_check : Toggle buttonNote: You should use static menus wherever possible, since this helps to eliminate excessive roundtrips. This is especially important under SAPGUI for HTML. For further details, refer to set_static_ctxmenu or assign_static_ctxmenu_table. |
text |
Text to be displayed on the pushbutton. |
quickinfo |
Quick info for the pushbutton |
checked |
Only for pushbuttons with type cntb_btype_group and cntb_btype_check :'X' : Button is chosen' ' : Button not chosen |
data_table |
Table of pushbuttons that you want to add to the toolbar. You create the table with reference to the type TTB_BUTTON .You then pass the table to the method add_button_group. |

You can address the icon using its name, for example,
ICON_ANNOTATION . To do this, the statement INCLUDE <ICON>. must appear in your program. The executable program SHOWICON displays all of the icons in your system.Otherwise, you can address the icons using the form
@xy@ , where xy is the relevant icon code.