ABAP SET_TABLE_FOR_FIRST_DISPLAY 怎么设置自动优化列宽
1个回答
展开全部
gs_layout-zebra = 'X'.
gs_layout-CWIDTH_OPT = 'X'. "就是这个吧
CALL METHOD g_grid1->set_table_for_first_display
EXPORTING
IS_LAYOUT = gs_layout
CHANGING
it_outtab = ZVBRK[]
it_fieldcatalog = gt_fieldcat1[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
gs_layout-CWIDTH_OPT = 'X'. "就是这个吧
CALL METHOD g_grid1->set_table_for_first_display
EXPORTING
IS_LAYOUT = gs_layout
CHANGING
it_outtab = ZVBRK[]
it_fieldcatalog = gt_fieldcat1[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询