Application Development 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: 

parameter

Former Member
0 Kudos

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

Mohamed_Mukhtar
Active Contributor
0 Kudos

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

Mohamed_Mukhtar
Active Contributor
0 Kudos

hi ,

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

Regards ,

vinod_vemuru2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.