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: 

ALV

Former Member
0 Kudos
150

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
131

if you use ALV object oriented you can simply deativate o activete button on the toolbar.

7 REPLIES 7

Former Member
0 Kudos
131

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

Former Member
0 Kudos
132

if you use ALV object oriented you can simply deativate o activete button on the toolbar.

hermanoclaro
Participant
0 Kudos
131

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

Former Member
0 Kudos
131

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

Former Member
0 Kudos
131

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

Former Member
0 Kudos
131

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.

Former Member
0 Kudos
131

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.