ABAP循环。(ABAP LOOP. table tdline. Can't get index)

系统教程 行业动态 更新时间:2024-06-14 17:03:52
ABAP循环。(ABAP LOOP. table tdline. Can't get index)

我有一个索引存储在变量lv_index 。 我需要从行的索引大于lv_index的表中获取行。 我尝试过没有成功。

例:

DATA: lt_text TYPE TABLE OF tline-tdline, lv_text TYPE tline-tdline. . . . LOOP AT lt_text INTO lv_text WHERE row > lv_index. * some code here ENDLOOP.

我得到这个错误: Type "TDLINE" has no structure so it doesn't have attribute "ROW" 。

有人能告诉我,我应该写什么,而不是row ,使其工作正确吗?

I have an index stored in a variable lv_index. I need to get lines from the table where the index of a line is greater than lv_index. I tried this with no success.

Example:

DATA: lt_text TYPE TABLE OF tline-tdline, lv_text TYPE tline-tdline. . . . LOOP AT lt_text INTO lv_text WHERE row > lv_index. * some code here ENDLOOP.

I get this error: Type "TDLINE" has no structure so it doesn't have attribute "ROW".

Can someone tell me what should I write instead of row to make it work right?

最满意答案

例如:

LOOP AT lt_text INTO lv_text FROM lv_index. * some code ENDLOOP.

For example:

LOOP AT lt_text INTO lv_text FROM lv_index. * some code ENDLOOP.

更多推荐

本文发布于:2023-04-24 12:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/668bfbaf722a4604a7c31e757e17eecc.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:LOOP   ABAP   table   index   tdline

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!