09-07-2008 2:57 PM
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
09-07-2008 3:11 PM
hi ,
parameters : p1(10) type c,
p2(10) type c,
p3(10) type c,
p4(10) type c.
intialization.
SET CURSOR FIELD P4.
Regards ,
09-07-2008 3:11 PM
hi ,
parameters : p1(10) type c,
p2(10) type c,
p3(10) type c,
p4(10) type c.
intialization.
SET CURSOR FIELD P4.
Regards ,
09-07-2008 3:29 PM
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.
09-08-2008 6:16 AM
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.