Skip to Content
author's profile photo Former Member
Former Member

AT SELECTION-SCREEN validation prob

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 04:02 PM

    Hi

    Refer the below threads

    email-id-validation-

    email-validation

    Regards,

    Chithra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 04:54 PM

    Sorry .

    Not working.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.