Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Decial Validation

Former Member
0 Kudos

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

5 REPLIES 5

0 Kudos

Hi,

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

Regards,

Sesh

0 Kudos

itab

amt(18) type c.

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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