‎2006 Dec 26 8:41 AM
hai friends
what happens if we use hide statement before write statement.
i want clear answer plz.
‎2006 Dec 26 8:44 AM
Hi ,
No problem . Only thing is that we should give the Hide stmt within
loop .. endloop .
Regards ,
Senthil
‎2006 Dec 26 8:49 AM
And usually HIDE statement is used before write (within a loop) in interactive reporting to get the data in a work area while triggering AT LINE-SELECTION event.
‎2006 Dec 26 8:49 AM
hi,
just execute this pgm.
report ztest_hide.
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.
write:/ itab-field.
format hotspot off.
endloop.
at line-selection.
write:/ 'You clicked', itab-field.Regards
Anver
‎2006 Dec 26 9:17 AM
Hi
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.
Regards,
navneet
‎2006 Dec 26 3:09 PM
hi
if u use hide keyword before write statement it can select only one record and atleast last record from interactive report o/p is for last record can display it is not dislapy o/p as per data select by user in interective report b/c we r reading data using loop ...endloop ( loop ..write ...hide..endloop) means data can transfer from I.T. body to I.T. work area .
so that o/p is for last record can display it is not dislapy o/p as per data select by user in interective report.
regard
deepak
‎2006 Dec 27 8:43 AM
hi,
u can use the hide statement before write,
but if u use the hide statement, the value on which ur clicking it wont hold
that one but instead of that it will hold the next value ie,
suppose ur having sales order number in ur basic list as
00001
00002
00003
00004
00005
if u click on 0003 and u r hide statement is before the write statment
then instead of storing 0003 it will store 0004.
regards.
Praveen