Application Development 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: 

setting_excluding_toolbar

Former Member
0 Kudos

Hello experts,

I am having difficulty in setting_excluding_toolbar.

I set for 3 programs and it shows at only one program.

Here is the some sample code for my program.

FORM SET_EXCLUDING_TOOLBAR .

  • ALV TOOLBAR

APPEND GR_GRID->MC_MB_SUM TO GT_TOOLBAR_EXCLUDING.

APPEND GR_GRID->MC_FC_FILTER TO GT_TOOLBAR_EXCLUDING.

APPEND GR_GRID->MC_FC_PRINT TO GT_TOOLBAR_EXCLUDING.

APPEND GR_GRID->MC_FC_VIEWS TO GT_TOOLBAR_EXCLUDING.

APPEND GR_GRID->MC_FC_GRAPH TO GT_TOOLBAR_EXCLUDING.

APPEND GR_GRID->MC_MB_EXPORT TO GT_TOOLBAR_EXCLUDING.

ENDFORM. " SET_EXCLUDING_TOOLBAR

And i set GT_TOOLBAR1_EXCLUDING for second program and GT_TOOLBAR2_EXCLUDING for third program.

best regards,

3 REPLIES 3

ravi_lanjewar
Contributor
0 Kudos

APPEND GR_GRID->MC_MB_SUM TO GT_TOOLBAR_EXCLUDING.
APPEND GR_GRID->MC_FC_FILTER TO GT_TOOLBAR_EXCLUDING.
APPEND GR_GRID->MC_FC_PRINT TO GT_TOOLBAR_EXCLUDING.
APPEND GR_GRID->MC_FC_VIEWS TO GT_TOOLBAR_EXCLUDING.
APPEND GR_GRID->MC_FC_GRAPH TO GT_TOOLBAR_EXCLUDING.
APPEND GR_GRID->MC_MB_EXPORT TO GT_TOOLBAR_EXCLUDING.

Here you gave object reference GR_GRID . You have to give the reference of cl_gui_alv_grid class.

Correct to statement as follows


APPEND cl_gui_alv_grid=>MC_MB_SUM TO GT_TOOLBAR_EXCLUDING.
APPEND cl_gui_alv_grid=>MC_FC_FILTER TO GT_TOOLBAR_EXCLUDING.
APPEND cl_gui_alv_grid=>MC_FC_PRINT TO GT_TOOLBAR_EXCLUDING.
APPEND cl_gui_alv_grid=>MC_FC_VIEWS TO GT_TOOLBAR_EXCLUDING.
APPEND cl_gui_alv_grid=>MC_FC_GRAPH TO GT_TOOLBAR_EXCLUDING.
APPEND cl_gui_alv_grid=>MC_MB_EXPORT TO GT_TOOLBAR_EXCLUDING.

Kind Rgds

Ravi Lanjewar

former_member184578
Active Contributor
0 Kudos

Hi.,

Check my reply in this thread : [Excluding tool bar in oo ALV|;

hope this helps u.,

Thanks & Regards,

Kiran

Former Member
0 Kudos

HI

try this code

DATA :lw_fun TYPE ui_func,

pi_fun TYPE ui_functions.

lw_fun = cl_gui_alv_grid=>mc_fc_maximum.

APPEND lw_fun TO pi_fun.

CLEAR lw_fun.

CALL METHOD go_grid_matnr->set_table_for_first_display

EXPORTING

it_toolbar_excluding = pi_fun

CHANGING

it_outtab = gi_itab

it_fieldcatalog = li_fieldcat.