12-15-2008 2:54 PM
Hi gurus,
I have a program inwhich i have a temperory variable w_a type p (11,2), gradually getting assigned to another field ( w_B) of the same type.
When i run it fr a particular case, it gives me a dump saying 'The result or a intermediate result has more than 31 decimal places'
My question : If i increase the size of w_a which is a temp var to say 15,2 and later assign it to w_b which is of type 11,2 will there be any problem ?
12-15-2008 3:16 PM
If your w_a exceeds the number of 11,2 you will not be able to assing it to wa_b which is of this type.
As far as only the decimals are concerned, there should be no problem (the value will be rounded) but in case it exceeds physical size of memory it was assinged to, this operation will generate an error.
12-15-2008 3:28 PM
Hi there how about using a field-symbol rather than going for a variable..
field-symbol: <fs_var> type any.
12-15-2008 3:38 PM
Hi,
Your question : If i increase the size of w_a which is a temp var to say 15,2 and later assign it to w_b which is of type 11,2 will there be any problem ?
Yes there will be issue if your data for variable W_A occupies entire 15,2 , when you assign this value to variable W_B, there will be data truncation or possible wrong results coming out of the assignment.
Please try to avoid this situation by either making both variables equal size.
Regards
Krishna