Skip to Content

Set cursor with field content selected

Apr 12 at 10:31 AM


avatar image


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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Surbjeet Dhillon Apr 12 at 03:37 PM

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

10 |10000 characters needed characters left characters exceeded
Amy King Apr 12 at 12:25 PM

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.



Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.


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.