SAP LOOP TABLE LINE ABAP Statements

Get Example source ABAP code based on a different SAP table
  



LOOP AT itab - TABLE LINE
• TABLE LINE LOOP AT itab - obsolete

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.

Return to menu