Skip to Content
author's profile photo Former Member
Former Member



explain the HIDE technique

in report programing and its use

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2007 at 09:44 AM


    <b>The HIDE Technique</b>

    You use the HIDE technique while creating a list level to store line-specific information for later use.


    HIDE <f>.

    This statement stores the contents of variable <f> in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable <f> need not necessarily appear on the current line.

    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      A HIDE memory area exists for each list in an interactive report - even if an explicit HIDE statement is not coded for that list. The HIDE memory area becomes populated with data when the system encounters the HIDE statement followed by program fields.

      The “HIDE” statement writes data from the program work area to a special area in memory. We will call this area in memory the “HIDE memory area”.

  • Posted on Aug 17, 2007 at 09:37 AM


    have a look at this:



    HIDE dobj.


    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 no field symbols can be specified that point to rows of internal tables, and no class attributes can 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 the event block for AT LINE-SELECTION.

    REPORT ...

    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.

    Add comment
    10|10000 characters needed characters exceeded