‎2011 Feb 15 7:15 AM
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?
‎2011 Feb 15 7:18 AM
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
‎2011 Feb 15 7:18 AM
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
‎2011 Feb 15 7:22 AM
i got a sugesstion from my senior is to change length. but if length is the issue, thn "overflow "must be the error rite?
‎2011 Feb 15 7:33 AM
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
‎2011 Feb 15 7:39 AM
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.
‎2011 Feb 15 7:44 AM
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
‎2011 Feb 15 8:19 AM
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
‎2011 Feb 15 8:54 AM
Agreed.. It was just a work around... to avoid the dump..
Regards,
Nagaraj
‎2011 Feb 15 8:38 AM