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

Exclude buttons from ALV

Former Member
0 Likes
7,888

Hi All,

I want to exclude pushbuttons from ALV. Can any body suggest me how to do this. I am using classes to display ALV.

Regards,

Venkat.

Hi All,

I want to exclude pushbuttons from ALV. Can any body suggest me how to do this. I am using classes to display ALV.

Regards,

Venkat.

4 REPLIES 4
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
3,498

Hi,

You have to use the parameter IT_TOOLBAR_EXCLUDING of the function

SET_TABLE_FOR_FIRST_DISPLAY and pass a value of type UI_FUNCTIONS.

In the attributes of the class CL_GUI_ALV_GRID there are some attributes starting with MC*.

example.

DATA: it_uifunc type UI_FUNCTIONS.

append MC_FC_AVERAGE to it_uifunc.

Pass it_uifunc as value of the parameter mentioned above.

Regards,

Sesh

Read only

Former Member
0 Likes
3,498

Hi

Venkat

check this links

-charitha.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
3,498

Hi venkat,

If u just want to exclude few pushbuttons then do the same in field catalog.

else if u dont need the toolbar then in layout , try this :

data : xs_layo TYPE lvc_s_layo.

xs_layo-no_toolbar = gc_x.

Hope this helps.

Read only

Former Member
0 Likes
3,498

in the pbo of your screen, before displaying your alv grid write in the following way:-

data: g_alv_grid type ref to cl_gui_alv_grid,

g_exclude type ui_func,

g_t_tlbr_excl type ui_functions.

*PBO if used container or screen ,

  • start of selection - if working with selection screen but before displaying alv.

  • Exclude ICONS

perform form_exculde_icons.

call method g_alv_grid->set_table_for_first_display

EXPORTING

is_variant = VARIANT

is_layout = LAYOUT

is_print = PRINT

it_toolbar_excluding = g_t_tlbr_excl

CHANGING

it_outtab = ITAB

it_fieldcatalog = FIELDCATALOG[]

if sy-subrc <> 0.

write: 'Method call ''Set_table_for_first_display'' failed.'.

exit.

endif.

form form_exculde_icons .

  • Exclude alv sum button

g_exclude = cl_gui_alv_grid=>mc_fc_sum.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv count button

g_exclude = cl_gui_alv_grid=>mc_fc_count.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv average button

g_exclude = cl_gui_alv_grid=>mc_fc_average.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv maximum button

g_exclude = cl_gui_alv_grid=>mc_fc_maximum.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv manimum button

g_exclude = cl_gui_alv_grid=>mc_fc_minimum.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv subtotal button

g_exclude = cl_gui_alv_grid=>mc_fc_subtot.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv auf button

g_exclude = cl_gui_alv_grid=>mc_fc_auf.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv locpaste button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv new_row button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv mb_view button

g_exclude = cl_gui_alv_grid=>mc_mb_view.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv fc_view button

g_exclude = cl_gui_alv_grid=>mc_fc_views.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv print_prev button

g_exclude = cl_gui_alv_grid=>mc_fc_print_prev.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv viewgrid button

g_exclude = cl_gui_alv_grid=>mc_fc_view_grid.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv view_excel button

g_exclude = cl_gui_alv_grid=>mc_fc_view_excel.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv view_crystal button

g_exclude = cl_gui_alv_grid=>mc_fc_view_crystal.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv view_lotus button

g_exclude = cl_gui_alv_grid=>mc_fc_view_lotus.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv send button

g_exclude = cl_gui_alv_grid=>mc_fc_send.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_abc button

g_exclude = cl_gui_alv_grid=>mc_fc_call_abc.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_xint button

g_exclude = cl_gui_alv_grid=>mc_fc_call_xint.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv fc_expcrdesig button

g_exclude = cl_gui_alv_grid=>mc_fc_expcrdesig.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv fc_expcrtempl button

g_exclude = cl_gui_alv_grid=>mc_fc_expcrtempl.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv mb_paste button

g_exclude = cl_gui_alv_grid=>mc_mb_paste.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv load_variant button

g_exclude = cl_gui_alv_grid=>mc_fc_load_variant.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv current_variant button

g_exclude = cl_gui_alv_grid=>mc_fc_current_variant.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv maintain_variant button

g_exclude = cl_gui_alv_grid=>mc_fc_maintain_variant.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv save_variant button

g_exclude = cl_gui_alv_grid=>mc_fc_save_variant.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv select_all button

g_exclude = cl_gui_alv_grid=>mc_fc_select_all.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv deselect_all button

g_exclude = cl_gui_alv_grid=>mc_fc_deselect_all.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv graph button

g_exclude = cl_gui_alv_grid=>mc_fc_graph.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv info button

g_exclude = cl_gui_alv_grid=>mc_fc_info.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv f4 button

g_exclude = cl_gui_alv_grid=>mc_fc_f4.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_report button

g_exclude = cl_gui_alv_grid=>mc_fc_call_report.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv fc_check button

g_exclude = cl_gui_alv_grid=>mc_fc_check.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv fc_refresh button

g_exclude = cl_gui_alv_grid=>mc_fc_refresh.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv loc_cut button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv loc_copy button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv loc_undo button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv append_row button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv insert_row button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv delete_row button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv copy_row button

g_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv reprep button

g_exclude = cl_gui_alv_grid=>mc_fc_reprep.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_chain button

g_exclude = cl_gui_alv_grid=>mc_fc_call_chain.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_more button

g_exclude = cl_gui_alv_grid=>mc_fc_call_more.

append g_exclude to g_t_tlbr_excl.

  • Exclude alv call_master_data button

g_exclude = cl_gui_alv_grid=>mc_fc_call_master_data.

append g_exclude to g_t_tlbr_excl.

endform.