Currency Decimals Default and
Places in SAPr3
What are the list of countries in R/3 which do not have decimals in their currencies? --- Depending upon client's requirement, you can set the control of currency decimals in oy04. In the DB, SAP stores all amount values with 2 decimal places. But when SAP reads it, it interprets it based on the currency associated with the amount field. Try the FM BAPI_CURRENCY_CONV_TO_EXTERNAL. Pass the amount obtained from DB and the currency. This will give you back the actual interpreted value. Which table we can get the number of decimal places
for a particular currency type?
Check the table TCURX. Based on user profile you can get the currency format from USR01. Use This Code: It takes care of decimal notation based on user profile. What ever may be the user profile for decimal notation. FIELD_NUM = 1,233.50 OR FIELD_NUM = 1.233,50 OR FIELD_NUM = 1 233,50 *************************************** SELECT SINGLE DCPFM FROM USR01
IF VAR_DCPFM EQ 'X'.
TRANSLATE FIELD_NUM USING ','.
TRANSLATE FIELD_NUM USING '.'.
*************************************** This code will result into :
Get help for your SAP FI/CO problems
SAP Books
SAP FICO Tips
Best regards,
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|