Skip to Content
author's profile photo Former Member
Former Member

Module pool

Hi,

I have 3 text boxes and 2 text areas.When the screen opens as soon as when we give t.code it will point the cursor in the first text box.When i press the tab means it will go to the next text box.

But after it reaching the 3rd text box.It is pointing to the text area.But i need a short cut key which will take the cursor to the next text area.

How to do this.Please help me to solve this

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 09:06 AM

    use SET CURSOR FIELD 'T001W-WERKS'

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2009 at 09:21 AM

    Hi,

    To set the cursor position dynamically, use the following statement in an ABAP dialog module in

    the PBO event:

    SET CURSOR FIELD <f> [OFFSET <off>].

    <f> can be a literal or a variable containing the name of a screen element. You can use the

    OFFSET addition to place the cursor at a particular point within an input/output field.

    Regards

    Abhinab Mishra.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2009 at 09:23 AM

    Hi Ramya,

    Check the code in this thread. it might be useful.

    how-to-change-the-sequence-of-fields-accessed-with

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 09:31 AM

    Hi Ramya,

    This is a frequently encountered problem and SAP has given various events ex for setting the cursor position dynamically, we have

    SET CURSOR FIELD <screen_element> [OFFSET <offset>].

    in the PBO field since it gets triggered before any user interaction.

    <screen_element> is either a literal or a variable having the name of a screen element.

    For ex: if you want to place the cursor at a point w r t an i/p or o/p field

    we use <offset> .

    Thanks and Regards

    Srikanth.P.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.