Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ABAP 是否支持 SELECT 语句中的计算字段?如:
SELECT price quantity price*quantity AS sum FROM ... INTO ... WHERE ...
如果没有,让高级编码人员告诉我他们使用什么解决方案来处理这项任务。不要在 SELECT 循环中提供计算到临时变量的性能降低方式。
SELECT. ... ENDSELECT.
Open SQL 仅支持几个聚合函数。在选择记录并将结果保存到内部表中之后,应在内存中进行计算。 简而言之:
select ... into table itab from ... loop at itab assigning <itab_row>. " Perform calculations on row here endloop.