Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete User Dialogs →  Obsolete ABAP Statements for Dynpros 

LOOP AT SCREEN - Short Form

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

LOOP AT SCREEN.
  ...
ENDLOOP.

Effect

This is a short form of the statement

LOOP AT SCREEN INTO screen.
  ...
ENDLOOP.

The short form uses a structure with the name screen implicitly instead of an explicitly declared work area wa. This is either the obsolete built-in structure screen or a structure declared in the current context called screen, which must have the data type SCREEN.


Notes

  • The long form with an explicitly declared work area should be used instead of the short form.

  • The short form of the statement LOOP AT SCREEN behaves like the statement LOOP in a loop across an internal table with a header line, where the built-in structure is used as the header line.