Code: Alles auswählen.
DATA(alv_grid) = NEW cl_gui_alv_grid( gui_container ).
alv_grid->set_table_for_first_display(
CHANGING
it_outtab = alv_grid_base_itab
it_fieldcatalog = fieldcatalog ).
alv_grid->register_f4_for_fields(
it_f4 = VALUE #(
fieldname = 'ZTERM' register = abap_true ) ).
SET HANDLER me->input_help_event_listener FOR alv_grid.
Code: Alles auswählen.
METHOD input_help_event_listener.
DATA: term_of_payment TYPE t052-zterm.
CALL FUNCTION 'FI_F4_ZTERM'
IMPORTING
e_zterm = term_of_payment.
" Übernahme Zahlungsbed. in interne Tabelle
alv_grid_base_itab[ es_row_no-row_id ]-zterm = term_of_payment.
alv_grid->refresh_table_display( ).
ENDMETHOD.