How Crystal represents currency

Crystal Reports XI
When you tell crystal to convert number to Currency, is the result represented as a floating point number?
I'm trying to figure out if I have to worry about rounding error when taking the sum of a field formula that has a value like "CCur ({Get_RptCashCounts;1.Amount})"
I think the answer was in a pdf still indexed on google, but I can't hunt any basic documentation down now:
support.businessobjects.com/documentation/product_guides/boexi/en/crxi_Techref_en.pdf

Raghavendra, rounding is what I'm getting at.  All of my data represents real exact numbers of dollars and pennies.  My point is, if Crystal stores $12.34 as a double, and as 12 point 34, it can't possibly store the 34 part accurately.   But maybe it stores it as one thousand, two hundred thirty four.  And stores the position of the decimal point separately from the number.  That's what I hope, but I doubt it.
The document Fritz pointed me to seems to be telling me that in the API you always treat currency as a double precision floating  point value.  The Crystal Users Guide XI doesn't say anything about data representation that I could find, just how Crystal will visually format numbers when displaying, which is irrelevant to the question at hand.
Maybe another way to ask the question is: does Crystal have any number type that is not floating point?
So anyway, if all numbers are doubles, and since all my numbers represent whole pennies, I think I could do accurate math, barring possibility of large value overflow, with:
Multiply field value by 100.
Round that to zero decimal places.   Now it is exact number
Sum up the rounded numbers
Divide by 100.  Now there is usually rounding error, but it will never be significant - there' s no opportunity to add up rounding error.
Treat the result as currency
Thanks,
Levin

Similar Messages

  • HOw to see currency pairs in Exchange rate type

    Hi,
    Can anyone tell me how to see currency pairs in an exchange rate type?
    Thanks

    Hi,
    I am not sure this is a right solution.  But I have some inputs on your requirements:
    1. For traveller cheques you may create a new payment method and do the required configuration for automatic payment program.  Don't generate any payment medium while running APP.
    2. For currency notes (cash payment) I am not sure how it works.  But probably it is possible by creating an account (account ID) for a particular house bank and use that (house bank & account id) for making payment. 
    Per my knowledge we have never used payment method cash (currency notes) in APP.  But logically it would work by create a new payment method and doing the required config for APP.
    Please update if you found a better way to do this.
    thanks & regards,
    Kumar

  • How to do currency conversion in Business objects

    Hi,
    Can any one please let me know how to do currency conversion,  As I am getting different types of currencies.  So I want to do currency conversion.
    Regards
    Sankar Reddy

    Hi Sankar,
    you could easily setup a variable for the actual currency and the actual currency conversion routine in the BI query and the BusinessObjects tools would then leverage the BI variables
    Ingo

  • How to add currency sign?

    Hi,
    I have a group currency key figure in my report. I want to add $ sign in front of the amount for ex. 12550 it should show as $12550.
    How to add currency sign $ in front of the aount.
    Pts for ans.
    Regards,
    Shri.

    Hi,
    You can enable currency in the reporting output using following steps:
    Query properties> Display> select Display scaling factors for key figures.
    but using this option currency($) will be displayed after the amount. it means key figure values will be displayed like 300$, 800$.
    hope it helps..
    regards,
    raju

  • How to set currency template in CT04

    I'd like to ask a question about how to set currency template in CT04
    Coz i have a material classification --- cost
    i'd go to CT04 to create ...set data type is CURR Currency Format
    but i don't know how to set the template if i want to show like this
    <b>HKD 99,999,999.99</b>
    coz if i didn't set any template , it will automatically ...show 99,999,999.99 HKD
    THX

    Hello,
    In the transaction CJ02 on the "Basic data" tab you have a field Proj. currency which you can change.
    Regards
    Marek

  • How to use currency infoobject

    Hi SAP Gurus,
    Can u please tell me how to use currency infoobject.I have already created currency key figure ,by assigning fixed currency INR.but what to do while transformation and datasource?Do i need to use any rule in transformation?
    Please tell me.
    Regards
    Meenu

    Hi,
    Thanks for the solution.But I am unable to use fixed currency info objects.The scanario is:
    In Infoobjects: i have 4 characterstics i.e Mat Number,Mat Name,Mat description and 1 key figure i.e Zprice which has fixed currency INR.
    In my flat file there are 5 fields: Mat Number, Mat Name,Mat Description,Price and Currency
    When I run PSA it executes fine except Currency field is blank and when I run infocube I don't even get currency field, but get the data for rest of the field.
    Also, In transformation,rules detail I have assigned fixed currency as INR.
    please tell me what do i need to do to get all the records in infocube.
    Regards
    Meenu

  • How To run Currency translation for Consolidation Application in BPC NW

    In "How To do Currency Translation for Financial Application in BPC 7 NW", the author mention that there is another "How To run Currency translation for Consolidation Application in BPC NW", anybody know where to get it?

    Hi...
    Check if the below links are useful to you.....
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6052a57b-8c64-2c10-b3a5-b0378ff21243&overridelayout=true
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0ea1fd8-d6d3-2a10-c1ab-e8164dd98316
    You can find all How-to docs in the below link
    http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-to+Guides

  • How to handle currency fields in BDC

    Hi All,
        Please tell me how to handle currency fields in BDC.... If possible give me some sample code...
    Thanks in advance,
    points will be given,
    praveena.

    Declared it at the Global definitions.
    in global data tab and currency/quant fields.
    Initialize some value there itself.
    Just before the text node create one program lines node,
    and that,In the import and export parameters of it give total_amount.
    refer to the following link:
    http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
    Currency Fields
    Reward if useful.

  • How to handle currency & unit fields in call transaction?

    Hi,
    Can any one tell me How to handle currency & unit fields in call transaction? & how to dael with error for this fields? whith some sort of coding.
    Thanks In Advance.
    Pravin

    Hi Pravin,
    The same topic has been discussed in the following thread:
    How to handle currency & unit fields in BDC recording method?
    Regards,
    Chandra Sekhar

  • How toconvert multiple currency translation please give details in one repo

    how toconvert multiple currency translation please give details in one report

    Hi Venu,
    Yes you can do currency translation in update rule as well as in the bex query.
    please follow the below steps:
    business scenario
    you have records in different currencies and you want to convert them to a fixed target currency USD, using the avergae rate type 'M' on a monthly basis
    Step 1
    Create translation keys using RRC1. here you need to specify the source currency. "select source currency from data records"
    specify the target currency as USD
    choose the exchange rate type as 'M' and the translation should happen using 0CALMONTH
    Step 2
    create key figure 1 (KF1) that stores the amount in differnet curreny and it refers to 0currency. create another key figure (KF2) which has a fixed currency as USD. in the target cube you use 'KF2' and it is mapped from KF1.
    in the update rule just below hte currency mapping you can find the currency translation screen, use the translation key created in step 1
    Step 3
    if you have KF2 in your cube then you don't need any currency translation becoz you have already performed the translation in update rules. but if you have KF1 in your cube then you need to [erform the currency translation in bex. create a restricted key figure from KF1 (give it name as KF2). right click on the RKF and go to properties -> currency  translation -> select the translation key created in step 1.
    hope it helps.
    thanks
    soumya

  • How can change currency rate in clearing document

    How can change currency amount in clearing document

    Dear Michael,
    It was a User confusion with Creation Date of Invoice, Billing Date of Invoice and Posting date of Accounting Document.
    User had created Invoice on some 01.03.2009 but Kept Billing Date as 26.02.2009. So, while released Accounting Doc. on 10.03.2009 (Releasing date and not Posting Date), It gets Posted on 26.02.2009, only, and not on 10.03.2009.
    The whole confusion was:
    When User refers Document Flow (for Invoice in VF02), System shows Invoice Date as 01.03.2009, against Accounting Posting Date 26.02.2009.
    Whereas,
    When I showed FBL5N to user, BL Document and AB Document both get posted on 26.02.2009 only.
    Its Clear now.
    Best Regards,
    Amit

  • How to do Currency convertion

    Hi All,
    I would like to know how to do currency conversion when we have source system currency as INR and target currency as USD, let me know in detail.
    regards,
    Ali

    Hi,
    First you have to define currency conversion key using T. code RRC1.
    After this, you have 3 options..
    1. Conversion at the time of loading - Write code in Transfer/Update rule
    2. Conversion at query design - In KF properties select the conversion key and target surrency
    3. Conversion at query execution time - After query execution, right click on KF and select currency conversion option.
    Regards
    SSS

  • How to convert currency into other country currency?

    how to convert currency into other country currency?

    Hi,
    You have to use, transaction CONVERT_TO_LOCAL_CURRENCY.
    See this code for more detail.
    DATA: l_toval   LIKE bseg-wrbtr,
          l_fromval LIKE bseg-wrbtr.
    DATA: l_tocurr LIKE bkpf-waers,
          l_fromcurr LIKE bkpf-waers VALUE 'USD'.
    DATA: l_exchrate      LIKE tcurr-ukurs.
    *   get amount in other currency
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
         EXPORTING
              client           = sy-mandt
              date             = sy-datum
              foreign_amount   = l_fromval
              foreign_currency = l_tocurr
              local_currency   = l_fromcurr
         IMPORTING
              exchange_rate    = l_exchrate
              local_amount     = l_toval
         EXCEPTIONS
              no_rate_found    = 1
              overflow         = 2
              no_factors_found = 3
              no_spread_found  = 4
              derived_2_times  = 5
              OTHERS           = 6.
    Let me know if you need any other information.
    Regards,
    RS

  • How to spell currency from number to words

    how to spell currency from number to words?
    Is there a built in function in oracle?
    Can anybody give me the code?
    thanks
    sharath

    ok, rewritten to work with nulls and numbers from -5373484.99$ to +5373484.99$
    SQL> set null "<NULL>"
    SQL> select
    to_char(comm, '$999999.99'),
    decode(comm, null, null,
      decode(sign(trunc(comm)),
        0, to_char(to_date(to_char(trunc(comm)),'SSSSS'),'ssssssp'),
        1, to_char(to_date('1','J')+(trunc(comm)-1),'jsp'),
       -1, 'minus '||to_char(to_date('1','J')+(trunc(comm)-1),'jsp')
      ) || ' dollars and '||
      to_char(to_date(to_char(mod(comm,1)*100),'SSSSS'),'ssssssp')||
      ' cents'
    from emp;
    TO_CHAR(COM DECODE(COMM,NULL,NULL,DECODE(SIGN(TRUNC(COMM)),0,TO_CHAR(TO_DATE(TO_CHAR(TRUNC(COMM)),'SSSSS'),'SSSSSSP'),1,TO_CHAR(TO_DATE('1','J')+(TRUNC(COMM)-1),'JSP
    <NULL>      <NULL>
        $300.00 three hundred dollars and zero cents
        $500.00 five hundred dollars and zero cents
    <NULL>      <NULL>
       $1400.00 one thousand four hundred dollars and zero cents
    <NULL>      <NULL>
    <NULL>      <NULL>
    <NULL>      <NULL>
    <NULL>      <NULL>
           $.00 zero dollars and zero cents
    <NULL>      <NULL>
    <NULL>      <NULL>
    <NULL>      <NULL>
    <NULL>      <NULL>

  • How to set currency symbol correctly in crystal report

    Hi all,
    I am using the Crystal Report 2008, I have one issue regarding the currency symbol in the crystal report.
    it seems the CrystalReport use the System Default currency symbol. e.g.
    ProductA Cost: $1000
    It displays,
    ProductA Cost: £1000
    in euro locale and $ in english locale
    It doesn't make sense in business. The question is how do we set the currency symbol "$" to the report? I google some websites, the SetLocaleInfo may be one option, I would like to know the detail and if there are more solutions.
    Thanks for your help

    Before in our legacy application, we used Crystal Report 9 & VB
    'Crystal Report Designer Components (RDC).
    Set CrxApp As New CRAXDRT.Application
    I can set the crxapp to nothing and recreate this design component.
    Set CrxApp = nothing
    After SetLocaleInfo, if we set the CrxApp to nothing, it will create the RDC and the currency symbol will be updated.
    Now we are using Crystal Report 2008 and C#, the RDC is not supported in 2008
    What can I do?
    Any input is greatly appreciated.
    Edited by: Dennis Zheng on Feb 17, 2009 3:57 PM

Maybe you are looking for