Pages

Tuesday, December 29, 2009

Creating ALV toolbar

wa_excl = cl_gui_alv_grid=>MC_MB_SUBTOT.
APPEND wa_excl to it_excl.
wa_excl = cl_gui_alv_grid=>MC_FC_FIND_MORE.
APPEND wa_excl to it_excl.


* Call Grid method to display ALV Table
CALL METHOD obj_grid->set_table_for_first_display
EXPORTING
is_layout = wa_layout
it_toolbar_excluding = it_excl
CHANGING
it_outtab = it_main
it_fieldcatalog = it_fcat
it_sort = it_sort
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.

No comments:

Post a Comment