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

interactive report

Former Member
0 Likes
629

WHAT ARE THE ALTERNATIVE STATEMENTS IN HIDE.

I WANT CREATE INTERACTIVE REPORT BUT I DON'T WANT USE HIDE STATEMENT HOW TO CREATE I CREATE PLZ GIVE ME THE EXAMPLE .

5 REPLIES 5
Read only

Former Member
0 Likes
605

Instead of the HIDE statement you can use GET CURSOR statement. This is how u use it:

data: vfield(20), vvalue(20).

AT LINE-SELECTION.

GET CURSOR FIELD vfield VALUE vvalue.

loop at itab where <itab field> = vvalue.

<write output>

endloop.

Read only

Former Member
0 Likes
605

Hi,

You can you GET CURSOR and SY-LILLI and SY-LISEL instead of the HIDE

Regards

Sudheer

Read only

Former Member
0 Likes
605

hi

data f1 like mara-matnr.

data: it_mara like table of mara with header line.

select matnr into corresponding fields of table it_mara.

loop at it_mara.

write : / it_mara-matnr.

endloop.

// place cursor on any value.

at line-selection.

get cursor value f1. //this will store the value of the matnr in f1

write : / f1. //gets printed on secondary list.

hope this will help....

Read only

Former Member
0 Likes
605

hi,

use read line stmrt.

and write in at line selection.

data int type i.

<b>do 3 times.

int = sy-index.

write / int.

enddo.

at line-selection.

read line sy-lilli field value int.

write: int.</b>

regards,

Ananth.

Read only

Former Member
0 Likes
605

hi

u can use get cursor field also in case of interactive report.

but performance wise hide is better than getcursor field.

hide which stores only one record in sap memory stack .

but in case of get cursor fields all records are stored in sap memory stack.

in get cursor fields case sap memory has more burdon to store the data

comare to hide command.