02-17-2006 12:33 PM
Hello,
I'm developing application using dialog programming. How can I set focus to a certain GUI element on screen?
Can It be done by table SCREEN? I didn't found field of this table which can accomplish this requirement.
Best regards,
Josef Motl
02-17-2006 12:34 PM
Hi josef,
1. SET CURSOR Field f.
(see f1 help on it)
regards,
amit m.
02-17-2006 12:43 PM
from F1(help) for SET abap statement...
Variant 1
SET CURSOR FIELD f.
Extras:
1. ... OFFSET off
2. ... LINE line
Effect
Places the cursor dynamically at the start of the field g which is specified in the field f. You must specify the name of the field in uppercase letters.
Note
With step loops and in list processing, you also need the addition ... LINE line.
Addition 1
... OFFSET off
Effect
Offsets the cursor position by off columns from the start of the field g which is specified in the field f (1st column = 0).
Addition 2
... LINE line
Effect
Places the cursor whose value is specified in field f in the field g of the loop line line in a step loop. In list processing, the cursor is placed in the absolute list line line (SY-LILLI).
Notes
Specifying LINE line is possible only with step loops and in list processing. In these cases, it is necessary.
The name specified in the field f must be a global field. For field symbols and reference parameters, you must use the name of the global field which is assigned to the field symbol or parameter at the time of output (i.e. with "WRITE").