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

Validation

hi

i am uploading a field 'net price' through a tab delimited text file for transaction me12 into sap.

how can i add validation, to insure numeric values (i.e., netprice ) are in text format to avoid potential ABAP short dumps while uploading

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Nov 24, 2005 at 09:19 AM

    Hi,

    It is automatically validated in the transaction itself.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 09:21 AM

    once you get the vlaue from text file..probably you are storing it into a variable or inetrnal table.

    say that variable name is net_price.

    just before passing it to transaction..

    put the validation like..

    if net_price CN '0123456789 '.

    call trans....

    endif.

    plz reward poin if it helped you.

    Message was edited by: Anid

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 09:28 AM

    hello,

    As you want only numeric values. Check those values after uploading the data.

    if net_price CO '0123456789'.

    call trans....

    endif.

    In your case CO will work rather than CN.

    Regards,

    Amey

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 09:29 AM

    Hi Harkamal,

    While Uploading the file, see that the net price is moved to a field which is declared as type char and of sufficient size.

    You will not face any dumps while uploading.

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2005 at 09:30 AM

    Hello,

    Or else what you can do just perform a check after data is uploadedinto ITAB or Variable. Fields should not contain character value.

    You have to perform just logical check nothing else.

    Regards,

    Amey

    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.