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: 

intermediate result more than 31 places

Former Member
0 Kudos

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 ?

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos

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.

former_member156446
Active Contributor
0 Kudos

Hi there how about using a field-symbol rather than going for a variable..

field-symbol: <fs_var> type any.

nkr1shna
Contributor
0 Kudos

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