Code: Alles auswählen.
DATA lo_alv TYPE REF TO cl_salv_table.
cl_salv_table=>factory( EXPORTING r_container = cl_gui_container=>default_screen
IMPORTING r_salv_table = lo_alv
CHANGING t_table = lt_itab ).
Code: Alles auswählen.
DATA(lo_grid) = NEW cl_salv_form_layout_grid( ).
lo_grid->create_header_information( ...
Code: Alles auswählen.
SELECT * FROM sflight UP TO 10 ROWS INTO TABLE @DATA(lt_itab).
DATA lo_alv TYPE REF TO cl_salv_table.
cl_salv_table=>factory( " EXPORTING r_container = cl_gui_container=>default_screen
IMPORTING r_salv_table = lo_alv
CHANGING t_table = lt_itab ).
lo_alv->get_functions( )->set_all( abap_true ).
*lo_alv->set_screen_status( pfstatus = 'STLI'
* report = 'SAPMSSY0'
* set_functions = lo_alv->c_functions_all ).
DATA(lo_grid) = NEW cl_salv_form_layout_grid( ).
lo_grid->create_header_information( row = 1 column = 1 text = 'Demo' ).
lo_alv->set_top_of_list( lo_grid ).
WRITE: space.
lo_alv->display( ).
Bei mir sind die Buttons da:
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag (Insgesamt 2):
whaslbeck • Cubitus
Code: Alles auswählen.
lo_alv->set_screen_status( pfstatus = 'STANDARD'
report = 'SAPLSALV' ).