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

get cursor position

Former Member
0 Likes
847

hi!

i have written a table screen . when i reach the last line of the first page, i need the cursor to stand on the first line of the next page in the first colmun.

i set the <table-control>-top line to 20 ( i have 19 lines per page) and the i use command set cursor <field>

line lines.

after that i use command get cursor <fieldname> line line, and i get empty fields.

whet might be the problem?

regards

yifat

4 REPLIES 4
Read only

Former Member
0 Likes
596

If i remember, set cursor and get cursor work in reporting, no in module pool

Read only

Former Member
0 Likes
596

HI Yifat,

I think the fields will be visible once you scroll up again.

Refer the program RSDEMO_TABLE_CONTROL to know how they handled cursor positions in table control.

Regards,

Ravi

Read only

0 Likes
596

SET CURSOR and GET CURSOR definitly do work in module pool(dynpro) programs. I have used extensively.

Regards

Rich Heilman

Read only

sridhar_k1
Active Contributor
0 Likes
596

Are you using SET cursor in PBO, make sure the field name is in upper case. Check sy-subrc after GET cursor.

By default in table control, after page down, the cursor stays in the first field.

Regards

Sridhar