1, 查看参照表中字段是否有search help或check table
2, 代码实现
1
2
3
4
5
6
7
8
|
DATA: l_ddic TYPE salv_s_ddic_reference,
lo_column TYPE REF TO cl_salv_column_table.
lo_column ?= io_columns->get_column( columnname = 'SOBSL' ).
l_ddic-field = 'SOBSL' .
l_ddic-table = 'MARC'.
lo_column->set_ddic_reference( l_ddic ).
lo_column->set_f4('X').
|
如果单元格没有F4按钮,用方法Set_f4讲按钮设置出来.