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.更多推荐
发布评论