sapdev logo background
sapdev logo sapdev logo
Comments

ABAP LOOP TABLE LINE Statement syntax, information and example SAP source code



Return to Statement index



LOOP AT itab - TABLE LINE

ABAP Syntax(Obsolete) LOOP AT itab ... WHERE TABLE LINE ... .

What does it do? The addition TABLE LINE can also be specified outside of classes in the WHERE condition of a LOOP statement, instead of the pseudo component table_line .
Latest notes: ABAP Compiler should consider this addition as an error, retained only for reasons of downward compatibility. Always specify the pseudo component table_line instead of TABLE LINE .

Bad example
DATA: itab TYPE TABLE OF i,
wa TYPE i.

LOOP AT itab INTO wa WHERE TABLE LINE > 10.

ENDLOOP.

Good example
DATA: itab TYPE TABLE OF i,
wa TYPE i.

LOOP AT itab INTO wa WHERE table_line > 10.

ENDLOOP.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




LOOP_AT_SCREEN
MARK




comments powered by Disqus