11-07-2008 3:53 PM
Could you please give idea of how can I go back to selection screen if wrong mail id entered ( if possible cursor should go to the email id field where wrongly entered ?) ?
AT SELECTION-SCREEN .
*Emailid validation.
IF NOT s_mail1[] IS INITIAL.
LOOP AT s_mail1.
*-----If email id entered on the selection screen doesnot contain
*'@' and '.', then give relevent message to user as popup.
IF s_mail1-low NA '@' OR s_mail1-low NA '.'.
MESSAGE i038(zs) WITH 'Please enter a valid email id'.
gc_flag_mail = 'X' .
EXIT.
ENDIF.
ENDLOOP.
IF gc_flag_mail = 'X'.
CLEAR : gc_flag_mail .
EXIT.
ENDIF. " IF gc_flag_mail = gc_x. "
Thanks in advance
11-07-2008 4:46 PM
sorry,
My concern is incase of incorrect mail id entered,
how to come back to initial screen instead of continuing the program execution.
11-07-2008 4:02 PM
11-07-2008 4:46 PM
sorry,
My concern is incase of incorrect mail id entered,
how to come back to initial screen instead of continuing the program execution.
11-07-2008 4:47 PM
11-07-2008 4:51 PM
11-07-2008 4:54 PM
11-07-2008 4:55 PM
Hi Sam,
Change the logic like this...
LOOP AT s_mail1.
*-----If email id entered on the selection screen doesnot contain
*'@' and '.', then give relevent message to user as popup.
IF s_mail1-low NA '@' OR s_mail1-low NA '.'.
MESSAGE i038(zs) WITH 'Please enter a valid email id'.
gc_flag_mail = 'X' .
LEAVE LIST-PROCESSING. "------>Add this line in your code.
EXIT.
ENDIF.
ENDLOOP.
Thanks,
Chidanand