‎2006 Jun 28 9:00 AM
Hi All,
when i am Simulating a standard BAPI for sales order i have problem in pricing like i am getting 000000000000389 usd instead of 000000000003892 usd in condition base value and net value as well.why and where is the problem please correct me with better solution.
Thanks in advance.
‎2006 Jun 28 9:19 AM
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.
function modules G_DECIMAL_PLACES_GET or TCURX_READ