定义内表
1. 先声明表结构, 再根据表结构定义内表.
TYPES: BEGIN OF w_itab,
a(10),
b(10),
END OF w_itab.
DATA: itab1 type standard table of w_itab with header line.
DATA: itab2 like table of itab1.
2. 先声明工作区, 再引用工作区结构来声明一个内表.
DATA: begin of w_itab,
a(10),
b(10),
end of w_itab.
DATA: itab1 like table of w_itab.
3. 直接声明内表.
DATA: begin of itab1 occurs 10,
a(10),
b(10),
end of itab1.
4. 根据现在的表或内表声明内表.
DATA: itab1 like table of sflight with header line.
DATA: itab1 like sflight occurs 0 with header line.