Code: Alles auswählen.
REPORT Z_TEST_2.
DATA: gt_test TYPE TABLE OF sflight.
DATA(o_timer) = cl_abap_runtime=>create_hr_timer( ).
Data: gr_alv TYPE REF TO cl_salv_table,
gr_header TYPE REF TO cl_salv_form_layout_grid.
SELECt *
FROM sflight
INTO TABLE gt_test.
loop at gt_test ASSIGNING FIELD-SYMBOL(<k>).
<k>-planetype = 'Hallo'.
ENDLOOP.
DATA(usec_end) = o_timer->get_runtime( ).
cl_salv_table=>factory(
IMPORTING
r_salv_table = gr_alv
CHANGING
t_table = gt_test ).
CREATE OBJECT gr_header.
DATA(gr_h_flow) = gr_header->create_flow( row = 1 column = 1 ).
gr_h_flow->create_text( text = 'bLa zu test' ).
gr_alv->set_top_of_list( gr_header ).
gr_alv->display( ).