Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

application bar

Former Member
0 Likes
529

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

4 REPLIES 4
Read only

Former Member
0 Likes
494

Please search SDN for this .

Read only

Former Member
0 Likes
494

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.

Read only

0 Likes
494

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

Read only

0 Likes
494

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