2006 Oct 01 11:35 AM
Hi..friends plz do let me know about this HIDE statement .
1.which variable is used by the system in which this HIDE statement hide the content n when we double click on it it release the information.
2.is it a system variable or variable defined in programe.
Hi..friends plz do let me know about this HIDE statement .
1.which variable is used by the system in which this HIDE statement hide the content n when we double click on it it release the information.
2.is it a system variable or variable defined in programe.
2006 Oct 01 11:45 AM
hi salony,
chk this.
HIDE
Basic form
HIDE f.
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Constants not allowed in HIDE area.
Effect
Retains the contents of f related to the current output line. When the user selects the line from the list f is automatically filled with the retained value.
The selection can occur in:
AT LINE-SELECTION
AT PFx
AT USER-COMMAND
READ LINE
The contents of the field do not have to have been displayed using WRITE in order for you to retain them.
The HIDE statement does not support deep structures (structures that contain internal tables).
Useful system fields for interactive reporting are listed in the System Fields for Lists documentation.
Note
Lines or components of lines of an internal table that you address using a field symbol (see ASSIGNING addition to the READ and LOOP statements), cannot be retained using HIDE. You can store them using a global variable instead.
Note
Runtime errors:
HIDE_FIELD_TOO_LARGE: The field is too long for HIDE.
HIDE_ON_EMPTY_PAGE: HIDE not possible on an empty page.
HIDE_NO_LOCAL: HIDE not possible for a local field.
HIDE_ILLEGAL_ITAB_SYMBOL: HIDE not possible for a table line or component of a table line.
and also a sample program.
report zxy_0003.
data: begin of itab occurs 0,
field type c,
end of itab.
itab-field = 'A'. append itab.
itab-field = 'B'. append itab.
itab-field = 'C'. append itab.
itab-field = 'D'. append itab.
itab-field = 'E'. append itab.
loop at itab.
format hotspot on.
write:/ itab-field.
hide itab-field.
format hotspot off.
endloop.
at line-selection.
write:/ 'You clicked', itab-field.
It kind of "remembers" what is written, so that when you click on it, it knows what the value is.
Please remember to award points and mark as solved if your question has been answered. Thanks.
Regards,
anver
if helped pls mark points
2006 Oct 01 12:19 PM
Hi
HIDE statament is to store the string value of a line u need to know by doubleclick:
LOOP AT ITAB.
WRITE: ITAB-FIELD1, ITAB-FIELD2,
ITAB-FIELD3,...ITAB-FIELDN.
HIDE: ITAB-FIELD1, ITAB-FIELD2.
ENDLOOP.
In this way only the field2 and field2 are stored in memory by doubleclick.
U can know all values of selected line seeing the system variable SY-LISEL, but here u find whole value:
AT LINE-SELECTION.
CHECK NOT ITAB IS INITIAL.
WRITE: ITAB, / SY-LISEL.
Max
2006 Oct 01 12:36 PM
Hi prashanth,
1. is HIDE area is a table?
Not is not a table.
It is just like a list (used with write statement)
the difference is, its not writen on screen,
instead it is STORED in memoery. (Line by line)
Just as we use write, we use
HIDE variablename.
and the value of the variable is STORED in memory
on the particular line number.
(we can retrive its value , on that particular
line number, when we doubl-click on the line
which is displayed using write)
2. for getting the taste of it ,
use this program (just copy paste)
(it will show u hidden fileds)
(it will display 2 lines, then on double-clicking,
it will show the hidden values 1000,2000)
REPORT abc.
DATA : a(10) TYPE c.
DATA : b(10) TYPE c.
a = '1000'.
b = 'mittal'.
WRITE : b.
HIDE a.
a = '2000'.
b = 'hello'.
WRITE 😕 b.
HIDE a.
AT LINE-SELECTION.
WRITE 😕 'hidden field a is : ' , a.
regards,
amit m.
2006 Oct 01 1:35 PM
hi
when ever some interaction takes place,system recognises the value of sy-lisnd and sy-lisel. then it cheks the value of the field in the HIDE table and then copies the same so that it can b used in any other secondary lists.
This is the basic funda happening with the HIDE stmt.
sample coding, can refer 2 above posts.
and HIDE can be declared in the loop of the final Itab just after the write stmt.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |