* Reference for ALV instance
DATA: gr_alv TYPE REF TO cl_salv_table.
*********定义工具栏
DATA: lr_functions TYPE REF TO cl_salv_functions_list.
cl_salv_table=>factory(
EXPORTING
* LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE
r_container = gr_cont
* CONTAINER_NAME =
IMPORTING
r_salv_table = gr_alv
CHANGING
t_table = it_sflight
).
*定义工具栏
lr_functions = gr_alv->get_functions( ).
lr_functions->set_default( ).