2007 Aug 22 7:11 AM
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.
2007 Aug 22 7:19 AM
set a pf status..while creating new pf-status..remove other function tool on application toolbar of alv
regards
vivek
2007 Aug 22 7:30 AM
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
2007 Aug 22 7:35 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |