Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hide statement

Former Member
0 Likes
662

hai friends

what happens if we use hide statement before write statement.

i want clear answer plz.

6 REPLIES 6
Read only

Former Member
0 Likes
628

Hi ,

No problem . Only thing is that we should give the Hide stmt within

loop .. endloop .

Regards ,

Senthil

Read only

Former Member
0 Likes
628

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.

Read only

anversha_s
Active Contributor
0 Likes
628

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

Read only

Former Member
0 Likes
628

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

Read only

Former Member
0 Likes
628

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

Read only

Former Member
0 Likes
628

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