Amount conversion based on currency

Hi
I have a requirement for converting amount into words based on given currency.
I have tried doing this using function module spell_amount, but it is not working.
Points will be rewarded to the helpful answers.
Its very urgent.
Regards
Haritha.

Hi haritha,
REPORT ZSPELL.
TABLES SPELL.
DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
DATA : PAMOUNT LIKE SPELL-NUMBER  VALUE '1234510'.
SY-TITLE = 'SPELLING NUMBER'.
PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.
WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.
FORM SPELL_AMOUNT USING PWRBTR PWAERS.
  CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
            AMOUNT    = PAMOUNT
            CURRENCY  = PWAERS
            FILLER    = SPACE
            LANGUAGE  = 'E'
       IMPORTING
            IN_WORDS  = T_SPELL
       EXCEPTIONS
            NOT_FOUND = 1
            TOO_LARGE = 2
            OTHERS    = 3.
ENDFORM.                               " SPELL_AMOUNT

Similar Messages

  • Salary amount conversion based on Currency - LDB

    Experts,
    I am using LDB PNP in my report and it fetches salary data of an employee. But the problem is in table the amount is shown as 1,000.000  ( three decimal places as for currency EGP), but the same displays as 10,000.00 from LDB. How can this be solved ?

    Hi,
    Please use any of these FMs
    HRVE_GET_BASIC_SALARY
    HR_ECM_ANNUALSALARY_GET
    HRCM_EMPLOYEE_PERIOD_SALARY
    HRWPC_RFC_CP_SALARY_GET
    Regards,
    Peter

  • Amount formatting based on Currency Key

    Hi,
    I want to format the amount field on the basis of the currency key.
    for eg.
    Chile has the no of decimal places set as 0
    so for Chile, the amount 800.00 should display as 800
    Similarly for Mexico, the no of decimal places is set as 2.
    so for Mexico, the amount 800.00 should display as 800.00.
    I am using the follwoing statement
    WRITE im_amount TO v_amount
                        CURRENCY im_waers
                        DECIMALS v_dec_places.
    where v_amount is type char20 and im_amount is type netwr.
    This is working correctly for Mexico but fails for Chile.
    Please share your comments on this.
    Thanks in Advance,
    Binu

    The following write statement gives the perfect result.
    WRITE v_amount TO v_fmt_amt
                     decimals v_dec_places
                     no-grouping
                     left-justified.
    I was not getting the result on using both the currency as well as Decimals addition. The desired result is obtained on only using the Decimals addition.
    And I used the FM,  'G_DECIMAL_PLACES_GET' to get the decimals for the respective currency key.
    Thanks a lot for your response.
    Regards
    Binu

  • Display amount in ALV Grid with different Decimal Places based on Currency

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2.
    we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65
    i need to display values like AED : 22.56

    HI Experts,
    Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2. we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
    im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
    AED---22.56
    KWD---225.65 (converting this value to 22.565 using BAPI_CURRENCY_GETDECIMALS according to currency in my Report)
    i need to display values like AED : 22.56
                                             KWD---22.565 but here field is NETWR with 2 decimal.
    Need to Display amount in ALV Grid with different Decimal Places based on Currency
    Regards,
    Dileep Kumar Reddy

  • Currency Conversion---- Based on Posting period

    Hi All,
    I am creating a report based on FIAA .
    Query selection screen will contain COMPANY CODE , and the POSTING PERIOD
    suppose  we enter company code as 2100 and posting period from 001.2007 to 012.2007.
    I need to translate all the balance sheet items are translate with the closing rate (M) for the current period , i.e. the "to period in the report " here 012.2007.
    The To period is dynamic and i need to select the currency conversion rate dynamically based on the To period entered in the selection screen of query.so, Can any one give the clues to achieve this. Your help is appriciated.
    Thanks & Regards
    Syam.
    Edited by: syam reddy on Nov 24, 2008 10:09 PM
    Edited by: syam reddy on Nov 24, 2008 10:19 PM

    Use RSCUR transaction to create currency translation type.
    Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
    You should be able to choose Posting period or posting date here.
    Now in query designer maintain the currency conversion based on this currency translation type.
    Hope this helps.

  • Currency conversion based on budget rate

    Hi All,
    I want to do the currency translation from GBP to EUR,EUR to USD and GBP to USD.there is no table maintained in the BW system.Currency conversion should be based on budget values and they are asked me to do on reporting level.I have gone thru the documents and blogs but not able to follow them.Could you pls share any one knowledge and step by step process.
    Thanks

    Use RSCUR transaction to create currency translation type.
    Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
    You should be able to choose Posting period or posting date here.
    Now in query designer maintain the currency conversion based on this currency translation type.
    Hope this helps.

  • Amount conversion from company code to another currency?

    Hi all,
    I want to develop a report report in which I need to convert the amount from company code currency to foreign currency.
    but before that should it be converted from company code currency to group currency which is standardized one?
    means suppose I have company code currency GBP , grp currency USD and user selects EUR for amount currency.
    then should I go like this: GBP to USD then USD to EUR.
    I am using the FM : CONVERT_AMOUNT_TO_CURRENCY.
    rgds,
    Madhuri

    Hi,
    Check out this thread...
    Currency Conversion
    Regards,
    Lydia

  • Addition of Amounts Based on Currency's

    Hi all,
    I have in an internal table 1) Amounts,
                                         2) Currency,
                                         3) Debit(s)/Credit(h)   indicator as three fields.
    According to my requirement, i have to add up all the amounts which are credit of a perticular Currency also add up debit amounts of that currency.
    For example if i have dollars,pounds and Rupees as entries
                Amount             Currency               debit/credit
                400                    USD                        s
                100                    USD                        s
                  30                    GBP                        s
                200                    USD                        h
                  10                    GBP                        s
                3000                   INR                         s
                  20                    GBP                        h
                 2000                   INR                        s
                1500                   INR                        h
    my result should be---->  USD  = (400+100) - 200 -
    > 300 USD.
                                         GBP = (30+10) - 20 -
    > 20 GBP.
                                         INR   =  (3000+2000)-1500 -
    >3500 INR.
         Basically we are adding up all the 's' types induvisually & 'd' types induvisually for each curency and
            final out put is [total of s types] - [total of d types] for each currency.           
    Plz Suggest me a sloution and if posible plz send in a pseudocode.
    THANKS IN ADVANCE.
    Reddy.

    Hi Pami,
    Pseudocode
    Loop at itab into wa.
    if indicator= h
    multiply amount by -1.
    endif.
    endloop.
    sort itab by currency.
    loop at itab into wa.
    case wa-currency.
    when'USD'
    usd_tot = usd_tot + wa-amount.
    when 'GBP'
    gbp_tot = gbp_tot + wa-amount.
    similarily for all currencies.
    endcase
    endloop.
    <b>Reward points, if helpful.</b>
    Regards,
    Atin

  • Get transactional currency total based on currency type

    hi,
    i have created a custom report related to fi which is working fine.
    but now the issue is in that report we r having a transaction currency field WRBTR.the users want to calculate totals based on currency.
    for example my output is
    tran curr  curr type
    500        inr
    600        inr
    400        inr
    200        usd
    500        usd
    400        usd
    so now the totals shld be calculated based on currncy wise.
    i.e we need to get 2 lines in total
    1500    inr
    1100    usd
    Any suggestions in this issue will be helpful.

    Hi,
    Try to fill Field cataloue in the following manner .
    then it will summ automatically based on  Currency.
    lfs_fieldcat-fieldname     = 'AMOUNT'.
      lfs_fieldcat-tabname       = text-022.
    lfs_fieldcat-CFIELDNAME = 'CURRENCY'.
      lfs_fieldcat-col_pos       = '1'.
      APPEND lfs_fieldcat TO t_fieldcat.
    lfs_fieldcat-fieldname     = 'CURRENCY'.
      lfs_fieldcat-tabname       = text-022.
      lfs_fieldcat-col_pos       = '2'.
      APPEND lfs_fieldcat TO t_fieldcat.
    Regards.
    Eshwar.

  • Consolidation package multiply the amounts introduce on group currency

    Dear Experts,
    When we run the Consolidation Package twice, consolidation amounts
    on consolidation group are multiplied base on the number of groups each
    entity belong to.
    We modified the DataSrc property IS_CONVERTED as a previous post suggests
    then everything looks ok but the amounts introduced on Group Currency.
    Parameterization for the data sources used for group currency manual
    adjustments is:
    - DataSrc Type: M
    - IS_CONSOL: Y
    - IS_CONVERTED: G
    We tried to modify the property IS_CONVERTED to u201CYu201D, the amounts are
    erased because nothing is posted on LC, as expected. If we change the
    property to u201CNu201D, the amounts are not copied to the Group, it means no
    consolidated.
    Any solution? It only happens with the amounts introduced on Group Currency, but at consolidated level, I mean the amount on group currency remains ok, but consolidated value for this amounts it duplicated, any idea why? Someone indentiy any lack on the parametrization?
    Thank and regards,
    Iria

    Hi again,
    To limit the problem, the multiplied amounts are the ones introduced on Group Currency only. But the problem doesn't have any relation with the Currency Conversion, because it is done perfectly.
    As a work around, we are deleting all the consolidated figures before run the Automatic Adjustments again, but the performances is not sustainable (more than 1 hour).
    Thanks and regards,
    Iria

  • Difference between local amount and document amount in the same currency

    Dear All,
    Why different between local amount and document amount with the same currency in some FI document line items? Both currency is 'TWD' and update currecy(BSEG-PSWSL) is 'USD'.
    What is the purpose of update currency(BSEG-PSWSL) and update amount(BSEG-PSWBT) ?
    Does update curreny cause the difference mentioned above?
    Thanks all in advance.
    Best regards,
    SAP user

    Dear Sir,
    Thanks for your kindly response!
    These fields of the FI document header are following:
    Local currency 1(BKPF-HWAER) : TWD
    Local currency 2(BKPF-HWAE2) : null
    Local currency 3(BKPF-HWAE3) : null
    Document currency (BKPF-WAERS) : TWD
    Transcation currency means which field ?
    Transaction code (BKPF-TCODE) : FB1S
    The line items as following :
    Itm PK Account    Account  short text   Amount
    1   40   21302500  A/E-Maintenance     1,119,350
    2   50   21302500  A/E-Maintenance     1,119,350-
    Amount in document currency is 1,119,350(TWD) but amount in local currency is 1,087,998(TWD).
    The line item's additional data :
    Amount for Updating in General Ledger : 33,894.02(USD)
    Thanks a lot !!
    Best regards,
    SAP user

  • BAI code map to two  different GL's based on currency

    For a BAI code ex:195,if i have to post to two different Gl accounts based on the currency for the incming payments.How do i map it in EBS.One BAI code to two different gl's based on currency.
    Please advice.

    In the EBS config, you assign BAI codes to posting rules.  Posting rules use account symbols.  GL Accounts are assigned to account symbols.  When you map account symbols to GL accounts, you can create different entries by currency.  So you would set up multiple entries for the account symbol(s) - one entry per currency - and assign the appropriate GL account for the currency.
    Regards,
    Shannon

  • Hoe can u get purchasing invoiced amounts in the invoiced currency...

    which SAP report I can use to get the purchasing invoiced amounts in the invoiced currency...

    Hi,
    Go to the standard transaction of the vendor line item display FBL1N and change the layout.Bring the fields of document currency amount and the document currency.System gives the report both in the local currency as defined in the company code settings and the document currency along with the exchange rate at which it is valuated.
    Hope this helps.
    Regards
    Bhanu

  • Problem with amount displayed in local currency.

    Hi Experts,
    We have an invoice in XDR/PLN currency (exchange rate: 3,50).
    Then we are making a posting with clearing and in result we have a clearing document in EUR/PLN currency (exchange rate: 3,70).
    In one line item we are making a posting with an asterisk u2018*u2019 to clear selected open items.
    In this line item the amount in EUR currency shows for example 0,10 EUR and amount displayed in local currency (PLN) shows 100 PLN which is value not consistent with exchange rate.
    Line item which is causing such difference displayed in EUR shows u201Cnew amountu201D, but this line item displayed in local currency (PLN) shows u201Cold valueu201D from a XDR/PLN document.
    This issue causes 0,10 EUR -> 100 PLN u201Cdisplayingu201D problem in an asterisk u2018*u2019 line item.
    Why this line item shows the u201Cold valueu201D in local currency from XDR document ?
    Thanks in advance,
    Konrad Dobrowolski.

    Can anyone help ?
    I can provide more details if needed.
    Best regards,
    Konrad Dobrowolski.

  • Smartform: total amount conversion to Japanese language

    Hi all,
    I am facing an issue in the smartform with the japanese language. The total amount which is calculated and dispalyed on the form is not translated to the japanese language. All the other quantity and value fields on which no manipulation is performed are successfully translated.
    Like for 1 item the value is 1,000 JPY
    2 item value is 1,000 JPY,
    The total value GV_TOTAL = value of item 1 + value of item 2
    Now this GV_TOTAL is displyed as 20.00 JPY
    Can anyone help as to how can we display the Total value correctly on the form in japanese?
    Thanks in advance.
    Regards,
    Pakhee

    Whatever the Curreny you can convert the amount to the corresponding currency by using
    WRITE <source>TO <dest>CURRENCY <currency field>.
    This will ensure you always you are printing the total value with appropriate currency.
    Thanks
    Mani

Maybe you are looking for

  • My Deskjet D1660 won't print part of my Word document

    Please help me! Yesterday I struggled for three hours to print black until I found out the cartridge ink was clogged, I cleaned it and that solved it.  I've got a HP Deskjet D1660 and my laptop is Windows 7. But today I was printing part of a Word do

  • Reading words from a text file

    I have written code to store words in a text file. they appear in the text file as shown below. word1 word2 word3 etc. I want to read each word individually and store them in an array. Im trying to do it using a BufferedReader but it doesn't seem to

  • How to install PS5 on another computer

    I own PS6 and would like to give PS5 to a friend. I only have the downloaded  copy on my computer and the serial number. How do I install this on my friend's computer. Both are Macs. thanks

  • Blu ray DVDS?

    How do I get my MacBook Pro to play Blu Ray DVD's?

  • MDX Statement for TopCountin UniverseDesigner

    Hi together, I'm trying to build a TOP N function in a WebIntelligence Document. In a SAP BW Query I've created a formula variable. For example the User enters 5 for the variable, so I want to show the TOP 5 of one keyfigure. IN SAP BW i can use the