Get Example source ABAP code based on a different SAP table
ID HIDE • HIDE ABAP Statement
HIDE> Short Reference >
ABAP_SYNTAX HIDE dobj.>
What does it do? 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 lines of internal tables, and no class attributes can be specified. The stored values can be read again as follows:
Any user action on a displayed screen list that causes a list event assigns all values saved using HIDE> to the relevant variables.
If a list line of a list level is read or modified using the statements READ LINE>> or MODIFY LINE>>, all values of this line stored using HIDE > are assigned to the relevant variables.
Latest notes:
The HIDE> statement works independently of how the list cursor> was set. In particular, variables can also be stored for empty list lines, that is, lines in which the list cursor was positioned using statements like SKIP>>.
The HIDE> statement should be executed directly in the statement that has set the list cursor in the line.
Using the HIDE> statement on a field symbol can cause runtime errors. The syntax check creates a warning. ABAP_HINT_END
Example ABAP Coding
Saving square numbers and cubic numbers for a list of numbers. The example shows that any variable can be stored independently of the line content. In the real world, one would more likely save only the number and execute the calculation, when required, in the event block for AT LINE-SELECTION>>. ABEXA 00315 ABAP_EXAMPLE_END