2006 Mar 25 11:33 AM
Hi All,
There is a user defined domain ZWRBTR which is currency field (Length 13,Decimal 3 and sign On,O/P length 18).We have used this domain in a Z-table and inserting data from Module pool.
Suppose if we enter 70 for this field,and after saving into Z-table it is seen as 7.
In further calculation field is taken as 7 not 70,but if we go to SE11 ->seeing the content of all record lines->double click on the perticular line,it is again showing the value 70.
Programetically the value is selected deviding the Actual Entered value devided by 10.
Plz help on this matter.
Regards,
Atrai.
2006 Mar 25 11:37 AM
Hi,
I think it is the decimal 3 that is causing this to happen.. I have seen this issue with a decimal 4 field too.. what we did then was to simply mutiply by 100 after reading the value from the table in the program.. may be you should mutiply by 10.. not the best solution though..
regards,
Suresh Datti
2006 Mar 25 11:43 AM
Hi Atrai,
Once you get the data from the module pool ...
move it to one other field which has properties like..
data : v_curr type p decimals 3.
using the
write <f> to v_curr .
statement where <f> is the field which gets the data..
then use v_curr for your calculations and finally move it back to the original field.
i think this might work..
regards
satesh
2006 Mar 25 12:01 PM
Hi All,
We have solved the Problem :).
It happened, bcoz of taking 3 decimals for the field.The domain is changed as decimal 2 and all the related tables are adjusted from SE14.
Regds.
Atrai.
2006 Mar 25 7:38 PM