使用function module:
REUSE_ALV_GRID_DISPLAY显示ALV,并设置alv某些列可编辑,可是编辑后发现对应的内表数据并没有随之改变。记得需要设置一个参数的值,怎么想也记不起来了,问一下同事才知道。那句话不假:好记性不如烂笔头。
1 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 2 EXPORTING 3 i_background_id = 'SIWB_WALLPAPER' 4 i_callback_program = i_repid 5 i_grid_settings = lc_glay 6 i_callback_html_top_of_page = w_html_top_of_page 7 i_buffer_active = 'X' 8 * I_STRUCTURE_NAME = '' 9 * I_DEFAULT = 'X' 10 * I_SAVE = 'A' 11 * IS_VARIANT = W_VARIANT 12 is_layout = w_layout 13 i_callback_pf_status_set = 'SET_PF_STATUS' 14 i_callback_user_command = 'USER_COMMAND' 15 it_fieldcat = gd_fieldcat 16 it_events = i_events 17 it_event_exit = i_event_exit 18 it_excluding = i_excluding 19 is_print = w_print 20 * i_screen_start_column = 1 21 * i_screen_start_line = 1 22 * i_screen_end_column = 70 23 * i_screen_end_line = 30 24 TABLES 25 t_outtab = gt_out.
其中需要设置:
LC_GLAY-EDT_CLL_CB = 'X'.
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/18347.html