Skip to Content
author's profile photo Former Member
Former Member

Crurrency Field Issue

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Mar 25, 2006 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2006 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2006 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.