Excluding the icon in docking container module pool programming

******************************************* ecluding the icon in docking container in alv reports
  DATA p_lt_exclude TYPE ui_functions.
  DATA ls_exclude TYPE ui_func.
  REFRESH p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_copy_row.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_pc_file.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_delete_row.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_append_row.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_insert_row.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_copy.

  APPEND ls_exclude TO p_lt_exclude.
  ls_exclude cl_gui_alv_grid=>mc_fc_print.

  APPEND ls_exclude TO p_lt_exclude.


  ls_exclude cl_gui_alv_grid=>mc_fc_loc_cut.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_loc_paste.

  APPEND ls_exclude TO p_lt_exclude.

  ls_exclude cl_gui_alv_grid=>mc_fc_select_all.

  APPEND ls_exclude TO p_lt_exclude.
  it_layout-cwidth_opt 'X'.

************************************************ excluding the icon in alv reports

  " IF sy-subrc <> 0.

* Formatted Output Table is Sent to Control
  CALL METHOD r_grid->set_table_for_first_display
    EXPORTING
      is_layout                     it_layout
      i_save                        'A'
      i_default                     'X'
      it_toolbar_excluding          p_lt_exclude
    CHANGING
      it_outtab                     t_mara
      it_fieldcatalog               t_fieldcat
*     it_sort                       =
*     it_filter                     =
    EXCEPTIONS
      invalid_parameter_combination 1
      program_error                 2
      too_many_lines                3
      OTHERS                        4.
  IF sy-subrc <> 0.

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO

Long Text in input and output field in module pool