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

Regarding Cursor Position

Former Member
0 Likes
783

Hi Gurus,

How can we set a cursor on same field, like my scenario is when i press Enter after entering the values into the field the cursor is always moving to first field of the current screen. but i want the cursor to be there in the field in which i have pressed enter key to calculate the total.

Waiting for ur reply....

-


Regards

Srinath

5 REPLIES 5
Read only

Former Member
0 Likes
736

Hi

Use SET CURSOR FIELD FIELD_NAME in PBO

for More info please take F1 help on the above key word

Please search before you post as this has been answered many a times

Regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Dec 22, 2008 11:28 AM

Read only

Former Member
0 Likes
736

HI,

search in SCN before posting

there is lot of thread regarding this

[set cursor|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=set+cursor&adv=false&sortby=cm_rnd_rankvalue]

Read only

Former Member
0 Likes
736

Dear,

Use GET CURSOR in PAI where you will find the present status of your cursor position, then after use SET CURSOR in PBO using the same variables used in GET CURSOR.

This will solve your problem 100%.

Dont use line variant for GET/SET CURSOR, because it is used for table control.

Regards,

Vicky M. Khambhati

Read only

0 Likes
736

Hi

How can i store the current status of cursor? like if i press enter in one field the cursor shud be there only and when i press enter in another field the cursor shud be there only.. so hw can i store the current field name in which the cursor is ?

Waiting for ur reply...........

Regards

Srinath

Read only

0 Likes
736

Hi

If you are trying to set the cursor on a table control

declara a variables in top include

data : fname type char40.

data lin type i.

First in PAI get the cursor position

GET CURSOR FIELD FNAM LINE LIN.

in PBO set the cursor position again

SET CURSOR FIELD FNAM LINE LIN

if not on a table control just remove addition line from the above code.

for more info Please go through the F1 help

Regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Dec 23, 2008 5:17 AM