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

diff between read line and get cursor

Karan_Chopra_
Active Participant
0 Likes
731

what is the diff between read line and get cursor

5 REPLIES 5
Read only

Former Member
0 Likes
656

READ LINE

Use the statements READ LINE and READ CURRENT LINE to read data from the lines of existing list levels. These statements are closely connected to the HIDE technique.

GET CURSOR

Use the statements GET CURSOR FIELD and GET CURSOR LINE to pass the output field or output line on which the cursor was positioned during the interactive event to the ABAP program.

Read only

Former Member
0 Likes
656

hi ,

read line is used to reading the line content which are clicked or selected .

regards,

venkat.

Read only

Karan_Chopra_
Active Participant
0 Likes
656

i have these ans but it does not tell me the exact diff

it looks similar in both cases

u have just given the definintion

Read only

vinod_vemuru2
Active Contributor
0 Likes
656

Hi Karan,

READ LINE is used to read a line from the list output. here u can read any line by specifying the line number and also from any child list by specifying INDEX. But this not possible in case of GET CURSOR which will get the contents of the line where we clicked. By READ line we can read any line of any page, But this is not possible with GET CURSOR.

Also check below variants of read line(F1 help). U will get more information.

1. READ LINE line.

2. READ LINE line OF CURRENT PAGE.

3. READ LINE line OF PAGE pag.

4. READ CURRENT LINE.

Hope this clarified ur doubt.

Thanks,

Vinod.

Read only

Former Member
0 Likes
656

Karan,

This of this if this helps to understand the nature of these statmet execution.

READ CURSOR is strictly sequential and the selcted row can be controlled from the SELECT associated with CURSOR.

READ LINE is read any line and does not have to be sequential.

Hope this adds some light to understanding...

Goodluck,

Alex.