12
返回列表 发新帖
楼主: aneasn001

[原创] 求助ABAP----两个语法无效

[复制链接]
论坛徽章:
4
授权会员
日期:2008-10-10 10:43:39八级虎吧徽章
日期:2008-12-11 17:53:25生肖徽章2007版:狗
日期:2009-06-08 09:13:54
11#
发表于 2008-7-4 10:16 | 只看该作者
学习

使用道具 举报

回复
论坛徽章:
2
2014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
12#
发表于 2008-7-4 14:50 | 只看该作者
原帖由 xiebinren 于 2008-7-4 10:06 发表
REPORT z000_test  LINE-SIZE 300.
types: begin of test_ty,
       val01 type i,
       val02 type i,
       val03 type i,
       end of test_ty.
data: test_itab type standard table of test_ty WITH NON-UNIQUE KEY val01 val02 val03.
data: test_wa type test_ty.

do 5 times .
test_wa-val01 = test_wa-val01 + 1.
test_wa-val02 = test_wa-val02 + 2.
test_wa-val03 = test_wa-val03 + 3.
append test_wa to test_itab.
enddo.

append test_wa to test_itab.
clear test_wa.

sort test_itab by val01 val02 val03.
delete adjacent duplicates from test_itab.        " 删除相同的列

loop at test_itab into test_wa.
*set left scroll-boundary.        "这个你也可试一下,体会一下与其他的有什么区别
*set left scroll-boundary column 15.      "这个你也可试一下,体会一下与其他的有什么区别
*set left scroll-boundary column test_wa-val03.       "这个你也可试一下,体会一下与其他的有什么区别
set left scroll-boundary column test_wa-val01.      "固定
write:/ test_wa-val01 COLOR COL_KEY, test_wa-val02,(20) test_wa-val03.
endloop.

1.你放的位置不对,你自己慢慢体会吧

2.data: test_itab type standard table of test_ty 修改为:
data: test_itab type standard table of test_ty with non-unique key val01 val02 val03.


学习了.

使用道具 举报

回复
论坛徽章:
14
授权会员
日期:2008-02-26 09:06:11ITPUB元老
日期:2010-10-04 14:18:26
13#
发表于 2008-7-4 16:04 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
14#
发表于 2008-7-6 08:51 | 只看该作者
学习

使用道具 举报

回复
论坛徽章:
1
2010新春纪念徽章
日期:2010-03-01 11:19:06
15#
 楼主| 发表于 2008-7-7 10:42 | 只看该作者
I know "set left scroll-boundary column col." .
it's to set screen not scrolling size When this list page is displayed on the screen.

使用道具 举报

回复
论坛徽章:
2
2008新春纪念徽章
日期:2008-02-13 12:43:03奥运会纪念徽章:手球
日期:2008-09-04 10:39:23
16#
发表于 2008-7-8 10:10 | 只看该作者
append test_wa to test_itab.

clear test_wa.

请问在do 5 time 里面已经有  append test_wa to test_itab.    你clear test_wa  上面的那个append test_wa to test_itab. 是不是多余的

使用道具 举报

回复
论坛徽章:
1
2010新春纪念徽章
日期:2010-03-01 11:19:06
17#
 楼主| 发表于 2008-7-9 09:13 | 只看该作者

回复 #16 heitian1130 的帖子

it's to product a similar list for checking  "delete adjacent duplicates from test_itab"

使用道具 举报

回复
论坛徽章:
15
2013年新春福章
日期:2013-02-25 14:51:24
18#
发表于 2008-7-9 18:43 | 只看该作者

使用道具 举报

回复
论坛徽章:
3
ITPUB十周年纪念徽章
日期:2011-11-01 16:25:512012新春纪念徽章
日期:2012-01-04 11:56:44优秀写手
日期:2013-12-18 09:29:09
19#
发表于 2011-11-30 15:02 | 只看该作者
强力插入!

使用道具 举报

回复
论坛徽章:
0
20#
发表于 2011-12-5 12:12 | 只看该作者
第一个问题楼上已经解决。
第二个问题的原因是:按照do循环录入到内表中的数据,并没有重复行,所以delete adjacent语句不起作用。不知道楼主指的语法无效是什么

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表