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

internal table operation

时间:2019-03-14 13:12:46      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:class   amp   end   asi   define   efi   begin   --   code   

1: the basic operation

*&---------------------------------------------------------------------*
*& Report ZHANSEN28
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZHANSEN28.
DATA: BEGIN OF linv Occurs 0,  "define the internal table.
      Name(20) TYPE C,
      ID_Number TYPE I,
END OF linv.

DATA table1 LIKE TABLE OF linv.     "define a variable of linv.
linv-Name = Melissa.
linv-ID_Number = 105467.
APPEND linv TO table1.              "append the data to table.

linv-Name = Melissb.
linv-ID_Number = 105468.
APPEND linv TO table1.               "append again.

LOOP AT table1 INTO linv.             "loop print the data of table.
Write: / linv-name, linv-ID_Number.
ENDLOOP.

2:

 

internal table operation

标签:class   amp   end   asi   define   efi   begin   --   code   

原文地址:https://www.cnblogs.com/liyafei/p/10529596.html

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