ABAP Keyword Documentation →  ABAP − Reference →  User Dialogs →  Classic Lists →  Creating 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 variable dobj must be flat and no field symbols or components of Boxed Components can be specified that point to rows of internal tables, and no class attributes can be specified. The saved values can be read as followed:

Notes

Example

Saving square numbers and cubic numbers for a list of numbers. The example shows that any variable can be stored independently of the row content. In the real world, one would more likely save only the number and execute the calculation, when required, in the 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