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

OO ALV

Former Member
0 Likes
690

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

5 REPLIES 5
Read only

Former Member
0 Likes
664

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

Read only

0 Likes
664

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.

Read only

0 Likes
664

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

Read only

0 Likes
664

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.