SAP CL_GUI_TOOLBAR OO Class - Toolbar Control









CL_GUI_TOOLBAR is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_GUI_TOOLBAR including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Inheritance

This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_GUI_TOOLBAR is CL_GUI_CONTROL

Method list of CL_GUI_TOOLBAR SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
ADD_BUTTONAdds a New PushbuttonPublic
CALL METHOD cl_gui_toolbar=>ADD_BUTTON...more details

ADD_BUTTON_GROUPAdds a List of PushbuttonsPublic
CALL METHOD cl_gui_toolbar=>ADD_BUTTON_GROUP...more details

ASSIGN_STATIC_CTXMENU_TABLESets the Static Context Menus for Several PushbuttonsPublic
CALL METHOD cl_gui_toolbar=>ASSIGN_STATIC_CTXMENU_TABLE...more details

CHECK_UNIQUE_FCODEChecks if an F Code is Already Available in m_table_buttonPrivate
CALL METHOD cl_gui_toolbar=>CHECK_UNIQUE_FCODE...more details

CONSTRUCTORConstructorPublic
CALL METHOD cl_gui_toolbar=>CONSTRUCTOR...more details

DELETE_ALL_BUTTONSDeletes all PushbuttonsPublic
CALL METHOD cl_gui_toolbar=>DELETE_ALL_BUTTONS...more details

DELETE_BUTTONDeletes a PushbuttonPublic
CALL METHOD cl_gui_toolbar=>DELETE_BUTTON...more details

FILL_BUTTONS_DATA_TABLEFills the Table for Creating Several PushbuttonsPublic
CALL METHOD cl_gui_toolbar=>FILL_BUTTONS_DATA_TABLE...more details

ON_CTXMENU_CHANGEDEvent Handler for Context MenuPrivate
CALL METHOD cl_gui_toolbar=>ON_CTXMENU_CHANGED...more details

SET_BUTTON_INFOSets the Information for Changing Icon, Text or TooltipPublic
CALL METHOD cl_gui_toolbar=>SET_BUTTON_INFO...more details

SET_BUTTON_STATESets the State of a Single PushbuttonPublic
CALL METHOD cl_gui_toolbar=>SET_BUTTON_STATE...more details

SET_BUTTON_VISIBLESets the State of a Single PushbuttonPublic
CALL METHOD cl_gui_toolbar=>SET_BUTTON_VISIBLE...more details

SET_STATIC_CTXMENUSets the Static Context Menu for a PushbuttonPublic
CALL METHOD cl_gui_toolbar=>SET_STATIC_CTXMENU...more details

SET_WEBGUI_MENU_LOCAL_RELOADWEBGUI: Dynamic Menu Loaded LocallyPublic
CALL METHOD cl_gui_toolbar=>SET_WEBGUI_MENU_LOCAL_RELOAD...more details

TRACK_CONTEXT_MENUDisplays a Context MenuPublic
CALL METHOD cl_gui_toolbar=>TRACK_CONTEXT_MENU...more details

UPDATE_TABLE_BUTTONUpdates the Configuration Table of the PushbuttonsPrivate
CALL METHOD cl_gui_toolbar=>UPDATE_TABLE_BUTTON...more details

UPDATE_TABLE_CTXMENUUpdates the Table of the Static Context MenuPrivate
CALL METHOD cl_gui_toolbar=>UPDATE_TABLE_CTXMENU...more details



CL_GUI_TOOLBAR attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
M_CHECKEDInstance AttributeButton state1LIKE
I
Private
M_ENABLEDInstance AttributeButton state1LIKE
I
Private
M_FCODEInstance AttributeFunction CodeLIKE
UI_FUNC
Private
M_ID_DROPDOWN_CLICKEDConstantEvent ID2LIKE
I
Public
M_ID_DROPMENU_CLICKEDInstance AttributeEvent ID3LIKE
I
Public
M_ID_FUNCTION_SELECTEDConstantEvent ID1LIKE
I
Public
M_MODE_HORIZONTALConstantHorizontal Display0LIKE
I
Public
M_MODE_VERTICALConstantHorizontal Display1LIKE
I
Public
M_POSXInstance AttributeCoordinate XLIKE
I
Private
M_POSYInstance AttributeCoordinate YLIKE
I
Private
M_RESULTInstance AttributeReturn ValueLIKE
I
Public
M_SEPARATOR_IDInstance AttributeSeparator ID0LIKE
CNTB_UNIQUE_ID
Private
M_TABLE_BUTTONInstance AttributeAssignment of PushbuttonsLIKE
TTB_BUTTON
Public
M_TABLE_CTXMENUInstance AttributeAssignment of Static Context MenuLIKE
TTB_BTNMNU
Public
M_VERSIONInstance AttributeVersion number0LIKE
I
Public
M_VISIBLEInstance AttributeVisibility1LIKE
I
Private
M_WRAPABLEInstance AttributeStyle1LIKE
I
Private


Events of Class CL_GUI_TOOLBAR

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... DROPDOWN_CLICKED - if a Dropdown or Menu Pushbutton is Clicked
FUNCTION_SELECTED - if a Pushbutton or a Menu Entry is Selected

Links to Related Class(s)

CL_GUI_T...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!