Application Development 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: 

Set cursor with field content selected

jitendra_it
Active Contributor
0 Kudos

Hello,

I have a custom module pool in which I am using set cursor field command to set cursor at production order field.

Requirement is to select field value so that another value(production order) can be entered in it directly without deleting existing one.

Thanks for your help.

4 REPLIES 4

amy_king
Active Contributor
0 Kudos

Hi Jitendra,

That isn't supported unfortunately. You can set the cursor position within the field using OFFSET but can't select the field's value.

SET CURSOR FIELD field_name OFFSET cursor_position.

Cheers,

Amy

0 Kudos

Hello Amy,

Thanks for your answer. I see that is happening in SE38/SE24. Enter a program name and display it and then go back.

Program name will be selected so that next program can be entered. I tried to debug it but no able to find where standard code is selecting field's value.

amy_king
Active Contributor
0 Kudos

Hi Jitendra,

That behavior is built into the GUI but AFAIK cannot be replicated programmatically. You should see the same behavior in your dynpro screen-- with the cursor in that field, if you hit enter the field's full value will get selected.

Cheers.

che_eky
Active Contributor
0 Kudos

If you have finished with the previous production order value then why not clear it and then position the cursor?