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

Validating the fields in Dialog Programming

Hi,

I created one dialog programming in that 2 input field and one result field i used.When the user click on the Push Button without entering the value on the input Field, One Warning Message should display. Like "Enter Number1 and Number2".

Please Guide Me.

Thanks & Regards.

Dhanush.S.T

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 10:51 AM

    Hi,

    In Process after input do the validations like the following.

    Module PAI.

    if sy-ucomm = 'Enter'.

    if input1 is intial and inpu2 is initial.

    Message E00 with 'Enter Number1 and Number2'.

    endif.

    Edmodule.

    Hope this solve ur problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 12:37 PM

    Hi Dhanush,

    In Process after input do the validations like the following.

    Module PAI.

    if sy-ucomm = 'Enter'.

    if input1 is intial and inpu2 is initial.

    Message I00 with 'Enter Number1 and Number2'.( use information insted of error )

    endif.

    Edmodule.

    <REMOVED BY MODERATOR>

    Regards,

    Ganesh.

    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 5:34 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 12:50 PM

    Hi,

    After PAI, use this module.

    FIELD: input1,inpu2

    MODULE validate_both_numbers.

    and in the program, define this module as follows.

    MODULE validate_both_numbers INPUT.

    IF input1 IS INITIAL OR input2 IS INITIAL.

    MESSAGE ' Enter both the numbers' TYPE 'E'.

    ENDIF.

    ENDMODULE.

    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.