当前位置:网站首页>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.
亲测有效。
边栏推荐
- Open3D 网格滤波
- ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
- web服务性能监控方案
- The most complete learning rate adjustment strategy in history LR_ scheduler
- 卡尔曼滤波-1
- 使用 BR 备份 TiDB 集群到 GCS
- Adaptive non European advertising retrieval system amcad
- Kotlin Android environment construction
- Huawei and Xiaomi "copy each other"
- Codeworks 5 questions per day (1700 average) - day 7
猜你喜欢

2022年上半年HIT行业TOP50

浅谈网络安全之文件上传

leetcode:面试题 17.24. 子矩阵最大累加和(待研究)

Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation

自适应非欧表征广告检索系统AMCAD

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

Adaptive non European advertising retrieval system amcad

On file uploading of network security

Kalman filter-1

Free PHP online decryption tool source code v1.2
随机推荐
API data interface of A-share index component data
U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
【安全攻防】序列化与反序列,你了解多少?
Set WiFi automatic connection for raspberry pie
map和set的实现
Allow public connections to local Ruby on Rails Development Server
红米k40s root玩机笔记
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
三重半圆环进度条,直接拿去就能用
19. (ArcGIS API for JS) ArcGIS API for JS line acquisition (sketchviewmodel)
How to customize the shortcut key for latex to stop running
ubuntu20安裝redisjson記錄
cuda编程
Ubuntu20 installation redisjson record
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
卡尔曼滤波-1
如何检测mysql代码运行是否出现死锁+binlog查看
Kalman filter-1
About Estimation Statistics
web服务性能监控方案