‎2007 Apr 20 4:18 PM
Dear All,
I have developed a screen in a module pool program. In this screen if user enters some value in an i/p field of the screen and then presses the keyboard button "Enter" the the cursor position will go the next i/p field of the same screen. what should i do to achieve the above requirement? Eagerly waiting for reply.
Regards,
Pulokesh
‎2007 Apr 20 4:23 PM
Hi,
Use SET CURSOR FIELD
1.SET CURSOR FIELD f.
2. SET CURSOR LINE line.
3. SET CURSOR col line.
Effect
Sets the cursor dynamically in display (screen program or list).
Variant 1
SET CURSOR FIELD f.
Additions:
1. ... OFFSET off
2. ... LINE lin
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.
Regards
L Appana
‎2007 Apr 20 4:48 PM
Hi,
In the PAI module i have written the code:
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'ENTR'.
SET CURSOR FIELD TEXT2.
ENDCASE.
the screen has two i/p fields TEXT1 and TEXT2. If I enter some value in TEXT1 and press keyboard "Enter" the the cursor should have gone to the TEXT2 field. But its not working. Waiting for reply.
Regards,
Pulokesh
‎2007 Apr 20 4:50 PM
Hi
Check for sy-ucomm of Enter code in PAI code
and then get cursor field f (First field).
Check this field not to be initial
& then set cursor field fnew (New Field)
Thanks
Sandeep
Reward if helpful