Skip to Content

Make a field numeric

Dear Experts,

I want to make "ref2 " field in goods issue to be entered only numeric values. Any query/procedure to make it as numeric field?

Thanks & Regards,

Hiren

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 21, 2016 at 11:45 AM

    use SQL sever ISNUMERIC function to block through TN

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2016 at 12:06 PM

    Hello Hiren,

    For making Ref2 field as numeric, you will have to keep S.P Notification in order to block the document if Ref2 contains alfanumeric or non-numeric value. You can use the below query for it:

    If @object_type = '60' and @transaction_type in ('A')

    BEGIN

    If exists (Select I.Ref2 From OIGE I

    Where I.Ref2!=@list_of_key_cols_tab_del AND ISNUMERIC(I.Ref2)= 0)

    BEGIN

    select @error =13

    select @error_message = 'Enter only Numeric Value in Ref2!!'

    END

    END

    Hope this will help you..

    Regards

    Kuldeep

    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.