Skip to Content
0
Former Member
Jul 03, 2009 at 10:04 AM

Problem with SET CURSOR command

37 Views

Hello Experts,

I am trying to clear all the text fields & set the cursor to first filed in a selection .. Al these will be excuted when a pushbutton is clicked...But i am able to clear the field but CURSOR is not going back to the first field...it remains in the last field which is being edited before clear operation...

the code i have written :

PARAMETERS : gd_comm like SY-UCOMM DEFAULT 'submit' NO-DISPLAY.

AT SELECTION-SCREEN.

if Sscrfields-ucomm eq 'submit'.

gd_comm = 'submit'.

endif.

AT SELECTION-SCREEN OUTPUT.

if gd_comm EQ 'submit'.

clear : course , Strt_dat , End_dat , EMP_ID, Emp_name, Location, usage.

set CURSOR FIELD 'course'.

endif.

Please help...