Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Module Pool Programming

Former Member
0 Likes
347

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

3 REPLIES 3
Read only

Laxmana_Appana_
Active Contributor
0 Likes
324

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

Read only

0 Likes
324

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

Read only

Former Member
0 Likes
324

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