SAP LOOP TABLE LINE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• TABLE LINE LOOP AT itab - obsolete

LOOP AT itab, TABLE LINE

ABAP_SYNTAX_OBS
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:

The ABAP Compiler should consider this addition as an error, retained only for reasons of downward compatibility. The pseudo component table_line should always be specified instead of TABLE LINE .
ABAP_HINT_END

ABAP_EXAMPLE_BAD DATA: itab TYPE TABLE OF i,
wa TYPE i.

LOOP AT itab INTO wa WHERE TABLE LINE > 10.

ENDLOOP.
ABAP_EXAMPLE_END

ABAP_EXAMPLE_GOOD
ABEXA 00404
ABAP_EXAMPLE_END

Return to menu