ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Create lists → 

HIDE  Syntax Diagram

Short Reference

Syntax

HIDE dobj.

Effect

This statement stores the content of a variable dobj together with the current list line whose line number is contained in sy-linno in the hide area of the current list level. The data type of the variables dobj must be flat and field symbols that point to rows in internal tables, class attributes, or components of boxed components cannot be specified. The stored values can be read as follows:

Notes

Example

Storing square numbers and cubic numbers for a list of numbers. The example shows that arbitrary variables can be stored independently of row content. In the real situation, one would more likely store only the number and execute the calculation, when required, in the event block for AT LINE-SELECTION.

REPORT ...

DATA: square TYPE i,
      cube   TYPE i.

START-OF-SELECTION.
  FORMAT HOTSPOT.
  DO 10 TIMES.
    square = sy-index ** 2.
    cube   = sy-index ** 3.
    WRITE / sy-index.
    HIDE: square, cube.
  ENDDO.

AT LINE-SELECTION.
  WRITE: square, cube.

Exceptions

Non-Catchable Exceptions



Continue
Lists, HIDE Technique