Application Development 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: 

removing icon from appliction tool bar

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member188685
Active Contributor

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

4 REPLIES 4

Former Member
0 Kudos

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.

former_member188685
Active Contributor

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

0 Kudos

Hi Yash,

Thanks for reply, I need to remove excel icon also what is fcode

like &AQW where we can find the list.

Former Member
0 Kudos

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.