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

Decial Validation

Hi All,

itab- amt(18)

upload the amount data from Excel file into itab-amt

while process the internal table remove the one dcimal point

then we wrote the code like this

data : V_amt1(9) type P Decimals 5

loop at itab.

v_amt1 = itab-amt.

endloop.

while execution program goes to dump

i think problem in type conflict

how to correct it, plz send the suggetion or sample code

Thanks

SEK

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 27, 2007 at 11:54 AM

    Hi,

    What is the type of the field itab-amt. Do let us know its type.

    Regards,

    Sesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 11:54 AM

    See the length, u r passing a 18 length variable into a 14 lenght var.

    dont specify lenght for P

    <b>DATA: v_amt TYPE P decimals 5.</b>

    Reward if tjis helsp.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      iam upload data from excel into itab-amt(18) type c

      oncel upload the data into itab

      loop at itab.

      data : v_amt(9) type p decimals 5.

      move itab-amt to v_amt.

      endloop.

      i look forward to your reply

      Thanks

      SEK

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 11:58 AM

    check decimal notation of user master record and that in the uploading file

    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.