"定义
data:begin of wa_where ,
c_cond(100) type c,
end of wa_where.
data:where_tab like table of wa_where.
"赋值
move-corresponding ls_filter-select_options to lt_rcyear.
concatenate ' gjahr in ' '' ' lt_rcyear ' '' into wa_where-c_cond .
append wa_where to where_tab.
clear wa_where.
concatenate ' and bukrs in ' '' ' lt_bukrs ' '' into wa_where-c_cond .
append wa_where to where_tab.
"使用
if where_tab is not initial.
select * into table et_entityset from ztficomacc where (where_tab) .
else.