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 hide statement do

Former Member
0 Kudos

hi gurus,

can anyone inform me what is hide statement do

for which purpose we use that one

thank you,

kals.

6 REPLIES 6

Former Member
0 Kudos

Hi

Hide

To prevent the user from selecting invalid lines, ABAP/4 offers several possibilities. At the end of the processing block END-OF-SELECTION, delete the contents of one or more fields you previously stored for valid lines using the HIDE statement. At the event AT LINE-SELECTION, check whether the work area is initial or whether the HIDE statement stored field contents there. After processing the secondary list, clear the work area again. This prevents the user from trying to create further secondary lists from the secondary list displayed.

Regards

Anji

Former Member
0 Kudos

HI,

Hide f.

the contents of f related to the current output line are stored. If this line is selected, f is filled automatically with the stored value.

rgs

Former Member
0 Kudos

hi,

Hide will keep the field's contents in memory, when you click on this, it will take positon you clicked on field, not the value.

This is very much useful to avoid tampering of data in interactive reporting.

disadvantage is if you have large number of records, it will take lot of memory and performance also becomes low

regards,

pavan

Message was edited by:

pavan kumar pisipati

Former Member
0 Kudos

Syntax: HIDE dobj.

Effect

This statement stores - in the current list level - the content of the variable dobj together with the current list line whose line number is contained in sy-linno. 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.

Notes

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, constants and literals that cannot be read in list results and in the statement READ LINE can be specified for dobj outside of classes

From Std help..

Reward all helpful queries

Former Member
0 Kudos

Hi

The HIDE keyword is used to store data objects and their values so they can be made available when the User selects a report line. When a line is selected, the fields that were hidden are filled with the values that you hid for that line.

The user selects a line for which

data has been stored in the HIDE

area. The runtime system evaluates

field SY-LILLI to determine the

selected line.

The runtime system jumps to the

point in the HIDE area where data

for this line is stored.

The runtime system then inserts all

values stored for the selected line in

the HIDE area into their

corresponding fields.

The runtime system processes the

event AT LINE-SELECTION and

its corresponding program

processing block.

A detail list is created.

<b>Reward if usefull</b>

Former Member
0 Kudos

In interactive report, u want to click on a line and go to a second screeen.

so u need to get on which line user had clicked so that u can populate second csreen accordingly.

so each and every line item u hide the value say order number.

in AT-LINE SELECTION event u can use READ LINE and retrieve the value u stored in that line using hide

*reward if answered