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: 

Crurrency Field Issue

Former Member
0 Kudos
70

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.

4 REPLIES 4

suresh_datti
Active Contributor
0 Kudos
49

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

Former Member
0 Kudos
49

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

Former Member
0 Kudos
49

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.

0 Kudos
49

Please close the post since your problem is solved.