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

how to set cursor in a specific field

hi ABAPers

i have 5 fields in the screen

i want set the cursor in the 3rd field

how to set the cursor..

i have tried with

SET SURSOR FIELD wa_matnr.

and

SET CURSOR FIELD wa_matnr OFFSET 5.

i have given these two statements . but i didn't get the answer...

please give me the answer..

Regards

venkatesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 07:12 AM

    Hi,

    hope this will help you out.

    To set the cursor to a certain field on a line of the displayed list, use:

    SET CURSOR FIELD f LINE lin [OFFSET off].

    This statement sets the cursor on line lin onto the field whose name is stored in f. If a field appears more than once on a line, the system sets the cursor to the first field. If the field does not appear on the line or if it is outside the displayed area, the system ignores the statement. You can use the SCROLL statement to scroll the line into the visible area of the screen.

    Use the OFFSET option to set the cursor to position off of the field stored in f. off = 0 indicates the first digit.

    When you set the cursor, you must take into account the header lines of the list.

    And also you can refer to this link..

    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba47e35c111d1829f0000e829fbfe/content.htm

    Regards,

    Razia.

    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.