Skip to Content
avatar image
Former Member

Setting Initial Cursor Location in Personas 2.0

Personas Experts:

I cannot figure out how to set the initial cursor location/field after I enter a transaction in Personas.

For example, in transaction MFBF, the default field is set to the "BackFlush Quantity", but I want it to open on the "Material" entry field.

I have set the tab order in the Properties to have "Material" as the 1st tab stop, but it continues to start in the wrong field.

Can anyone tell me how to set this default?

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 22, 2015 at 05:38 PM

    Hi Jason,

    You can use a script to do so.

    Just use the "Focus" action.

    The help says:

    "...

    Use this action to move the focus around the screen

    deliberately - this can be useful to ensure that a specific field

    or button is selected after the execution of a script.

    ..."

    I hope this helps,

    Cris

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Cristiano Hansen

      I only needed to be more persistent in my Googling...  Found out how to launch a script immediately upon a screen starting.  To do this:

      1) Create a script button, as described above to perform the actions you wish.

      2) Click on the new button to get the ID from the "Properties" section of the screen

      3) Copy the ID

      4) Click on the background (or "UserArea")

      5) In the properties section, paste the script button ID into the "OnCreateHandler" variable.

      Done!  Now when the t-code is called, the script button is automatically pressed!  Now to hide the button so make the screen look pretty!

      Thanks Chris for kick-starting my journey!