2、rangetab>.
iii. If sy-subrc eq 0.
refresh .
Endif.
b) 下一步是循环selopt,通过指针方式,修改程序内存变量,把SP$00001 - SP$00…赋上值。
loop at selopt.
if selopt-kind = 'P'.
concatenate '(' rtmode-sscrreport ')' selopt-selname into l_name.
//用指针指向内存中的数据
assign (l_name) to .
i
3、f sy-subrc = 0.
//把内容赋值到内存中
= selopt-low..
endif.
elseif selopt-kind = 'S' and selopt-sign <> space.
concatenate '(' rtmode-sscrreport ')' selopt-selname into l_name.
//用指针指向内存中的数据
assign (l_name) to .
if sy-subrc = 0.
4、 //要放入的内表
concatenate '(' rtmode-sscrreport ')' selopt-selname '[]'
into l_name.
assign (l_name) to .
if sy-subrc = 0.
//选择内容放入
move-corresponding selopt to .
append to .
endif.
endif.
endif.
endloop.
4, 读取数据库内容
a) 条件已经有了
b) 表和要读取的字段已经知道
c) 在维护时已经生成配置结构
d) 内表中的内容已经知道,因此读取数据没有问题
5, ALV输出
a) 把输出内容传向指针
b) 然后通过Export方法,把ALV格式和输出的字段传入。
c) 调用500屏幕,在屏幕中创建container
d) 然后再创建ALV对象
e) 调用ALV对象的set_table_for_first_display输出