码迷,mamicode.com
首页 > 其他好文 > 详细

ABAP 内表

时间:2014-12-01 22:12:33      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:ar   sp   div   bs   ad   工作   as   line   nbsp   

定义内表

 

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.

ABAP 内表

标签:ar   sp   div   bs   ad   工作   as   line   nbsp   

原文地址:http://www.cnblogs.com/rainysblog/p/4135969.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!