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

parameter

Former Member
0 Likes
460

hi abapers,

iam using four parameters in selection screen,

by default the cursor is in the first position.

but i want to place the cursor in the last parameter to enter any text or value .

how can i over come this ?

Thanks & Regards,

Rajesh

1 ACCEPTED SOLUTION
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
436

hi ,

parameters : p1(10) type  c,
                            p2(10) type  c,
                            p3(10) type  c,
                            p4(10) type  c.
intialization. 
         SET CURSOR FIELD P4.

Regards ,

3 REPLIES 3
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
437

hi ,

parameters : p1(10) type  c,
                            p2(10) type  c,
                            p3(10) type  c,
                            p4(10) type  c.
intialization. 
         SET CURSOR FIELD P4.

Regards ,

Read only

vinod_vemuru2
Active Contributor
0 Likes
436

Hi Rajesh,

Check below example.


PARAMETERS: po_1 TYPE c,
po_2 TYPE c,
po_3 TYPE c,
po_4 TYPE c.

AT SELECTION-SCREEN OUTPUT.
  SET CURSOR FIELD 'PO_4'.   " This is the one which is doing the trick

Thanks,

Vinod.

Read only

Former Member
0 Likes
436

Hi,

We can use SET CURSOR FIELD syntax to place the cursor on intended field and it should be written on selection screen output event.

AT SELECTION-SCREEN OUTPUT.
  SET CURSOR FIELD 'PO_4'.

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION.

thanx.