Да, именно так как Вы написали.
Кнопку добавил в статус экрана.
Ловлю ее - это срабатывает.
Видимо из-за создания!
Создаю следующим образом:
Code:
create object alvg_cont
exporting
container_name = 'ZCONTAINER'.
create object alvg
exporting
i_parent = alvg_cont.
call method alvg->set_table_for_first_display
EXPORTING
is_variant = wa_vrnt
i_save = 'A' "(X,U,A,' ')
i_default = 'X' " default wa_layout allowed
is_layout = wa_layo
is_print = wa_prnt
it_toolbar_excluding = it_tlbe
* i_structure_name = 'ZNPP_COOIS'
i_bypassing_buffer = 'X'
CHANGING
it_outtab = it_alv
it_fieldcatalog = it_fcat
it_sort = it_sort
it_filter = it_filt
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.