wa_fieldcat-do_sum = 'X'.
modify it_fieldcat from wa_fieldcat transporting do_sum where fieldname = 'LABST' or fieldname = 'INSME'."对某些字段设置汇总
call function 'REUSE_ALV_LIST_DISPLAY'"也可以用于GRID
exporting
i_callback_program = sy-repid
it_fieldcat = it_fieldcat
tables
t_outtab = itab
exceptions
program_error = 1
others = 2 .
评论