Country based currency & decimals issue

Hi All,
Can any one help me here, I need to decide the decimal places for particular currency of a country accordingly I need to add the decimal places.
Example: JPY: Japan yens dont have a decimal place
               INR will have 2 decimal places. like this way.
thanks.
Kalyan.

Hi,
Ustry the following code.
        DATA:
              lv_decimals      type     tcurx-currdec,
              lv_amount         type    char30.
        CALL FUNCTION 'G_DECIMAL_PLACES_GET'
          EXPORTING
            currency       =    lv_waers  (currency key)
          IMPORTING
            decimal_places = lv_decimals.
        IF NOT lv_decimals IS INITIAL.
          WRITE: lv_wrbtr TO lv_amount DECIMALS lv_decimals.
      endif.
thanks
kasturi

Similar Messages

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • Country Based on Sales Org?

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Please use tables TVKO and ADRC to link address number field for the sales organization in question.

  • How to ceate a new Country key,currency ,version and value type for report

    hi,
    can you please let me know How to ceate a new Country key,currency ,version and value type for report
    along with tables and tcodes.
    thanking you

    Not clear on your comments
    How to ceate a new Country key,currency,
       version and value type for report
    because in one line you are saying you want to create Country Key, which means your requirement is in some transaction whereas at the end, you say for report.
    Can you let us know you want to develop a report and if so, from which transactions, you want to take datas.  You have to be clear on this.
    thanks
    G. Lakshmipathi

  • Require to Find the Country Based on SALES ARea.

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Hi .,
    Please get the company code from TVKO Based on Sales Organization,
    After that Go to T001 table and get the country based on Company Code,
    Regards
    Jana

  • Detect Country Based on IP

    Dear all,
    How to detect country based on IP address? I know I can get
    the IP by using REMOTE_ADDR and REMOTE_HOST. Some of the websites
    offer subscription fees for the above function. Is there any free
    way to do it? Can we tell from the first 3 digit of the IP? Is that
    a safe way?
    If we load google from Singapore by typing www.google.com, it
    will automatically route the website to www.google.com.sg (unless
    you have cookies to remember your preferences).
    Looking forward for your reply.
    Thanks in advance
    Keiko

    Keiko wrote:
    > the above function. Is there any free way to do it? Can
    we tell from the first
    > 3 digit of the IP? Is that a safe way?
    http://www.sustainablegis.com/projects/geoLocator/
    uses db local to your server. use it w/mark mandel's
    javaLoader on shared hosts
    or if you want painless updates.
    also recent thread on cf-alk:
    http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53430

  • Currency Decimals in workflow inbox

    In my workflow, after the user enter the incoming invoice (MIRO) will send out a email with PO number, amount, currency to manager inbox, the manager will approve it.
    Right now, it not worked for non decimal currencies, such JPY, KRW. for example, the amount is 1000JPY will display as 100.00 JPY in manger inbox.
    I know i can use 'FWOS_CURRENCY_DECIMALS_READ' to get local currency decimal , or use write amount to field with currecny to process it in the report, but now i do not know how to process it in workflow inbox, where  should i put my codes to display the amount with right currency decimals?
    Thanks!

    Please check the Task container If it is appearing properly there it will surely appear in Task Description. If everything in binding is fine then I think you have to refres Buffer(SWU_OBUF) Logout and Login and test. If after also it does not work have a coffee at ur coffee corner and come a little bit later to test.:)))
    Thanks
    Arghadip

  • Value in Index-based currency in COPA report

    Dear all,
    I activate COPA with both accounting-based and Costing-based, I found that In Costing-based only Operating concern currency and company code currency display ,and in account-based we have 3 currency: transaction currency, company code currency and operating concern currency.
    In FI config OB22 for commany code, we add Index-based currency and hard currency.
    Is there any way to get and view value in Index-based currency in COPA report (accounting-based or costing based) ?
    Thank you very much,
    Dat Lam

    Hi Dat Lam,
    I am sorry to tell you that Index based currency can not be used in CO-PA in any form. This is not designed in the application.
    Best Regards,
    Abhisek

  • Currency/decimals.tutorial

    I'm having difficulty understanding how to format currency/decimals. Anyone know of a good tutorial

    Take a look at the methods under Configuring the Format of Currency in the NSNumberFormatter reference. Then see if the example code at either of these links is helpful:
    [http://mac-objective-c.blogspot.com/2009/04/nsnumberformatter-some-examples.htm l]
    [http://www.mugginsoft.com/content/very-simple-nsnumberformatter-currency-subcla ss]
    Search the web on keys like "NSNumberFormatter example currency" for more discussions and examples.
    \- Ray

  • Currency conversion issue in SPM. We are getting incorrect results with SPM conversion function from one of the document currency to USD.

    Currently we are using SPM 2.0 version and we have been facing currency conversion issues.
    Please help me in following aspects.
    1) Where actually currency conversion happens in SPM. Is it the global program which does the conversion or other way.
    2) We have conversion issue for one of the currency where conversion function is giving incorrect results when converting from one of the document currency to USD. here The respective document currency is considering the 1:1 ratio with Dollar which is actually incorrect.
    3) We have verified in both BI side(currency tables) and even ECC side.
    Please help me in understanding this issue and let me know if you need more information on this.
    Its an production issue and appreciated your immediate inputs.
    Thanks
    Kiran

    Hi Arun,
    The following information may be helpful to you.The SSA_HELPER_PROGRAM has options regarding currency settings.
    EXCH_RATE_TYPE: This flag governs the exchange rate type which will be used for currency conversion in data management. For example if RSXAADMIN contains an entry EXCH_RATE_TYPE = „ZSPM‟ then the conversion type used for currency conversion is ZSPM. The default value for the exchange rate type is „M‟. More details can be found in the note 1278988.
    CURRENCYCONVERSION: By default data management converts all the measures in transaction currency to reporting currency and copies over to the corresponding measure in reporting currency. If the measure in reporting currency is already available in source it might be desirable to disable the currency conversion. To disable the conversion you can make an entry CURRENCYCONVERSION = „ „ in the table RSXAADMIN. This can also be achieved by running the program SSA_HELPER_PROGRAM with the option DEACTIVATE_CURRENCYCONVERSION. The conversion can be reactivated by running the same program with option ACTIVATE_CURRENCYCONVERSION.
    UNITCONVERSION: Similar to above. To deactivate unit conversion you can use the program with option and DEACTIVATE_UNITCONVERSION and to reactivate ACTIVATE_UNITCONVERSION. By default both the conversions are switched on
    EXTERNAL_CURRENCIES: Normally most of the international currencies are stored with two decimal places however certain currencies do have 0 and 1 decimal place too. For example JPY has 0 decimal places. SAP internal format stores even these currencies with 2 decimal places and at the time of display it changes the value to right decimal places. In case a file from external source is loaded to SPM it might have the format with 0 decimal places in the file. To convert it to SAP standard format post processing needs to be done on this value. If that is the case you can set the flat EXTERNAL_CURRENCIES = „X‟ in the table which will enable the post processing for these values. This flag can also be set and reset using the helper program using the option TURNON_EXT_CURRENCY_FORMAT and TURNOFF_EXT_CURRENCY_FORMAT.
    Kind Regards,
    John Harris
    Senior Support Engineer, SAP Active Global Support

  • Currency formatting issue in etext delimeter based  template

    Hi,
    I want display as below
    if amount is
    55 --55.00
    55.6 --55.60
    55.21 --55.21
    0 --0.00
    .21 --0.21
    null --blank
    It's urgent for me.Please help me...
    Thnaks
    Praveen

    use
    FORMAT_NUMBER function along with if condition to handle the null
    IF AMOUNT='null' THEN
    '' -- Blank
    ELSE
    FORMAT_NUMBER("987654321", "999,999.99")
    END IF;

  • Decimals issue

    Dear Gurus,
    I need your help regarding a decimal issue.
    In SAP FI, we are using the following currencies : USD and JOD.
    Figures in USD have 2 decimals.
    Figures in JOD have 3 decimals.
    When extracting the data into the PSA, this logic is respected (exact picture of what is in the source system).
    Apparently the datasource extracts figures with only 2 decimals (Datasource properties). When I look to the target Infocube, I see that the figures in JOD are inconsistent.
    Example :
    200,950 JOD in SAP Fi
    200,950 JOD in the PSA
    2009,50 JOD in the Cube
    How can I see 200,95 or 200,950 in the cube, instead of 2009,50 ? Why is the system displaying the amounts like this ?
    Your help would be very appreciated.
    Regards,
    Thibaud

    Hi.
    It caused by settings ni TCURX table.
    In this table JOD has 3 decimal places.
    When data writing to the cube there is some transformations related to this table.
    I think this amount written in cube 2009,50 is correct and if you execute query you will see an amount like in FI 200,950.
    Isn't it ?
    If you want to see data in cube like in FI use "Display Data" (right click on cube) and check OFF in settings "Do not use any data conversion" checkbox.
    But again, it is correct behaviour.
    To understand how TCURX related pls see following posts:
    Decimals management through TCURX
    TCURX
    Regards.

  • Currency Decimal issues in BI Explorer

    Hi,
    We have a reporting issue for key figures in multiple currencies when using BI Explorer.
    We have currencies defined in the system which are in the following 3 models:
    - Having 2 decimal places (UAE, QATAR...)
    - Having 3 decimal places (OMAN, BAHRAIN...)
    - Having no decimal places (YEMEN)
    The first one (Having 2 decimal places) works fine but the one with 3 and no decimal places appear to be wrong as they tend to shift the decimal places to suit the 2 decimal places model.
    Is there any way to represent the respective currency and decimal places for the respective countries ?
    Regards
    Govind

    Hi Des,
    I did check note 1219001. It more or less deals with Crystal Reports. I have the same issue with Business Objects Explorer.
    The indexes read by Polestar is showing just 2 decimals for those sites which either have 3 decimals or none.
    For Explorer
    Version 12.2.0   Build 518
    For BIA (Trexadmin-Version TAB)
    Version 7.20.03.00     Build 720.03.202210
    Regards
    Govind

  • Currency display issue in the report

    Hello Experts,
    I am facing an issue with the currency type CLP(Chilian Peso).
    It  is noted that  the CLP currency doesn't use decimals.
    In BW reports the values in Local Currency are not OK.
    For example , the right value is 150.755 CLP in R3 side But in the BW report the value is 15.075.500, 00 CLP which is misleading.
    Could any one help me how to solve this issue.
    In TCURX the following settings are maintained
    currency type    decimal
    CLP                       0
    Regards

    Hi Nivas,
    I think following things are happening.
    u2022     Updating The Amount Value into BW data target.
    When we load the data into BW having amount field in it ,it checks for the TCURX table for the currency entry.
    If the currency entry is present in TCURX table it divides the amount by 10**(2-CURRDEC entry in TCURX table)).
    u2022     Displaying the amount into BEx reports.
    The exactly converse happens while displaying such values in the report output,The amount values will be multiplied by 10**(2-(CURRDEC entry in TCURX table)) while diplaying the report output.
    Please check below thread,
    Here is the link for your reference:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/600aa67b-c348-2b10-f690-aaa81d12ec6a
    Regards,
    Deepak Chavan.
    Edited by: Deepak Chavan on Aug 22, 2008 4:30 AM

  • Currency decimals

    Hi frnds,
         I want to know from which table we can get the number of decimal places for a particular currency type.
       Eg: USD has 2 decimals
             JPY has 0 decimals
         Please help me.
    Thanks in advance

    Hi,
    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
    INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
    IF VAR_DCPFM EQ 'X'.
    REPLACE ALL OCCURRENCES OF ',' IN: FIELD_NUM WITH ''.
    TRANSLATE FIELD_NUM USING ','.
    ELSEIF VAR_DCPFM EQ ''.
    REPLACE ALL OCCURRENCES OF '.' IN: FIELD_NUM WITH ''.
    TRANSLATE FIELD_NUM USING '.'.
    TRANSLATE FIELD_NUM USING ',.'.
    ELSEIF VAR_DCPFM EQ 'Y'.
    TRANSLATE FIELD_NUM USING ',.'.
    ENDIF.
    THIS CODE WILL WILL RESULT INTO :
    FIELD_NUM = 1233.50
    Regards,
    Raj.

Maybe you are looking for

  • Crystal Report 2008 error in generating existing reports

    HI, I have just now migrated my server from Win 2003, 32 bit to Win 2003, 64 bit. I was holding a valid license in the old server. Using the Product key and the registration number, I installed Crystal Report 2008 SP3 Build in the new server since Cr

  • RAID 50 Creation Problem

    Here is what I get when I try to create a RAID 50 on my Xserve RAID. This is from the console log of Disk Utility. Made bootable had an error on disk disk3s10 Untitled 1 { Error = 16; MapChanged = 0; NewName = "AppleRAID_OfflineV2_Untitled3"; NewSlic

  • SQL Loader: ignore data field

    Hi, in a SQL Loader control file, how do you specify that you do not wish to load a particular field? E.g. if I wanted to ignore the second field in the data file and load the first and third fields into a table, how would I modify the control file b

  • IPhone3GS wireless components or such doesn't work?

    I recently got my iPhone3GS back after being in repair for severe water damage. Upon initial inspection all seemd to be fixed until i tried to connect to a wifi source. The screen which typiclly shows wifi options (turn on/off, different networks, et

  • Is it possible to use a small cd in the optical drive slot of an iMac?

    I'm trying to install RescuePro on my Mac, but I'm afraid the small cd will get stuck inside. I tried copying it onto a regular cd-rw using a Windows based pc, but it came up as a ".INK " file on my Mac and I couldn't open it. Help!