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

Place Cursor In Screen Fields

Former Member
0 Likes
1,294

Hi abapers and experts!

In my module pool screen there is

Date:

Department:

Username:

Password:

I want to place the cursor in Date field: after entering it, the cursor must automatically placed into Department.

Kindly help out as early as possible.

Thanks for ur valuable solutions.

Arvind NN

Hi abapers and experts!

In my module pool screen there is

Date:

Department:

Username:

Password:

I want to place the cursor in Date field: after entering it, the cursor must automatically placed into Department.

Kindly help out as early as possible.

Thanks for ur valuable solutions.

Arvind NN

8 REPLIES 8
Read only

Former Member
0 Likes
950

Hi,

in PBO

Use SET CURSOR FIELD 'DATE'

if you want this in table control add LINE LINE_NUMBER

is your date field meant for OUTPUT only ...> Check once

For more info Please go through the F1 help

Cheers

Ram

Read only

0 Likes
950

Thanks for ur reply.

The Date field can be edited also.

Rite now in my program the date field is set to todays date by default.

So When loading screen the cursor has to placed in Department.

User press enter after entering the department field cursor as to move automatically to User name field.

Kindly do me favourable

Read only

0 Likes
950

Hi,

in PBO

module STATUS_100.

In Program

module STATUS_100.

Use SET CURSOR FIELD 'DATE' ..> Replace DATE with DEPARTMENT

ENDMODULE.

if you want this in table control add LINE LINE_NUMBER

is your date field meant for OUTPUT only ...> Check once

For more info Please go through the F1 help

Cheers

Ram

Read only

0 Likes
950

Can u explain in brief ... Am using here is in screen field not for table control.

I need the solution make it success

Thanks in advance !!

Arvind nn.

Edited by: arvind nn on Oct 31, 2009 5:54 AM

Read only

0 Likes
950

Hi Arvind, Try this way. <li>Flow logic


PROCESS BEFORE OUTPUT.
  MODULE init_100.

PROCESS AFTER INPUT.
<li>Code for module init_100.

*----------------------------------------------------------------------*
*  MODULE init_100 OUTPUT
*----------------------------------------------------------------------*
MODULE init_100 OUTPUT.
  date = sy-datum.  "DATE -screen field for date
 " During PBO processing, SET CURSOR statement sets the cursor in the screen layout of the current screen.
  SET CURSOR FIELD 'DEPARTMENT'."DEPARTMENT is the screen field for the department
ENDMODULE.                    "init_100 OUTPUT
Thanks Venkat.O

Read only

0 Likes
950

Hi Venkat,

How to get Code as you are getting in this Thread and the Color? I tried using but not getting it. Please do this favour.

Cheers

Ram

Read only

0 Likes
950

Hello Ram, <li>Select the code and click on &lt; &gt; on the toolbar. Thanks Venkat.O

Read only

0 Likes
950

hi ,

you dont need any coding for this. this can be done by changing setting in the system.

Click on Customize local layout->options->cursor and tick automatic tabiing. this needs to be done for each user but this is very simple setting and user can do it by themselves.

regards

madhu