ALV 填值返回更新屏幕
1、定义
DATA: i_grid_settings TYPE lvc_s_glay.
2、第六行
FORM layout_build . i_layout-box_fieldname = 'FLAG'. i_layout-colwidth_optimize = 'X'. "优化列宽选项是否设置 i_layout-zebra = 'X'. i_layout-detail_initial_lines = 'X'. i_layout-no_vline = 'X'." layout_build i_grid_settings-edt_cll_cb = 'X'. ENDFORM. " LAYOUT_BUILD
3、gui
FORM display_alv . g_repid = sy-repid. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_user_command = 'USER_COMMAND' i_callback_pf_status_set = 'USER_STATUS' i_callback_program = g_repid is_layout = i_layout it_fieldcat = fieldcat[] * it_events = i_events[] i_grid_settings = i_grid_settings TABLES t_outtab = gt_alv EXCEPTIONS program_error = 1 OTHERS = 2. ENDFORM. "display_alv