cancel
Showing results for 
Search instead for 
Did you mean: 

how to set cursor in a specific field

Former Member
0 Kudos
546

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.