Application Development and Automation 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: 
Read only

regarding hide statement

Former Member
0 Likes
800

hi experts,

*all users are requested to plz read my query carefully then send me any ans......

cud u plz tell me why we put hide statement just after the <b>write statement</b>....what is the basic concept of using like this.....

*plz dnt send me from net what is hide statement etc,,,try to explain it in your words.....

Message was edited by:

ravi

7 REPLIES 7
Read only

Former Member
0 Likes
754

When you say

<b>Hide F</b>

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

Read only

Former Member
0 Likes
754

Hi

<b>HIDE</b>

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>

Read only

Former Member
0 Likes
754

HIDE dobj.

Effect

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.

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, 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.

Example

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.

Regards

Vasu

Read only

Former Member
0 Likes
754

Hi folk,

Hide statement is generally used while creating classical reports.

Especially in the case of interactve classical reports.

For eg, In a report u have to display a list of employee attendance sheet,

Whereas if we double click a particular employee, it has to take u to another report like employee personal details, in that case we will hide a particular field using hide statement after write statement.

Please reward if useful.

Thanks and regards,

shori...

Read only

Former Member
0 Likes
754

Hi

HIDE

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.

if helpful reward some points.

with regards,

Suresh Aluri.

Read only

0 Likes
754

HIDE is used when you are using interactive list. On the list, when you click on some value, you need to store the value in some field. You can use system commands to get the line and read it OR

you can use HIDE statement.

While looping the final table to be written on the list, before the write statement, when you give HIDE statement, then the value gets stored in that variable.

HIDE.

write:/itab-matnr.

Now, the value you clicked on will be stored in itab-matnr.

Read only

paruchuri_nagesh
Active Contributor
0 Likes
754

hi

hide statement maintain internal table in system area

with the following fields

sy-lsind

field name

field value

regards

Nagesh.Paruchuri