Aber es gibt doch auch irgendeine Möglichkeit alle Elemente auf einmal zu entfernen , richtig?APPEND cl_gui_alv_grid=>mc_fc_graph to it_toolbar.
APPEND cl_gui_alv_grid=>mc_fc_filter to it_toolbar.
Code: Alles auswählen.
:
:
:
*----Preparing layout structure
PERFORM prepare_layout CHANGING gs_layout .
CALL METHOD grid1->set_table_for_first_display
EXPORTING
is_variant = is_variant
i_save = lv_layperm
* i_save = ' '
is_layout = gs_layout "<======== werte fürs Layout
it_toolbar_excluding = lt_exclude
CHANGING
it_outtab = it_data
it_fieldcatalog = gt_fieldcat.
:
:
*&--------------------------------------------------------------------*
*& Form prepare_layout
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
* -->PS_LAYOUT text
*---------------------------------------------------------------------*
FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
ps_layout-zebra = 'X' .
ps_layout-cwidth_opt ='X'.
ps_layout-numc_total = ' '.
ps_layout-no_merging = 'X'.
ps_layout-no_rowmark = ' '.
ps_layout-sel_mode = 'A'.
ps_layout-no_toolbar = 'X'. " <============ keine Toolbar
* ps_layout-grid_title = 'Flights' .
* ps_layout-smalltitle = 'X' .
ENDFORM. "prepare_layout