Currency represent

Hi all,
I have some problem with currency numbers represent.
I want to convert '50 000.00' number to currency format with 3 digit places '5 000.000'. How can I do it.?
I have wrote some code
DATA: brtwr LIKE esll-brtwr.
DATA: lv_brtwr LIKE esll-brtwr.
DATA: lv_string(15) TYPE c.
WRITE brtwr CURRENCY 'CZK3' TO lv_string .
CONDENSE lv_string NO-GAPS.
REPLACE ','  WITH '.' INTO lv_string.
lv_brtwr = lv_string.
WRITE lv_brtwr.
but with no result ..., I have '5 000.00' now, how can I solve this ?
Regards.

Hi Denielek,
First of to tell you something about currency, the amount which gets stored in Sap Tables is always with two decimal points.
Depeding on how you want to display it you can use with reference to Currency key Waers.
Eg: lv_aomunt =  50,000.00,
      lv_waers = 'KWD'
      write lv_amount currency lv_waers to lv_char.
write: lv_char.
Result: 5,000.000
The problem for you is that ur equating  string to lv_brtwr which is of type p decimal 2.
Hence  it will always show you 50,000.00
Hope this helps.
Best Regards,
Vanessa Noronha.
Edited by: Vanessa Noronha on Jun 10, 2009 2:25 PM
Edited by: Vanessa Noronha on Jun 10, 2009 2:26 PM

Similar Messages

  • Error with Dump while adding Currency field in UI

    Hello,
    I have a requirement to add a custom entity in MDGM with an currency attribute, and encountring dump while adding the field to Web Dynpro component in UI.
    Could some one point me a direction and see below :
    Custom Entity with attributes
    ZTSTOCK  data element is type curr (Lenght 13, Dec 2)
    Data Model is activated without errors and created custom Web Dynpro Form component. while designing it in UIBB by adding Element TSTOCK_VL encountring a error and dump.
    Error: Could not find attribute WAERS and also dump showing below:
    Category               ABAP Programming Error
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_WD_CONTEXT
    ABAP Program           CL_WDR_CONTEXT_NODE_INFO======CP
    Application Component  BC-WD-ABA-RUN
    Date and Time          21.05.2014 00:13:32
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program
          'CL_WDR_CONTEXT_NODE_INFO======CP' has to be
         terminated.
    Any help please.
    BR, Srihari

    Yes, since the release of the current segment is 45 and you are now in a ECC6 system you cannot cancel the release (because there is no ECC6 version). Just use the add version button to create a new version for ECC6. Once you have that you can add fields and set the release to ECC6.
    If you later on need to add more segements you can then cancel the release for your ECC6 segment and add the fields and set the release to ECC6 again (because you already have an ECC6 segment)
    Hope that explains it,
    Michael

  • Issue with Asset Managemenet (parallel Currencies)

    This message is from my customer:
    Capital investments are kept in Asset Managemenet (FI-AA),  balances are integrated part of FI-GL, shown on respective accounts.
    Within AM, multiple valuation areas exists, as an asset underly different rules, depending of it's accounting (book) value and tax value etc.
    Therefore, we have one area (01) representing the book value, - which is also the GL-balance. In addition, AM keep another area (10) representing the tax value.
    Finally, we have a third area representing the difference between Tax and book, (called 'delta'), and these values are posted to GL as 'more/less  depreciation', enabling us to report both 'Accounting books' and 'Norwegian tax books'. This 'delta posting' is part of standard, monthly depreciation run.
    We have a challenge in the case were we have USD as functional currency, in an entity registrated as Norwegian a/s.
    Norwegian tax authorities require the tax values of the depreciation to be based on historical NOK-investments.  Both FI-GL and FI-AA support the parallel currency
    accounting, but not when it comes to the handling of the 'delta-values'. In this case, the initial investments are kept in histotical NOK in AM, and in AM the NOK-investment is depreciatied in the tax area. However, when the delta-posting is done, this is done in USD only (based on area 01 and 10), and the parallel NOK-value of this transaction is translated based on exchange rate on transaction date, NOT the historical NOK-value.  The consequense of this is that the tax-books in NOK is incorrect, and there is a need to do manual adjustments, based on tiresome spreadsheet calculations.
    Now: is this the only way SAP handles parallel currencies in AA/AM? No way to configure it to use historical exchange rates at all?
    If this cannot be changed within SAP, has anyone else solved this kind of problem and might help me getting started?

    Hello!
    Does someone have answers to this:
    From SAP Help:
    The central procurement and processing of data for an asset takes place
    in the logical database ADA in the FI-AA component. One of the functions
    that is carried out in the database is currency translation. Currency
    translation for a currency that is different from the company code
    currency is carried out according to a translation method that you
    define in FI-AA Customizing.
    Where do i find this customising?
    If the parameters of this standard translation method do not meet your
    needs, you can define your own individual translation method using this
    SAP enhancement.
    Activities
    Follow the procedure outlined below:
    <b>
    1.  Activate enhancement project AMGS_001.
    2.  Modify function module EXIT_SAPLAMGS_001. Enter your own code in the
        included program ZXBADU03.
        When the enhancement project is active, the system uses the function
         module at the corresponding positions in the logical database.
      3.  Define a translation method in FI-AA Customizing (Information
          System) that uses translation date 3 (own translation).
    </b>
      Parameters
      The following transfer parameters are available for function module
      EXIT_SAPLAMGS_001:
      o   I_AMOUNT (amount in local currency)
      o   I_ANLAV (master data for the asset)
      o   I_AFABER (depreciation area)
      o   I_BERDATUM (report date)
      o   I_UMVAR (translation method)
      The translated amount is expected as a return value in the field
      E_AMOUNT. This value is then transferred to the respective report.
    This looks promissing But has anyone tried this exit, EXIT_SAPLAMGS_001?
    Will it work for me?
    -Helge-

  • Open item mgt and only balances in local currency

    Hi ,
    What is open item management and only banlances in local currency ?
    for which gl accounts v select open item management and only balances in local currency
    Pls explain urgent
    Regards
    umesh

    1. Only Balances in Local Currency:
    Indicates that balances are updated only in local currency when users post items to this account.
    Use: You would set this indicator for accounts in which you do not want the system to update transaction figures separately by currency.
    It is required to set theis indicator in:
    1.  cash discount clearing accounts
    2. GR/IR clearing accounts.
    It cannot be set in reconciliation accounts for customers or vendors. Setting it in all other instances is optional.
    Open item management:
    Determines that open items are managed for this account.
    Explanation: Items posted to accounts managed on an open item basis are marked as open or cleared. The balance of these accounts is always equal to the balance of the open items.
    Procedure: Set up accounts with open item management if offsetting entries are to be assigned to the postings made to these accounts. Postings to these accounts represent incomplete transactions.
    USE:
    A goods receipt/invoice receipt (GR/IR) clearing account should be managed on an open item basis so that you can check at any time whether invoices have been received for the goods received for an order.
    Set up accounts without open item management if no offsetting entry is to be made against a posting to this account.
    Accounts that are managed on an open item basis include:
    Clearing accounts:
    Bank clearing account
    Payroll clearing account
    Cash discount clearing account
    GR/IR clearing account
    Accounts that are not managed on an open item basis:
    Bank accounts
    Tax accounts
    Raw material accounts
    Reconciliation accounts
    Hope this is helpful. Pleas assign points if it is.
    Julia

  • Development Request on Financials Report in VND Currency - Money Overflow

    Dear all,
    In Vietnam, customer uses VND currency and encountered the issues when generating financial report with big amount. Generating T/B or G/L with long period or large amount would come with the error: "Error while running report due to money overflow; one or more amounts generated are inaccurate".
    There was a note provided by SAP note was since 2009, and there is no fix yet until now u2013 2012 (3years) (SAP Note: [1247215 |https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303132343732313526]).
    In case of these issues, customer cannot get reports from SAP and must switch to MS Reporting Service web report provided by us.
    Actually customer had some transaction amounts around VND 6,000,000,000,000 and accumulated amount in report was greater than VND 9,223,372,036,854 mentioned on the Note 1247215. And some customers in financial services or petro fields we should consulate to use thousand VND instead to reduce digits when posting.
    Could SAP increase one or more digits on SAP B1 to adapt to Vietnam?
    Thanks,
    Doan

    Dear Doan,
    I am afraid using 1,000 VND as the unit should be your solution. I doubt 1 - x00 VND can buy any goods.
    B1 is global system used by hundreds of countries. Unless you can represent majority need. no one may sacrifice the other to meet one localization need.
    Thanks,
    Gordon

  • Currency conversion variable

    I have a question regarding currency conversion variable.
    We have USD and CAD currencies in BW. I created a currency conversion variable in the properties of a key figure using average rate for current date (0MEANTODAY) and that variable was working fine for a long time. Now I noticed that variable got corrupted in BWD but still works in BWQ and BWP systems. I can see in BWD that variable has nothing in a Variable Represent box and Ready for Input checkbox is not checked. It doesn’t let me to fix or repair this variable. I cannot run any existing queries in BWD that use this variable. The error message is “Variable 0MEANTODAY is not permitted for the target currency”
    I created another currency conversion variable that works in BWD. I know it is ok to have multiple variables for a dimension, let’s say Cal Year/Month has a number of variables. I am not sure whether it is allowed to have multiple currency conversion variables and use different currency conversion variables in different queries. We have about 40 queries that use old currency conversion variable in BWP. If I’ll move new query with a new currency conversion variable to BWP, will it cause any problems for the existing reports that use an old variable? I want to know whether it will present a problem running 40 reports that are already in prod besides the fact it will be inconsistent for a while until I’ll switch all reports to use a new variable.
    I don’t know why that variable got corrupted.  A few weeks ago basis applied some patches in BWP and copied it to BWQ and BWD systems but I am not sure that caused a problem.
    I am relatively new to BW and will very much appreciate any help. I haven’t done transport to production for more that a week and cannot wait any more.
    Thanks,
    Polina
    BWD – DEV;  BWQ – QA  and BWP - Production

    I was dealing with this problem for more than a week. Finally I got help from SAP today. As it was explained to me, we were using very old version of BW front end (part of SAP GUI) which became incompatible with the new patches we applied in BWP and copied to BWQ and BWD. Basically, I was told to upgrade BW front end that caused problems especially in the Variable Wizard area.
    I repaired the currency conversion variable and move it to production. So far all reports run ok in production.
    If anybody will have problems with currency conversion variables, please check your front end version.
    Thanks.

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • Foreign Currency Transaction in ECC6

    I want to enter one transaction for selling 100 USD & purchasing INR. Can anybody proivde details as to how to enter transaction in ECC6. What are the requirements for doing the same. Information in details is required
    Vimal

    Hi,
    Normally, I think that the USD 100 which you are holding should be represented in SAP in an account which is with currency USD in the master. (for example, USD FCA account which has USD in the GL master)
    Now there should also be an INR account say, normal current account ( with INR in the master).
    If you sell the USD and get INR, then you should Credit the USD FCA account for 100 USD at the exchange rate you have contracted for and debit the INR current account. The document currency has to be USD.
    Hope this helps
    Regards
    AKV

  • Date and currency in business apps

    Last year, I was concerned about the difficulty to use java.util.Date class in business applications.
    See thread "Date is a mess for business use" at http://forum.java.sun.com/thread.jsp?forum=4&thread=464726
    And yes, I continue to think that a Date with 61 seconds in a minute is unusable in a business environment !
    We need to store business dates, not timestamps.
    Working for an insurance company, suitable date and currency classes are of paramount importance, but Java doesn't include such classes, rendering its use very difficult, not to say almost impossible.
    I just give here a pointer to some very interesting articles I just came across lately.
    I think it can be of some help to people facing the same problems as me about Date and currency storage.
    http://www.idinews.com/darkside.pdf
    http://www.idinews.com/freeware.html
    http://www.idinews.com/sourcecode/DateJava.html
    http://www.idinews.com/sourcecode/MoneyJava.html
    At last, with these two classes, we can do the same data processing as we did with all our cobol programs.
    Happy reading !

    I tried using the Money class on the compound interest example from http://www.cs.princeton.edu/introcs/91float/. Here's my code:
    Money deposit = new Money(1000d);
    System.out.println("Deposit = "+deposit);
    System.out.println("Double precision interest = "+
         deposit.mpy(Math.pow(1 + .05 / 365, 365)));
    Money dailyAmount = new Money(deposit);
    for (int i = 0; i < 365; i++)
              dailyAmount = dailyAmount.mpy (1 + .05 / 365);
    System.out.println("Daily calculated interest = "+dailyAmount);The output looks like:
    Deposit = $1,000.00
    Double precision interest = $1,051.26
    Daily calculated interest = $1,049.40But the second value should be $1,051.27. Because Money uses a long to represent the amount I end up missing a penny when double precision rounding is applied, and because it rounds down I end up missing almost $2 when the amount is calculated daily.

  • Foreign Currency rounding off while conversion

    Hi All,
    I am experiencing a scenario while foreign currency conversion.
    I have searched for a solultion but i am unlucky to find one regarding this problem.
    The scenario:
    Example:
    Foreign Curr      |    Value    |       Rate     |     SAP converted Local Curr(Yen)   |    Act Con Value(Y)
    Euro                 |    1210Eur|       127.99Y|     154868Y                                   |   154867(-veRound Off)
    Is there any setting where you can round off the converted amount to its negative whole amount?
    I have searched all the setting in Foreign Currency transactions(OB52,OB59) but couldnt find.
    Hope i can get a solution.
    Regards
    Andrew

    Hi
    Reason and Prerequisites
    u2022Your tax country is Slovakia
    u2022You billed an order with several items in foreign currency,
    u2022where the exchange rate factor between foreign currency and local
    u2022currency is very large or very small.
    u2022The accounting document created during the billing has a tax line item that contains incorrect amounts in local currency
    Solution
    The solution is using the same solution as note 832477 and 32477 with the difference that the country is Slovakia. For other countries you should put the variable L_LAND1 to the string that represent the country.
    Limitations:
    The solution will NOT lead to a recalculation of taxes in local
    currency. However, it will serve to minimise any rounding differences
    which may arise from converting the individual tax lines which are
    transferred from SD to FI. In most practical cases, this should fulfill
    the legal requirements, even though rounding differences may occur for
    individual documents in special cases.
    Regards
    uday

  • House bank with three currencies for bank statement

    Hi,
    I need to know, how I can customize a house bank that has  one account with thee different currencies (usd,gbp and eur)  for the bank statement ??
    Thak you,
    OSCEL

    Hi,
    An account can be only of 1 currency.
    For same House Bank, you can create multiple Account IDs (and Bank accts) in different currencies.  But each of those Account IDs (and Bank accts) represent differrent physical accounts at the House bank.
    Manish

  • CN41 and S_ALR_87013531 in transaction currency

    Hi Experts,
    In our scenario, both controlling currency and transaction currency are different. My requirement is both reports CN41 and S_ALR_87013531 should display in transaction currency. My user does not want to use currency change option (translation key) inside the reports. Is there any alternate way to represent these two reports in transaction currency automatically without manual intervention.
    Regards,
    Laxminarsimha

    @ laxmi,
    In Txn CJE4, Create Z form by copying the existing form
    10KEF1A and create Z report in Txn CJE1 by coyping the existing report
    10KEF1A.
    Now change the Z form in Txn Cje5. Right side Double Click on the plan costs
    column and change the KEY FIGURE to transcation currecny. Change the
    Key figure accordinly to all columns.
    Hope this helps you.
    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

  • Code for currency translation

    All records from ECC will be translated using the daily exchange rate to be aligned with ECC. Created a  new key figure with the local currency and added to cube, no rules set for this keyfigure. Need to get the daily exchange rate for this field using settlement date. Source currency used as doc currency and target currency as local currency.  I think adding code in end routine would be good. Pls suggest and provide the code .

    Hi,
    Code for rouine :
    LOOP AT RESULT_PACKAGE assigning <RESULT_FIELDS>.
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING
          DATE             = SY-DATUM
          FOREIGN_CURRENCY = <RESULT_FIELDS>-S_CURR
          LOCAL_CURRENCY   =  <RESULT_FIELDS>-T_CURR
          FOREIGN_AMOUNT   =  <RESULT_FIELDS>-S_AMT
          TYPE_OF_RATE     =     'XRATE'
          LOCAL_AMOUNT      = RESULT_FIELDS>-T_AMT
        EXCEPTIONS
          NO_RATE_FOUND    = 4
          NO_FACTORS_FOUND = 8.
    ENDLOOP.
    Just replace
    <RESULT_FIELDS>-S_CURR
    <RESULT_FIELDS>-T_CURR
    <RESULT_FIELDS>-S_AMT
    <RESULT_FIELDS>-T_AMT
    by fieldnames provided in youtrmodel,
    XRATE by symbol representing type of daily exchange rate
    and make sure, as already mentioned above , that this type is
    updated before running DTP.
    Hope this helps
    Joe

  • Why currency factor can be happened.

    Dear folks,,
    Could you share about your experience regarding my question ??
    I have pricing report where it display currency convertion. In that report, there column/field about local price value (e.g. IDR/JPY/EUR), beside that, it's also <b>USD price value</b>, <b> Local Currency </b>.
    e.g.
    ext. rate : IDR => USD : 50
    curr. factor : IDR : 100
    data input : local price value : 125
    it will be displayed in report like this :
    local price value   | local currency | usd price value
    12.500 | IDR | 6250,00
    The things i'm confuse why local price value can be multiplied by 100 ??? (Question 1)
    fyi, i use this function : convert_to_local_currency in order to convert value from IDR to USD. But, i made it in the routine belong to <b>usd price value</b>
    Why the local price value can be multiplied 100 though i did nothing in it's routine ??? (Question 2). 
    Is that because of that function ?? Though i just use local price value only for function parameter ??
    Could somebody share to me why it can happend.
    Many thanks for the attention .
    Regards,
    Niel.

    Hi mathew,,
    Many thanks for your quick response ..
    Beside i read directly to that table, if i use this
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
         EXPORTING
            DATE                           = lastdate
            FOREIGN_AMOUNT     = amount_doc
            FOREIGN_CURRENCY = 'IDR'
            LOCAL_CURRENCY     = 'USD'
         IMPORTING
            LOCAL_AMOUNT         = RESULT
         EXCEPTIONS
            NO_RATE_FOUND    = 1
            OVERFLOW         = 2
            NO_FACTORS_FOUND = 3
            NO_SPREAD_FOUND  = 4
            OTHERS           = 5.
    If i wanna convert from IDR to USD with that function, have the function represented for ratio's calculation ??
    / should i calculate w/ the ration again from the output i get .. ?
    regards,
    Niel.

Maybe you are looking for

  • Urgent help required for  upload of vendors in commpr01

    Hi Experts,            In the PRODUCT MASTER(commpr01) under the RELATIONSHIP> VENDOR tab>I need to upload the Vendors(Business partner id, description and product id of business partner) from a flat file. Is there any BAPI available to load the vend

  • How to delete an old Icloud account without the password??

    I have three devices, iphone 5, 4 and IPAD.  I recently changed my appleID,  and all three devices have the same apple ID (I logged into apple using an apple ID and revised the apple ID and updated my password).  The problem is that the icloud accoun

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that 1. a '{' is expected at line6; 2. Statement expected at the line which PI is declared; 3. Type expected at "System.out.println("Demostrating PI");" However, I can't figure out them. Please

  • Alarm not going off in Lumia 520

    Recently I updated my Lumia to WP8.1 and a couple of days later I find my alarms not going off at all, or they do so on random days. It is really a big issue for me cuz I have to wake up early quite often and without an alarm its impossible. Please d

  • Print JTable with row headers

    I am using the fancy new printing capablities in java 1.5 to print my JTable and wow is it ever slick! PrintRequestAttributeSet set = new HashPrintRequestAttributeSet(); set.add(OrientationRequested.LANDSCAPE); this.matrixJTable.print(JTable.PrintMod