- SALV可以通过弹窗形式打开
- 在生成SALV实例对象后调用set_screen_popup方法设置成弹出模式
"设置为弹窗模式 go_alv->set_screen_popup( start_column = 10 end_column = 110 start_line = 5 end_line = 15 ).
- 显示效果
- 完整代码
SELECT * FROM ekko INTO TABLE @DATA(gt_data) UP TO 10 ROWS. "生成SALV实例对象 TRY. cl_salv_table=>factory( IMPORTING r_salv_table = DATA(go_alv) CHANGING t_table = gt_data[] ). CATCH cx_salv_msg. ENDTRY. "设置标准状态栏 DATA(lo_functions) = go_alv->get_functions( ). lo_functions->set_all( 'X' ). "设置为弹窗模式 go_alv->set_screen_popup( start_column = 10 end_column = 110 start_line = 5 end_line = 15 ). "打开SALV go_alv->display( ).