Add button to ALVtree toolbarInsert the following code into the PBO of the screen after the ALVtree has been created.
*&-------------------------------------------------------------*
*& CHANGE_TOOLBAR
*&-------------------------------------------------------------*
* get toolbar control
call method gd_tree->get_toolbar_object
importing
er_toolbar = mr_toolbar.
check not mr_toolbar is initial.
* add seperator to toolbar
call method mr_toolbar->add_button
exporting
fcode = ''
icon = ''
butn_type = cntb_btype_sep
text = ''
quickinfo = 'This is a Seperator'. "#EC NOTEXT
* add Standard Button to toolbar (for Delete Subtree)
call method mr_toolbar->add_button
exporting
fcode = 'DELETE' "Function code of button
icon = '@18@' "Icon ID (see
|
||||||||