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

Former Member
0 Likes
403

what is the actual purpous of HIDE statement in interactive reports

3 REPLIES 3
Read only

Former Member
0 Likes
385

Hi...

what ever you have defined in hide statement ....when ever you clicks a perticular line ...it temparerly stores the value in hidden mode....if specified a single field it stores that valuse or if specified whole internal table it stores that whole row...

Read only

Former Member
0 Likes
385

Hide statement - It stores the temporary data and displays in secondary list.

Hide statement works for only in reports(List Wise ).

Here temporary data - user clicks on line ,it assumes current line and displays in secondary list.

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
385

hi,

We can use HIDE technique while creating LIST level to store line -specific information for later use.

syntax: <b>HIDE <variable>.</b>

this statement place the contents of the variable <variable> for the current output line(SY-LINNO) into the HIDE area.

you can think of the HIDE area as a table, in which the system stores the field name, field contents and line number in which field exisisting. as soon as they are needed the system reads the values from the table(HIDE) using READ LINE statement.

<u><b>Keep in mind while working with HIDE.</b></u>

1) <b>Allways keep HIDE <variable> statement after WRITE statement for more readable format.</b>

2) <b>All way keep HIDE <variable> statement inside the LOOP statement, because syatem stores all the hide variable in system genarated table space, we can process table data throug it's work area only.</b>

<b>Sample Program.</b>

Report Zreport_hide.

*table work area
tables: lfa1,ekko,ekpo.

*selection-screen logic
select-options: s_lifnr for lfa1-lifnr obligatory.

*logic for creating internal table
data: begin of it _lfa1 occurs 0,
              it_lifnr like lfa1-lifnr,
              name1 like lfa1-name1,
       end of it_lfa1.

data: begin of it _ekko occurs 0,
              it_ebeln like ekko-ebeln,
              aedat like ekko-aedat,
       end of it_ekko.

* logic for genarating basic list
start-of-selection.
 select lifnr name1 from lfa1 into table it_lfa1   where lifnr  in s_lifnr.

*processing the data.
loop at it_lfa1.
write:/ it_lfa1-lifnr,
          it_lfa1-name1,'
          HIDE it_lfa1-lifnr.  "here hide the varible lifnr
endloop.

*logic for genarating secondary list
at line-selection.
case sy-lsind.
when 1.
select ebeln aedat from ekko into table it_ekko   where lifnr = it_lfa1-lifnr.

*processing seconadry list data.
loop at it_ekko.
write:/ it_ekko-ebeln,
          it_ekko-aedat,
 endloop.

regards,

Ashokreddy.

Message was edited by:

Ashok Reddy