‎2007 Aug 02 2:36 PM
Hi,
What are the constant attributes of cl_gui_alv_grid starting with mc_fc_. Actually these are the function codes of the toolbar attached with ALV grid. How can I get the entire list of such attributes.
Also, let me know if I want only one fcode among them with the grid then how to do this..
rgds,
Avijit
‎2007 Aug 02 4:27 PM
‎2007 Aug 02 10:08 PM
Display the class CL_GUI_ALV_GRID in the info system SE84 or class builder SE24 and click on the "Attibutes" tab.
You will see the mc_fc entries as well as all the other entries associated with the class with type, description, public/private etc
Good luck.
You can do the same for any class.
Brian
‎2007 Aug 06 2:13 PM
hi all,
thanks for ur help. but let me know is there any way out to solve the following problem....
i want to activate(and also show) only the 'PRINT' icon in toolbar attached with ALV designed with OO technique.
‎2007 Aug 06 2:26 PM
Yes it is possible to do that. You have an option to hide the buttons which you dont want to use. To exclude the buttons, you fill a table of type UI_FUNCTIONS and pass it to the parameter IT_TOOLBAR_EXCLUDING of the method set_table_for_first_display. The function codes for the buttons may be acquired by inspecting the constant attributes of the class cl_gui_alv_grid or putting a break point into a method, like the event-handling method of the event after_user_command, which deals with the ALV command.
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 .
hith
Sunil Achyut
‎2007 Aug 06 2:34 PM
hi sunil,
thanks.
but in this case i have to add all buttons except PRINT in that table explicitly. is there any other way out to activate only one or two buttons.