Chinaunix首页 | 论坛 | 博客
  • 博客访问: 701950
  • 博文数量: 158
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1643
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-11 14:37
个人简介

人法地,地法天,天法道,道法自然

文章分类

全部博文(158)

文章存档

2022年(1)

2020年(3)

2016年(1)

2014年(7)

2013年(4)

2010年(5)

2009年(86)

2008年(25)

2007年(26)

我的朋友

分类:

2008-11-14 11:42:19

Syntax

APPEND { wa
       | {INITIAL LINE}
       | {LINES OF jtab [FROM idx1] [TO idx2]} }
   TO itab [SORTED BY comp]
   [ {ASSIGNING [CASTING]} | {REFERENCE INTO dref} ].
 
Effect

Appends rows to an internal table itab.
 
Additions
wa
Appends a workarea wa.

INITIAL LINE
Appends an initial row.
附加初始化行
 
LINES OF jtab [FROM idx1] [TO idx2]
Appends the rows from idx1 to idx2 of the internal table jtab.
this statement alike:
附加内表行
要将部分或 全部内表附 加到另一个 内表中,请 使用 APPEND 语句,用法 如下:
语法
APPEND LINES OF [FROM ] [TO ] TO .
如果没有 FROM 和 TO 选项,该语 句将整个表 格 ITAB1 附加到 ITAB2 中。如果使 用这些选项 ,则可通过 索引
指定 ITAB1 中要附加的 第一或最后 一行。
notice:
用该方式将 表格行附加 到另一个表 格中的速度 比在循环中 逐行进行附 加快3到4倍 。
在 APPEND 语句之后, 系统字段 SY-TABIX 包含附加的 最后一行的 索引。
 
SORTED BY comp
Creates a ranking, which is sorted by the row component comp in descending order.
创建一个队列,按降序排列
 
ASSIGNING [CASTING]
Assigns an appended row to a field symbol and a casting can thus be carried out.

REFERENCE INTO dref
Sets a data reference dref to an appended row.
 
阅读(13191) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~