当前位置:网站首页>ABAP 动态内表分组循环
ABAP 动态内表分组循环
2022-07-06 21:20:00 【慘綠少年】
在ABAP中使用动态内表分组循环时,如果直接at end of 或group by 会报错。
At end of :
LOOP AT <dy_table> ASSIGNING <dyn_wa>.
AT END OF belnr.
ENDAT.
ENDLOOP.

Group by:
LOOP AT <dy_table> ASSIGNING <dyn_wa> GROUP BY ( belnr = <dyn_wa>-belnr ) ASCENDING ASSIGNING FIELD-SYMBOL(<group>).
ENDLOOP.

这样是因为<dyn_wa>是通用类型,只有assignging后才有类型。
解决方法:
LOOP AT <dy_table> ASSIGNING <dyn_wa>.
ASSIGN COMPONENT 'BELNR' OF STRUCTURE <dyn_wa> TO <fs_belnr>.
AT END OF <fs_belnr>.
ENDAT.
ENDLOOP.
亲测有效。
边栏推荐
- Index of MySQL
- Set static IP for raspberry pie
- OSCP工具之一: dirsearch用法大全
- Delete data in SQL
- Ubuntu 20 installation des enregistrements redisjson
- R data analysis: how to predict Cox model and reproduce high score articles
- 浅谈网络安全之文件上传
- 使用 BR 备份 TiDB 集群到 GCS
- My brave way to line -- elaborate on what happens when the browser enters the URL
- leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
猜你喜欢

VHDL implementation of arbitrary size matrix multiplication

【安全攻防】序列化与反序列,你了解多少?

什么是 BA ?BA怎么样?BA和BI是什么关系?

Search of linear table

机器学习笔记 - 使用机器学习进行鸟类物种分类

太方便了,钉钉上就可完成代码发布审批啦!

Flutter3.0, the applet is not only run across mobile applications

海思3559万能平台搭建:RTSP实时播放的支持

QT 项目 表格新建列名称设置 需求练习(找数组消失的数字、最大值)

Ubuntu 20 installation des enregistrements redisjson
随机推荐
[hcie TAC] question 3
Arduino droplet detection
My brave way to line -- elaborate on what happens when the browser enters the URL
【安全攻防】序列化與反序列,你了解多少?
2022夏每日一题(一)
Baidu map JS development, open a blank, bmapgl is not defined, err_ FILE_ NOT_ FOUND
哈夫曼树基本概念
1.19.11.SQL客户端、启动SQL客户端、执行SQL查询、环境配置文件、重启策略、自定义函数(User-defined Functions)、构造函数参数
U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
接口数据安全保证的10种方式
web服务性能监控方案
Enumeration general interface & enumeration usage specification
使用 BR 恢复 GCS 上的备份数据
Code quality management
termux设置电脑连接手机。(敲打命令贼快),手机termux端口8022
R data analysis: how to predict Cox model and reproduce high score articles
Vernacular high concurrency (2)
Ggplot facet detail adjustment summary
AVL树插入操作与验证操作的简单实现
再AD 的 界面顶部(菜单栏)创建常用的快捷图标