04-18-2008 10:59 AM
Hi ,
i am using alv grid report, after displaying the report
i need to take word processing icon from application toolbar
pls give the solution
thanks
sai
04-18-2008 11:07 AM
you can do this way..
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = 'STATUS'
.....
FORM STATUS using it_ucomm type slis_t_extab.
append '&AQW' to it_ucomm.
SET PF-STATUS 'STATUS' excluding it_ucomm.
ENDFORM.
or else populate the it_excluding option with the exclude Function codes and pass it to ALV FM
append '&AQW' to it_exclude.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_excluding = it_exclude
04-18-2008 11:01 AM
HI,
In the PBO, use statement
SET PF-STATUS <pf-status name> EXCLUDING <Fcode of the icon which needs to be removed>
Reward points if helpful.
Thanks and Regards,
Lakshmi.
04-18-2008 11:07 AM
you can do this way..
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = 'STATUS'
.....
FORM STATUS using it_ucomm type slis_t_extab.
append '&AQW' to it_ucomm.
SET PF-STATUS 'STATUS' excluding it_ucomm.
ENDFORM.
or else populate the it_excluding option with the exclude Function codes and pass it to ALV FM
append '&AQW' to it_exclude.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_excluding = it_exclude
04-18-2008 12:10 PM
Hi Yash,
Thanks for reply, I need to remove excel icon also what is fcode
like &AQW where we can find the list.
04-18-2008 11:07 AM
Hi,
Use the Below code before display ALV Grid.
ui_functions contains different icons.
DATA :gt_exclude TYPE ui_functions.
To Exclude unwanted buttons on GRID.
PERFORM exclude_tb_functions CHANGING gt_exclude.
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.
DATA: la_exclude TYPE ui_func.
la_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND la_exclude TO pt_exclude.
ENDFORM.
This may help u.