read table lt_xx into ls_xx with key 条件 binary search .
if sy-subrc .
..
endID.
说明:1.二分法 需要排序(sort 表 by 字段)
2.判断
表操作语句
into corresponding fields of table "按字段名相同的赋值
into table "按顺序依次赋值(效率高,注意顺序)
for all entries in "表不能为空,先对表进行判断
表连接 -- inner join
select
a~xx
b~xx
from table1 as a
inner join table2 as b
on a~xx = b~xx
into table ...
说明:将俩个表中数据,根据共有字段进行关联,渠道一个内表中
字符串处理
选择屏幕
单选
parameters : p_xx type mara-matnr .
单项选择
parameters :p_xx radiobutton group 组的名 .
:p_dd radiobutton group 组的名 .
多项选择
parameters p_xx as checkbox .
parameters p_dd as checkbox .
parameters p_cc as checkbox .
复选框
select-options s_xx for mara-matnr .
行
selection-screen begin of line .
..
selection-screen end of line .
框架
selection-screen begin of block b1 with frame title text-001 .
..
selection-screen end of block b1 .