Skip to Content
-1

Set cursor with field content selected

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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?

    Add comment
    10|10000 characters needed characters exceeded

  • 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.

    Cheers,

    Amy

    Add comment
    10|10000 characters needed characters exceeded

    • 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.