Application Development and Automation 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: 
Read only

Error CONVT_NO_NUMBER

Former Member
0 Likes
980

Hi,

i got a error 'CONVT_NO_NUMBER' and telling, "Unable to interpret "00*0338346" as a number". Will it can be resolved by changing the length of variable?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
910

Hi Samuel,

your variable has an invalid content. Maybe there was a wrong MOVE or WRITE into it.

Check the name of the wrong variable and decide, what content it should have. If possible, try in debugger, how the wrong content enters the field value!

Regards,

Klaus

Edited by: Klaus Babl on Feb 15, 2011 8:21 AM

8 REPLIES 8
Read only

Former Member
0 Likes
911

Hi Samuel,

your variable has an invalid content. Maybe there was a wrong MOVE or WRITE into it.

Check the name of the wrong variable and decide, what content it should have. If possible, try in debugger, how the wrong content enters the field value!

Regards,

Klaus

Edited by: Klaus Babl on Feb 15, 2011 8:21 AM

Read only

0 Likes
910

i got a sugesstion from my senior is to change length. but if length is the issue, thn "overflow "must be the error rite?

Read only

0 Likes
910

The "*" is the problem in the content of your variable,

The question, what the variable is for, what value it should store and how the wrong content comes in!

What is the line that produces the error? Post it!

What are the data types of the variables in that line? Post them!

Without those informations I can only repeat: Debug the program until you reach this line and look, what can cause the problem! Where does the "*" come from?

Regards,

Klaus

Read only

0 Likes
910

Hi,

program name is "ZFCHKE01"

W-AMNT = W-AMNT + DETAIL-MONETARY_AMT. this is the line caused error.

and declerations are

data: w-amnt type p decimals 2.

data: begin of detail,

dollar_amt(10),

monetary_amt(10),

end of detail.

Read only

0 Likes
910

Hi,

Yes you are right, it should be overflow error if related to length.

The error you got might be because you are trying to pass character value instead of integer to a variable.

try using replace statement

REPLACE all Occurences of '*' in <variable> with ''. once this is done now pass the value to the variable and see..

Regards,

Nagaraj

Read only

0 Likes
910

Yes, but it is also important, where the '*' comes from. If you have invalid data, maybe it makes no sense to add them into your variable.

"00*0338346" is no valid numeric value. Maybe you got the wrong value in your amount field DETAIL-MONETARY_AMT! How do you fill this?

Edited by: Klaus Babl on Feb 15, 2011 9:19 AM

Read only

0 Likes
910

Agreed.. It was just a work around... to avoid the dump..

Regards,

Nagaraj

Read only

Former Member
0 Likes
910

thanks to all who replied.