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

Validation

Hi All,

I need to do the Validation for certain field that should contain only the numeric value.

If the Field entered with some wrong value then in the same selection screen the error message to be displayed and cursor should be in the wrong entered field.

Thanks in advance,

Ram M

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 09:20 AM

    hi Ram,,

    AT SELECTION-SCREEN.
    
    use FM  NUMERIC_CHECK
    
    if sy-subrc ne 0.
      SET CURSOR FIELD 'P_FIELD'
      message e001(ee) with 'Enter numbers'.
    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 09:20 AM

    Hi,

    If you decalre the field with data type as i or num, then it will not allow the character fields to enter.

    reward points if it is helpful.

    Regards,

    Sangeetha.a

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 09:22 AM

    you can use CA (contains any) to check if there are letters...you can also use SET CURSOR..

    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.