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: 

ALV Exclude Functions

Former Member
0 Kudos

Hi,

Is there a way I can find out the Function Codes of the functions that appear on the alv tooldbar.

Thanks

Martin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please check the code below:

data: it_exclude TYPE ui_functions.

  • Exclude toolbar buttons which are not required

CLEAR : it_exclude, it_exclude[].

PERFORM exclude_tb_functions CHANGING it_exclude.

CLEAR : it_exclude, it_exclude[].

&----


*& Form EXCLUDE_TB_FUNCTIONS

&----


  • text

----


  • <--P_IT_EXCLUDE text

----


FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.

DATA ls_exclude TYPE ui_func.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_check.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_refresh.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_print.

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_mb_sum.

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_info.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.

APPEND ls_exclude TO pt_exclude.

ENDFORM. " EXCLUDE_TB_FUNCTIONS

regards

Kannaiah

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please check the code below:

data: it_exclude TYPE ui_functions.

  • Exclude toolbar buttons which are not required

CLEAR : it_exclude, it_exclude[].

PERFORM exclude_tb_functions CHANGING it_exclude.

CLEAR : it_exclude, it_exclude[].

&----


*& Form EXCLUDE_TB_FUNCTIONS

&----


  • text

----


  • <--P_IT_EXCLUDE text

----


FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.

DATA ls_exclude TYPE ui_func.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_cut.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_check.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_refresh.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_undo.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_print.

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_mb_sum.

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_info.

APPEND ls_exclude TO pt_exclude.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.

APPEND ls_exclude TO pt_exclude.

ENDFORM. " EXCLUDE_TB_FUNCTIONS

regards

Kannaiah

Former Member
0 Kudos

On the ALV List, place your cursor on the Command Box and hit F1, then goto technical settings. This will list out the program name and the GUI status. use thse in SE41 and you can view the info.

Former Member
0 Kudos

Hello,

U can do it like this.

First copy the standard SUI status of ALV to ur report.

Then do this:



 DATA:
    LR_EXTAB TYPE SLIS_EXTAB.
* 001 vsm1kor 18.01.07 " OPL 1448
  IF SY-TCODE = 'ZLIEFERLISTE'.
    LR_EXTAB-FCODE = '&OL0'.
    APPEND LR_EXTAB TO RT_EXTAB.
    LR_EXTAB-FCODE = '&OAD'.
    APPEND LR_EXTAB TO RT_EXTAB.
    LR_EXTAB-FCODE = '&AVE'.
    APPEND LR_EXTAB TO RT_EXTAB.
    LR_EXTAB-FCODE = 'TEXT'.
    APPEND LR_EXTAB TO RT_EXTAB.
    LR_EXTAB-FCODE = 'TEXT20'.
    APPEND LR_EXTAB TO RT_EXTAB.
  ENDIF.
* 001 vsm1kor 18.01.07 " OPL 1448
  SET PF-STATUS 'ZSTANDARD' EXCLUDING RT_EXTAB.

REgards,

VAsanth

Former Member
0 Kudos

Hi...

On ur ALV grid by pressing TAB move to required push button.. after reaching it press F1 Then u will get a help in that go for Technical help or press F9...

reward if it helps u...

sai ramesh

Former Member
0 Kudos

Hi,

Keep the cursor on that Button.Hold the Left click of the mouse as it is.

Press Control+F1. Release the mouse click and click again on that button.

It will give the PROGRAM and FUNCTION.

I hope this is what you are looking for.

Regards,

Anji