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

alv report

Former Member
0 Likes
509

In alv report ,i want to hide options like ascending,descending,sum,totals in ALV F.M grid-display.how it is possible.

In alv report ,i want to hide options like ascending,descending,sum,totals in ALV F.M grid-display.how it is possible.

3 REPLIES 3
Read only

Former Member
0 Likes
484

set a pf status..while creating new pf-status..remove other function tool on application toolbar of alv

regards

vivek

Read only

FredericGirod
Active Contributor
0 Likes
484

for OOo


data : it_tool_exclu    type ui_functions .

* Exclude button
  v_ui_func = cl_gui_alv_grid=>mc_mb_sum.           " Menu sum
  append v_ui_func to it_tool_exclu.
  v_ui_func = cl_gui_alv_grid=>mc_mb_subtot.        " Menu sub total
  append v_ui_func to it_tool_exclu.
  v_ui_func = cl_gui_alv_grid=>mc_fc_graph.         " Button graph
  append v_ui_func to it_tool_exclu.
  v_ui_func = cl_gui_alv_grid=>mc_fc_info.          " Button info
  append v_ui_func to it_tool_exclu.


...

* Load data into the grid and display them
  call method obj_grid->set_table_for_first_display
       exporting i_structure_name     = 'ZBC_0001'
                 is_layout            = is_layout
                 is_variant           = is_variant
                 i_save               = 'A'
                 it_toolbar_excluding = it_tool_exclu
       changing  it_outtab            = it_outtab
                 it_fieldcatalog      = it_fieldcatalog.

Fred

Read only

Former Member
0 Likes
484

There is one parameter called IT_EXCLUDING when you call the function module. REUSE_ALV_GRID_DISPLAY. You have to fill them with the function codes that are not needed to be displayed. In short this will be a Table of inactive function codes. If this parameter is empty, everything is shown... suppose the table contains only &OUP and &ODN values and is passed to the FM, then the sort in ascending and descneding order buttons are not shown and are hidden.

some common function codes in alv grid:

&OUP --> Sort in ascending Order

&ODN ---> Sort in descending Order

&ILT --> Set Filter

&UMC ---> Totals

&SUM ---> Sub-totals

NB: Reward points if you find this answer useful.