Show TOC

Syntax documentationfill_buttons_data_table Locate this document in the navigation structure

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.

Syntax Syntax

  1. 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.
End of the code.

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: Pushbutton

  • cntb_btype_dropdown: Pushbutton with menu

  • cntb_btype_menu: Menu

  • cntb_btype_sep: Separator

  • cntb_btype_group: Pushbutton group

  • cntb_btype_check: Toggle button

Note Note

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.

End of the note.

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.

Note Note

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.

End of the note.