‎2009 Nov 30 9:39 AM
Dear friends,
I have developed one screen in whic i have to add tool bar, having options like filter, find , sorting , export etc.
Please help me out.
Thanks and Regards
Vivek Srivastava
‎2009 Nov 30 10:57 AM
‎2009 Dec 01 5:16 AM
Hi,
This part of the code will give you an idea how to add buttons to toolbar
Add a button group to the toolbar
PERFORM add_button_group.
&----
*& Form add_button_group
&----
Add a filter***********
CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
EXPORTING
fcode = 'Filter'
icon = ' '
butn_type = cntb_btype_filter
CHANGING
data_table = gi_button_group.
Add a Find***********
CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
EXPORTING
fcode = 'Find'
icon = ' '
butn_type = cntb_btype_find
CHANGING
data_table = gi_button_group.
Add a Sort***********
CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
EXPORTING
fcode = 'Sort'
icon = ' '
butn_type = cntb_btype_filter
CHANGING
data_table = gi_button_group.
Add a Export***********
CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
EXPORTING
fcode = 'Export'
icon = ' '
butn_type = cntb_btype_export
CHANGING
data_table = gi_button_group.
Add button group to toolbar
CALL METHOD go_toolbar->add_button_group
EXPORTING data_table = gi_button_group.
‎2009 Dec 02 11:00 AM
Dear Friend thanks
Please can u send me the complete program since i am getting data not
define error.
Please help me dear.
yours vivek
‎2009 Dec 02 11:32 PM
SAP provides lots of examples itesefl - just go to SE38, enter BALVGRID* and select F4 to search for these - for example one program that demonstrates toolbars on ALV grids is BCALV_GRID_05 - it has reasonable comments throughout.
Jonathan