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

Explain the disadvantages of different types of bdc's?

510


How can we access the correction and transport system? : abap data dictionary

582


Is main window mandatory in smartforms?

713


Why grouping of fields is required? What is the max no of modification groups for each field?

552


How do you work with semi colon se[arated files in BDC ?

1447






Explain the difference between tables and structures?

477


Explain what are the problems in processing batch input sessions?

531


We have got some values for Field F1 say 1,2,3,4 and F2 say 10,10,10,10.Now can you tell me what would be the output for F1 if we use At End Of event?and what would be the output for F2 if we use At Last event?Also i want to know what is the difference between Total calculation for At end event and grand total for At last event???

1673


How to upload data using catt ? : abap hr

604


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary

735


Why do we use abstract class

1021


What is a subroutine?

590


1. If I send 5 entries of table from one system to another system, if the only 4 entries there in the target system what I have to do? 2. If I send the customer master IDOC from one SAP system to another system, if one field is missing in target table what is the steps? 3. If I want to access the 4th row 3rd column in the hashed table how to do it? 4. Whether there is any other statement than MODIFY statement to modify the content of internal table?

1406


What is the meaning of abap/4 editor integrated with abap/4 data dictionary?

629


How to create a button in selection screen ?

1481