Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the significance of HIDE ?

Former Member
0 Kudos

What is the significance of HIDE ?

6 REPLIES 6

marilyn_pratt
Active Contributor
0 Kudos

You should do a search in the forums on the Keyword Hide as there are already many answers provided.

HIDE: it's a keyword used in Reporting for List Buffering contents to be made available in a workarea for later use. We think of HIDE as taking a contents and moving them into indexed buffers so that the contents can be recalled for later use on subsequent screen outputs.

This is an ABAP question, by the way.

If you are new to our community please: post in the appropriate place and use search.

0 Kudos

Hide is used in event AT-LINE SELECTION event.

It stores the value in memory & when user clicks on basic list the secondary list will be generated based on value hided.

Former Member
0 Kudos

HI,

You use the HIDE technique while creating a list level to store line-specific information for later use. To do so, use the HIDE statement as follows:

<b>HIDE <f>.</b>

This statement places the contents of the variable <f> for the current output line (system field SY-LINNO) into the HIDE area. The variable <f> must not necessarily appear on the current line.

To make your program more readable, always place the HIDE statement directly after the output statement for the variable <f> or after the last output statement for the current line.

WRITE: / spfli-carrid, spfli-connid,
                spfli-cityfrom, spfli-cityto.
  HIDE:    spfli-carrid, spfli-connid, num.

<b>AVL'S doesn't support HIDE technique.</b>

regards,

Ashokreddy.

Message was edited by:

Ashok Reddy

Former Member
0 Kudos

Syntax

HIDE dobj.

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.

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. 

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.

Girish

Former Member
0 Kudos

hi das,

just check this pre defined program(demo_list_hide) to understand the synificance of the <b>hide</b> keyword.

reward points if useful,

regards,

seshu.

Former Member
0 Kudos

Hi,

Hides the contents of the field f in relation to the current output line. If you select this line, the system automatically assigns the hidden value to f .

Such a selection may result from any of the following:

AT LINE-SELECTION AT PFx AT USER-COMMAND READ LINE

To hide the contents of a field, you do not need to output the field beforehand with WRITE

Refer the demo program: for sample code:

<b>demo_list_hide</b>

Regarsd