2007 Jul 20 12:59 PM
In Alv on application bar there is a button, i want to make it deactivate that, button should be displayed on the tool bar but should be deactivated.
How to do that?
Thanks
2007 Jul 20 1:12 PM
if you use ALV object oriented you can simply deativate o activete button on the toolbar.
2007 Jul 20 1:09 PM
hi Lucky,
try this
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
in addition to this
double click on ur pf status
in menu Goto-attributes>push button assignment ---> in the next popup select Display all radio button
2007 Jul 20 1:12 PM
if you use ALV object oriented you can simply deativate o activete button on the toolbar.
2007 Jul 20 1:18 PM
Hi,
If you are using class alv, you can send the IT_TOOLBAR_EXCLUDING table with the code of the button you want to deactivate.
I don't know for the function REUSE_ALV_GRID_DISPLAY, but I think that this option to exclude a button from the ALV can be done by the IT_EXCLUDING parameter you can send to the function.
Best Regards,
-h
2007 Jul 20 1:26 PM
You can do this.
SET PF-STATUS '<name>' EXCLUDING fcode.
or, you can paste this piece of code.
You can exclude any Button of your chioce.
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions .
DATA ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_maximum .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_minimum .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_subtot .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_sum .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_average .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_sum .
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_subtot .
ENDFORM .
Regards,
Pavan
2007 Jul 20 1:44 PM
hi,
try this .
function code which u want to deactivate .
set pf-status excluding <function code>...
Reward with points if helpful.
Message was edited by:
Vinutha YV
2007 Jul 20 1:49 PM
hi,
in form pf-status write this statement
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
endform
in addition to this
double click on ur pf status
in menu Goto-attributes>push button assignment ---> a popup window opens in that select Display all radio button .
save and activate.
2007 Jul 20 1:54 PM
HI,
do like this.
DATA : ls_exclude TYPE ui_func,
pt_exclude TYPE ui_functions.
*excluding the toolbar buttons obtained by default to the grid dislay
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_paste.
APPEND ls_exclude TO pt_exclude.
in grid display
<b>IT_EXCLUDING = pt_exclude.</b>
rgds,
bharat.