Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: supressing print preview list in ALV tree

$
0
0

Hi Kiran,

 

One option is deleting the buttons from toolbar through method delet_all_buttons from class cl_gui_toolbar.

 

You can refer to program R_ALV_TREE_TOOLBAR_MANAGER

 

Below is the code extracted from the program:

 

* get toolbar control
   CALL METHOD tree1->get_toolbar_object
     IMPORTING
       er_toolbar = mr_toolbar.

   CHECK NOT mr_toolbar IS INITIAL.

   lt_button_alv = mr_toolbar->m_table_button.

   CALL METHOD mr_toolbar->delete_all_buttons
     EXCEPTIONS
       cntl_error = 1
       OTHERS     = 2.

* Add Standard Button to toolbar (for Delete Subtree)
   CALL METHOD mr_toolbar->add_button
     EXPORTING
       fcode     = 'DELETE'
       icon      = '@18@'
       butn_type = cntb_btype_button
       text      = ''
       quickinfo = 'Delete subtree'.                         "#EC NOTEXT


Regards,

Marcos.


Viewing all articles
Browse latest Browse all 9091

Trending Articles