cancel
Showing results for 
Search instead for 
Did you mean: 

SET CUROSOR FIELD xxx OFFSET yyy doesn't work with filled field and/or without debugging

GRI
Explorer
0 Kudos

Hello ABAPers,

My requirement is to get cursor at the end of a field in my dynpro.
So I use (in my PBO):

 

SET CURSOR FIELD my_field OFFSET my_offset.

 

It works well when my field is empty : (for this example, i use 3 as offset (on a 50 field char length) :
GRI_0-1711008634982.png

But as soon as I filled with content this field, all the content became selected :
Even if a put more or less char than the offset.

GRI_2-1711008776780.png
GRI_3-1711008796037.png

I dont want the user to do an action for getting at the end of the field.
Fun fact, if I put a breakpoint anywhere, It works !

GRI_4-1711008882283.png

I don't understand why.
I have same behaviour in demo program DEMO_DYNPRO_SET_CURSOR.

Thanks for any help.

Sandra_Rossi
Active Contributor

Try the SAP GUI options related to cursor.

Sandra_Rossi_0-1711012918020.png

 

GRI
Explorer
0 Kudos

@Sandra_Rossi

Yes it was exactly that option. Thanks a lot.
Automatically select complete .... (INS).

GRI_0-1711014328894.png


Can I accept your comment as anwer or do you need to post it again but not via comment ? I dont seem to have this option :

GRI_0-1711014557827.png

 

Sandra_Rossi
Active Contributor
0 Kudos

Well, I was not sure. Finally, you answered by yourself so you can post your own answer, and accept your solution 😉

Or maybe I can post the screenshot in English.

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

SAP GUI Options > Interaction Design > Keyboard Settings > Deactivate "Automatically select complete value when entering a field in insert mode (INS)"

Sandra_Rossi_0-1711015131664.png

 

Answers (0)