‎2008 Mar 21 9:17 AM
Dear All,
I have a issue in which i am calculating VAT by a particular logic now when i am dividing the values for VAT calculation
for larger values the number of digits after decimal point is proving critical resulting into answer which is different than the actual one by some value.
The simple way by which i can explain is for value say,
35756.25 / 5000.000 the actual value is 7.15125
but since i have declared that variable of type
ZSDSTR003-KBETR it is truncating digits from 3 onwards after decimal point and
value is maintained as 7.15 and not 7.15125 which is causing my final answer to vary by a small amount.
Thanks 2 all
Ronak.
‎2008 Mar 21 9:20 AM
Hi,
declare ur price varaible as
data: kbetr type p decimals 5.
Regards
‎2008 Mar 21 9:20 AM
‎2008 Mar 21 9:20 AM
hi ,
use the field KBETR type p decimals 5 in the ztable..
regards,
venkat.
‎2008 Mar 21 9:20 AM
Hi,
declare ur price varaible as
data: kbetr type p decimals 5.
Regards
‎2008 Mar 21 9:54 AM
Thanks 2 all
full points to u all my issue has been resolved.
Regards,
Ronak
‎2008 Mar 22 5:11 PM
Dear Kabani,
Declare a variable of type P decimals 5..
DATA:VAR TYPE P DECIMALS 5
and take the value in that variable
Reward if it helps