12-27-2007 4:09 PM
Hi ;
I want to variabels one of 2 decimal and one of 3 decimal . lv_v1 = 25051.000 and lv_v2 = 1666.58 for example
lv_1 = lv_1 * lv_2 .Gives errror how can I fix this issue
12-27-2007 4:11 PM
12-27-2007 4:15 PM
data: lv_v1 type p decimals 3,
lv_v2 type p decimals 2.
lv_1 = lv_1 * lv_2
lv_1 will get the 3 decimals output.
12-27-2007 4:19 PM
12-27-2007 4:19 PM
12-27-2007 4:21 PM
12-27-2007 4:24 PM
Then it is overflow problem, in debug try to give some small values and test it.
-Pavan
12-27-2007 4:26 PM
why dont you try using fiels symbols.
<fs_1> quant
<fs_2> curr
assign: lv_1 to <fs_1> ,
lv_2 to <fs_2>.
<fs_1> = <fs_1> * <fs_2> .
12-27-2007 4:43 PM
12-27-2007 4:26 PM
Then your lv_1 is not defined as long enough.
Try DATA: lv_1 type P length 16 decimals 3.
matt
12-27-2007 4:52 PM
Hi,
You are getting memory overflow dump, try defining two variables of type fm_saldo.
I have faced similar kind of issue, I declared the variable of type fm_saldo and the issue was resolved.
Thanks,
Sriram Ponna.