05-24-2006 11:33 AM
Hello,
I am displaying a the value of the Sales Taxc in 'SPARE PARTS SALE INVOICE'. (in Smart Form)
The field(which holds the Sales Tax value is 'KWERT' -LBBIL_INVOICE-IT_KOND ), with datatype 'CURR', reference table 'KOMK' and reference field 'WAERK'.
In my smart form,i have declared a variable 'SALES_VALUE' of datatype 'KWERT' and reference field 'IT_PRICE-WAERK' (LBBIL_INVOICE-IT_PRICE), where 'WAERK' is the SD document currency.
Now when i display the field 'SALES_VALUE' i get 735.00 , whereas the original value in the field is 73.5
how to correct this and where am i wrong ?
Thankyou for yur time and really appreciate the help.
Shehryar
05-24-2006 11:38 AM
Hi,
Looks like the value that is being passed itself is 735.00. Make sure you in the attributes of your progarm, the FIXED POINT ARITHMETIC is checked.
Regards,
Ravi
Note : Please mark all the helpful answers
05-24-2006 11:38 AM
Hi,
Looks like the value that is being passed itself is 735.00. Make sure you in the attributes of your progarm, the FIXED POINT ARITHMETIC is checked.
Regards,
Ravi
Note : Please mark all the helpful answers
05-24-2006 11:43 AM
05-24-2006 11:46 AM
05-24-2006 11:50 AM
In the debug, can you see what value is being passed to the SMART FORM?
05-24-2006 11:58 AM
its 735 .. ( original value is 73.5 in the Sales Order item conditions !!
why is this so ??
05-24-2006 12:01 PM
It is becase of the attribute of the program only. Are you sure its checked?
05-24-2006 12:12 PM
You are using currency fields that reference a currency code. Most currencies in SAP have two decimal places. Dividing by 100 will work in most cases. Ideally you should get the CURRDEC value in table TCURX for the currency you are working with... then divide by 10 that number of times.
example-
USD, 2 decimals, divide by 10 twice.
There is a function module that will do this for you. Can't think of the name...???
05-24-2006 1:11 PM
Thanks to all.!
The requirments changed so now i dont need to display the issue it can be done by dividin it by 10.
Points given to all for their anwsers..
Thanks Guys..
05-24-2006 11:40 AM
goto ur program
in menu goto-->attributes
check whether FIXED POINT ARITHMETIC checkbox is checked or not
05-24-2006 11:49 AM