‎2006 Feb 20 6:05 AM
HI,
I WANT TO KNOW WHICH ONE IS BETTER TO BE USED IN INTERACTIVE REPORT ONH THE EVENT AT-LINE SELECTION.
1.READ LINE FIELD VALUE
2.HIDE STATEMENT.
‎2006 Feb 20 6:13 AM
No need of using HIDE statement in the event AT LINE-SELECTION.
it can be used outside this event.the prerequisite for this is an ouput statement. let it be write statement!!
HIDE statement retains the current ouput values.
READ LINE must be used in AT LINE-SELECTION and should be used inside LOOP.
i think performance wise there will be no difference but READ LINE has got more advantages than HIDE.
the main draw back with hide is the o/p should in the same line.
‎2006 Feb 20 6:15 AM
hi,
it is better to use
at line-selection.
<b>get cursor field <fld> value <val></b>
if fld = 'ITAB-FIELD'.
"DO SOME THING..
ENDIF.REGARDS
VIJAY
‎2006 Feb 20 6:15 AM
hi Manish,
HIDE Statement is generally used in write statements it is not used in AT-LINE-SELECTION.
Regards,
Santosh
Reward points if it is helpful
‎2006 Feb 20 6:16 AM
hi,,,
browse this link..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm
go through use it according to ur requirements needs.....
regards,
padma.
‎2006 Feb 20 6:17 AM
HI Manish
Both has it own advantages.
Read Line can be useful if you want some specific lines values want to be stored you implemenmt some logic using read statement. Even Read statement can store the values in Hide statement to their respective variables.
This statement assigns the content of a row stored in the list buffer to the system field sy-lisel, and allows other target fields to be specified in result. In addition, all values for this row stored with HIDE are assigned to the respective variables.
The row to be read is specified with the addition LINE or with CURRENT LINE.
Hide:
HIDE dobj.
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.
<b>for a simple interactive report you can use HIDE statement.</b>
regards
kishore.
‎2006 Feb 20 6:40 AM
Hi Manish,
1.You can think of the HIDE area as a table, in which the system stores the names and values of
all HIDE fields for each list and line number. As soon as they are needed, the system reads the
values from the table.
2.To read a line from a list after an interactive list event, the READ LINE statement is used..
3.As far as SY-LISEL and the HIDE area are
concerned, READ LINE has the same effect as an interactive line selection.
regards
satesh
‎2006 Feb 20 9:14 AM
HI
HIDE IS THE FUNDAMENTAL STATEMENT IN THE INTERACTIVE REPORTING USED FOR CREATING BASIC LIST
HIDE <f> THIS STATEMENT PLACE THE CONTENTS OF THE VARIABLE <f> FOR THE CURRENT OUTPUT LINE INTO THE HIDE AREA.
THUS <u>HIDE</u> IS USED TO GET LINE SPECIFIC INFORMATION.
READ LINE IS USED TO READ THE DATA FROM THE LINES OF EXISTING LIST LEVELS. TO READ A LINE FROM A LIST AFTER AN INTERACTIVE LIST EVENT, USE THE <u>READ LINE</u> STATEMENT.
if this finds useful please reward points
REGARDS
ANOOP
‎2006 Feb 20 9:27 AM
Hi,
The HIDE statement is one of the fundamental statements for interactive reporting. You use the HIDE technique when creating a basic list. It defines the information that can be passed to subsequent detail lists
HIDE <f>.
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
READ LINE:
All of the lists generated by a single program are stored internally in the system. You can therefore access any list in a program that was created for the same screen and that has not yet been deleted by returning to a lower list level. To read lines, use the statements READ LINE and READ CURRENT LINE.
To read a line from a list after an interactive list event, use the READ LINE statement:
READ LINE <lin> [INDEX <idx>]
[FIELD VALUE <f1> [INTO <g 1>] ... <f n> [INTO <g n>]]
[OF CURRENT PAGE|OF PAGE <p>].