**增加内表
"1.1 要将内表仅仅用于存储数据,处于性能方面的考虑,建议使用APPEND
"1.2 要计算数字字段之和或要确保内表中没有出现重复的条目,请使用COLLECT语句
"1.3 要在内表现有行之前插入新行,请使用IMSERT语句
** 内表数据插入
**APPEND gw_student TO gt_student.
**APPEND INITIAL LINE TO gt_student.
**APPEND LINES OF gt_student FROM 1 TO 3 TO gt_student2.
**INSERT gw_student INTO gt_student INDEX 2.
**INSERT gw_student INTO TABLE gt_student.
**INSERT LINES OF gt_student FROM 1 TO 3 INTO gt_student2 INDEX 2 .
**INSERT LINES OF gt_student INTO TABLE gt_student2 .
"modify itab2 from ls_itab1 index 2
"modify itab2 from ls_itab2 index 3 transporting field1.
"modify itab2 from ls_itab2 transporting field2 where field1 = '00001''
"modify itab2 from ls_itab2 index idx transporting field1 field2.
"delete itab where k1 = v1 and kn = vn. ”按条件删除
"delete table itab from wa. "按照工作区内容删除
"delete itab index idx. "删除具体行
"delete itab from idx to idx2 "删除具体范围
"delete adjacent duplicates from tian "删除重复数据
** Open SQL
"新增
"insert db from <itab>.
"insert db from <wa>
"删除
"delete From <db> where <codition>
"delete db from table <itab>
"修改
"update db set field1 field2 where condition(可选)
"update db from table <itab> where condition (可选)
"update db from <wa>文章来源地址https://www.toymoban.com/news/detail-805401.html
文章来源:https://www.toymoban.com/news/detail-805401.html
到了这里,关于ABAP 内表杂例的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!