Significance of Hide?

Answer Posted / shreeshaildiggi

Syntax
HIDE SHREE.

Effect
This statement stores the content of a variable SHREE
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 SHREE 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.

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.

Thank's and Regards
Shreeshail Diggi
SAP Technical Consultant Infinite India

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to see the tables of 200 in client 100?

1607


How many main windows will be there in a page window?

751


What is abap?

813


How to write a code for multiple transactions? : abap bdc

755


What is technically difference between in Table creation in table creation maintenance not allowed ,maintenance allowed with restriction, maintenance allowed ?

1442


What does the extract statement do in extract datasets? : abap modularization

789


What are pool tables?

843


I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management

1974


What are the organizational related Infotypes

1784


Double click function on the lists, identifying the line selected by the user on the list?

829


Which transaction code can I use to analyze the performance of abap program?

767


How do you display a data in a detail list?

774


Explain the advantages of different types of bdc's?

738


How do you find out who has transported a transport request?

847


What is the use of start-of-selection.,if not use in report what will happen,?

1419