SAP NetWeaver AS ABAP Release 702, ©Copyright 2010 SAP AG. All rights reserved.
ABAP Keyword Documentation →
ABAP - Reference →
User Dialogs →
Classic Lists →
Create lists →
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:
For each user action in a displayed screen list that leads to a list result, all the row values stored
using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables.
If a list row of an arbitrary list level is read or modified using the statements
READ LINE or MODIFY
LINE, all the values of this row stored using HIDE are assigned to the respective variables.
The HIDE statement works independently of whether the
list cursor was set. In
particular, variables for empty list rows can be stored - that is, rows in which the list cursor was positioned using statements like SKIP.
The HIDE statement should be executed immediately at the statement that has set the list cursor in the row.
Outside of classes, prior to Release 7.0, for dobj, constants and literals
could still be specified. However, it was not possible to read them at list events and in the READ LINE statement.
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.
DATA: square TYPE i,
cube TYPE i.
DO 10 TIMES.
square = sy-index ** 2.
cube = sy-index ** 3.
WRITE / sy-index.
HIDE: square, cube.
WRITE: square, cube.
Lists, HIDE Technique
Cause: The field is too long for HIDE.
Runtime Error: HIDE_FIELD_TOO_LARGE
Cause: HIDE in a table row or a component in a table row is not possible.
Runtime Error: HIDE_ILLEGAL_ITAB_SYMBOL
Cause: HIDE in a local field is not possible.
Runtime Error: HIDE_NO_LOCAL: HIDE
Cause: HIDE in an empty page is not possible.
Runtime Error: HIDE_ON_EMPTY_PAGE
Cause: The internal HIDE index is too big
Runtime Error: HIDE_INDEX_TOO_BIG
Cause: Illegal field
Runtime Error: HIDE_NOT_GLOBAL
Cause: Permitted number of HIDE statements per list row exceeded
Runtime Error: HIDE_TOO_MANY_HIDES