Converting amount from rupees to dollars

Hi experts,
  I am looking for a FM to convert a local currency ( rupees) to Dollars please guide me in this, thanks in advance.
Thank and Regards, 
          V.K.
Edited by: vikram kagada on Sep 18, 2008 8:36 PM

Try this code.
DATA: r_gro_val_def       LIKE ecmca-ksl.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
   client                  = sy-mandt
    date                   = sy-datum
    foreign_amount         = '1000.00'
    foreign_currency       = 'INR'
    local_currency         = 'USD'
       RATE                    = 0
   type_of_rate            = 'M'
   read_tcurr              = 'X'
IMPORTING
   local_amount             = r_gro_val_def
EXCEPTIONS
   no_rate_found           = 1
   overflow                = 2
   no_factors_found        = 3
   no_spread_found         = 4
   derived_2_times         = 5
   OTHERS                  = 6
IF sy-subrc  EQ 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Click on where-used list of the fm u will get the sample codes.

Similar Messages

  • Convert amount from flat file format to user format

    hi,
    how to convert amount from flat file format to user specific format.
    input:  1000.00
    output: 1.000,00 (user specific)
    thanks in advance

    move that value to a type WRBTR variable
    and use write statement.
    data v_wrbtr type wrbtr.
    data v_char(20).
    v_wrbtr = 1000.
    write v_wrbtr to v_char.
    v_char will contain the amount in user format.
    Prerequsite, go to SU3 transaction.
    Defaults tab, chose the decimal notation .
    Regards,
    Ravi

  • FM to convert amount  from one currency to another currency?

    HI Experts
    is thier any Fucnction module to convert amount  from one currency to another currency?
    please help me.
    Thanks

    Hi,
    data: lv_foramt TYPE vbap-netpr VALUE 40,
          lv_forcurr TYPE string VALUE 'USD',
          lv_loccurr TYPE string VALUE 'INR',
          lv_locamt TYPE vbap-netpr.
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
           EXPORTING
            CLIENT                  = SY-MANDT
             DATE                    = sy-datum
             FOREIGN_AMOUNT          = lv_foramt
             FOREIGN_CURRENCY        = lv_forcurr
             LOCAL_CURRENCY          = lv_loccurr
            RATE                    = 0
           TYPE_OF_RATE            = 'M'
            READ_TCURR              = 'X'
          IMPORTING
    *        EXCHANGE_RATE           =
    *        FOREIGN_FACTOR          =
            LOCAL_AMOUNT            = lv_locamt
    *        LOCAL_FACTOR            =
    *        EXCHANGE_RATEX          =
    *        FIXED_RATE              =
    *        DERIVED_RATE_TYPE       =
          EXCEPTIONS
            NO_RATE_FOUND           = 1
            OVERFLOW                = 2
            NO_FACTORS_FOUND        = 3
            NO_SPREAD_FOUND         = 4
            DERIVED_2_TIMES         = 5
            OTHERS                  = 6
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         write:/ lv_locamt.
    P.S. Please test your FM in SE37. When I tested, it worked only between USD and INR.

  • Convert Amount to different format

    Hi,
    Please help me know a the FM to convert data in the following way
    i/p:  2510.15
    o/p:+00000000251015
    i/p: -12.45
    o/p:+00000000124500
    Thanks & Regards
    ChK

    Hi Harsha,
    CURRENCY_AMOUNT_SAP_TO_IDOC - Convert currency to IDOC format
    CONVERT_TO_LOCAL_CURRENCY  - Conversion of currency
    HRCM_AMOUNT_TO_STRING_CONVERT - Convert amount to string
    HRCM_STRING_TO_AMOUNT_CONVERT - Convert amount from string
    CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all
    character fields), not right justifed as numbers normally are.
    CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
    CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
    Another as per your Requirement...
    Language Dependent Formatting of Amount and Currency
    To format a currency amount with decimals according to the currency use WRITE and the CURRENCY option.
    Currency keys an d numbers of decimals are defined in table TCURX Decimal Places in Currencies.
    Example 1: Formatting an amount in Kuwatian Dinars:
    Dmbtr = 123456.
    Write dmbtr currency 'KUD'
    123.456
    Write dmbtr currency 'USD'
    1234.56
    Note that the formatting does not depend on the number of decimals in the number in the program.
    Dmbtr = '12.3456'.
    Write dmbtr currency 'USD'
    1234.56
    Regards,
    Prabhudas

  • Capturing "Actual Amounts" from previous years

    Hi Experts,
    We had earlier developed a report to produce a list of projects which can be changed from status TECO to CLSD. If the project cannot be closed then the corresponding reason for failure should be displayed.
    Now the problem is that there were some direct costs which were booked under certain WBS elements. These elements were created in the previous year & haven't been settled in that year. Our present program isn't able to capture & display these costs in the current year. We have based our logic up on a join of table COBK with tables COEP, PROJ & PRPS. We are referring to the SAP standard TCODE s_alr_87013533 which is able to find the unsettled dollars (Actual amount) even from previous years. Anyone please help advise as to how we can even capture the actual amounts from previous years.
    Regards,
    Uday
    Our inner join statement is as shown below:
    SELECT coep~objnr coep~wogbtr coep~megbtr coep~wrttp coep~kstar
             coep~owaer coep~vrgng coep~sgtxt coep~ebeln coep~ebelp
             coep~objnr_n1 coep~belnr coep~gjahr coep~perio
             cobk~blart cobk~refbn cobk~refbk cobk~refgj
        INTO CORRESPONDING FIELDS OF TABLE tb_actual
        FROM coep INNER JOIN cobk ON cobk~kokrs = coep~kokrs AND
                                     cobk~belnr = coep~belnr
                  INNER JOIN prps ON coep~objnr = prps~objnr
                  INNER JOIN proj ON proj~pspnr = prps~psphi
        WHERE proj~pspnr  = wa_proj-pspnr   "project definition
          AND prps~pspnr  = wa_prps-pspnr   "WBS element
      AND prps~belkz =  c_x             "Account assignment
      AND coep~wogbtr <> 0              "amount
      AND coep~lednr = c_00             "Ledger (needed to hit index)
      AND coep~wrttp IN (c_04, c_11)    "actual value type - real & stat
      AND coep~beknz IN r_beknz.        "D/C Ind <> Settlement

    based on the data provided -
    I-001688               
    Cost line                       7143.28          71710000
    Cost line                     42874.74          73120000
    Cost line                     22752.77          73120000
    TOTAL COST     72770.79          
    Settlement line     65627.51          81650000
    Settlement line     7143.28          81650000
    TOTAL SETL     72770.79          
    you should be able to set CLSD to this project as there is no unsettled value in the project
    CJI3 report confirms that there is no outstanding settlement and hence project can be set to CLSD. This report shows all the line items against project
    The report S_ALR_87013533 shows the actual cost incurred in the project, but not settlement. This does not mean that the project is unsettled.
    see another report (project cost element report) - that might help you S_ALR_87013542

  • How to convert Amount which is in figure to words

    How to convert Amount which is in figure to words like :
    Rs 1005.70   into   'Rupees One Thousand Five and 70 Paise'
    Thanks
    kumar n

    hiii
    use FM
    SPELL_AMOUNT
    WA_AMOUNT = '10000'.
    CALL FUNCTION 'SPELL_AMOUNT'
           EXPORTING
                AMOUNT    = WA_AMOUNT
                CURRENCY  = PWAERS
                FILLER    = SPACE
                LANGUAGE  = 'E'
           IMPORTING
                IN_WORDS  = WA_SPELL
           EXCEPTIONS
                NOT_FOUND = 1
                TOO_LARGE = 2
                OTHERS    = 3.
    regards
    twinkal

  • How to convert amount data element to number data element

    Dear Gurus,
    I have a requirement to get the data by calling BRF+ and then pass them to BAPI 'BAPI_ASSET_ACQUISITION_POST', in the BRF+ export structure, there is a field 'AMOUNT', I bind it to DDIC element 'BF_ANBTR', the type is Number.
    In BRF+, I call another global function to calculate the value, I define a local variant LV_VALUE to get export value from this function, this local variant's type is Amount, now I need to move this local variant value to the export field 'AMOUNT'.
    But BRF+ doesn't allow to convert amount data element to number data element directly, and I find there is no formula function available. Only there is a function 'TO_AMOUNT' to convert number data element to amount data element.
    Please help to get a solution for above solution.
    Thanks.

    Hi,
    within the formula expression within the category "Mathematical functions" you will find the function "TONUMBER". This converts a data element of type currency to a number. According to the help of this function:
    "The following conversion rules apply:
    <Amount>: The number part is returned. The currency unit is omitted."
    This is what you are looking for.
    For the other way round you already mentioned the correct function "TO_AMOUNT"
    BR
    Christian

  • Convert amount to XUDCPFM format in RFC

    Hi experts:
      We are using a RFC to get invoices and amounts from SAP to be displyed in a web (not webdynpro, just JAVA and HTML). 
      The problem is the numeric format. In SAP amounts are stored as xxxx.yy (using dot as decimal separator) but displayed in the format in table USR01 field XUDCPFM (in our case,  ' ' as we are in Spain, which means 1.234,56).
      We want the data to be displayed in the web in the same format as in SAP, and my questiobn is: does anybody know the function or method used in SAP to convert the amount to the format in XUDCPFM field?.
    Thanks in advance for your help.
    Regards,
    Carlos.

    Hi Rajan:
      Thanks for your answer.
      This works to change the format the amounts are displayed in SAP, but not the format returned by the RFC.
       What I would like to know is how SAP changes the amount format from 1234,56 (as stored in DB) to 1.234,56 (as displayed in SAP). 
    Regards,
    Carlos.

  • Converting footage from vhs for use in FCP

    Got some old VHS tapes that I want to get over to a digital format.
    I know someone with the gear to convert VHS to DVD, but what I really want is to get the data in DV format on my Mac/FCP and this guy uses PC.
    I have an old VHS player, but no real gear, cables etc.
    What is the best option here? I'm fairly well versed in FCP but not so much on the data conversion side.
    Thanks

    so maybe I'll try that first. They've already been
    converted once from 8mm tape to VHS, so I really
    don't want to convert them too many more times if I
    can help it...<
    But the 8mm tapes are gone, yes?
    Someday the VHS copies will not longer work. </div>
    I know, that is why I am trying to get it off the VHS tapes and into DV (for long term storage) and DVD (for short term storage/playback).
    No, the 8mm (not film, but the Sony tape format) are still around, but my dad's old video camera is on it's last legs and he converted them to VHS so I could play them (even though I haven't had a VHS player for years - but I managed to get one though).
    In my above statement, just meant that I was looking for the path of least resistance (least amount of conversions) to get the tape into the Digital Age.
    Thanks!

  • I bought all the episodes - full episode Sally - the amount of 11.99 dollars did not work did not carry episodes

    I bought all the episodes - full episode Sally - the amount of 11.99 dollars did not work > Can not download episodes
    سالي كل الحلقات/ سالي الحلقة الكاملة
    date 12/3/2012
    order: M1vyql3kk9
    Please return the amount to the account, the amount Aotaubi buy other products

    Log into your iTunes account, click on your name,
    select Account from the dropdown list, on the Account
    page, select Purchase History and click on the arrow
    to the right to see what you bought and when. If you spent
    more than you had on the account, it was charged to your
    credit card. Check your credit card bill online at your
    financial institution to see if you were billed for anything.

  • Converting amount to words

    how can i convert amount to words using sql query
    eg : Rs 10234.50
    Ten Thousand Two Hundred Thirty Four Rupees Fifty Paise

    Perhaps the forum admin need to put the search box right next to the Create New Message button just so people get the idea that what they're asking for just may have been asked for previously by other people.As when creating a new SR in Metalink: Before posting you'll be asked to to search the bug db, knowledge base, technical forums ...etc ...
    Not really a bad idea actually ...

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?

    How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?
    When I try to open the document in Illustrator and I convert to CMYK the black font converts to rich black, but to set up for Offset printintg I need the text to be only in Black (100%K).
    The original source of the document is a Microsoft Word file, I have converted the Word file to Pdf in order to setup for OFfset Printing.
    Thanks

    I have tried that way, but the downside is that the fonts are set in gray not in a 100%K, also I have to deal with other fonts that are composites and meant to stay Full Color. I could select text by text and convert to gray but, its a 64 page document and I wouldn't want to make a expensive mistake.

  • Error when starting a converted VM (from vmware server edition)

    Hi, i am trying to start a converted VM from VMWARE SERVER. I think i have followed steps to import an VMWARE machine (using resources >> virtual machines images) and it does not return errors when converting VM but then, when trying to start it, it returns
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise e
    I have also checked that there is enough memory.
    This is the contect for vm.cfg
    acpi = 1
    apic = 1
    builder = 'hvm'
    device_model = '/usr/lib/xen/bin/qemu-dm'
    disk = ['file:/OVS/running_pool/SIR_xxx/SIR_xxx.img,hda,w',
    'file:/OVS/running_pool/SIR_consulnor/SIR_xxx (2).img,hdb,w',
    ',hdc:cdrom,r',
    kernel = '/usr/lib/xen/boot/hvmloader'
    memory = '512'
    name = 'SIR_xxx'
    on_crash = 'restart'
    on_reboot = 'restart'
    pae = 1
    serial = 'pty'
    timer_mode = '1'
    uuid = 'e23767cc-dc3d-0255-a7ac-65f111b589d7'
    vcpus = 1
    vif = ['bridge=xenbr0,mac=00:16:3E:71:AF:B1,type=ioemu']
    vif_other_config = []
    vnc = 1
    vncconsole = 1
    vnclisten = '0.0.0.0'
    vncpasswd = 'xxx'
    vncunused = 1
    Thanks for your help

    user559432 wrote:
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise eDo your servers have Hardware/Full Virtualization enabled? You can check on the console and ensure the console says that Hardware Virtualization is enabled. If not, check in your BIOS that the processor hardware virtualization is enabled. If you don't have an option, your PC may not have the Intel VT-x or AMD-v extensions required to support hardware virtualization.
    You can check to see if your processor supports this extension by using:
    Intel processor:
    # cat /proc/cpuinfo | grep vmxAMD processor:
    # cat /proc/cpuinfo | grep svmIf you see a result, it means the processor has that support. You still need to ensure that it is enabled in the BIOS.

  • Amount from 2 different columns. import format?

    Hi all,
    Im trying to import amounts from 2 different columns. If accounts are "123" or "234" or...etc
    Then pull from column
    else use column 9
    can this be done in one import script? I want to know if I can assign import format amount to column 5 but only get the accounts asked for. else use column 9.
    thanks

    I made something like this, and assigned it to an amount column with all the amounts. Does it make sense?
    Function This_Code (strField, strRecord)
    Dim Account
    Dim Ammount
    'Field instead of strRecord
    account = DW.Utilities.fParseString(strField, 12, 5, ",")
    Amount = DW.Utilities.fParseString(strField, 12, 11, ",")
    If Account = "123" or Account = "456" Then
    Amount = This_Code
    End If
    Edited by: tyson33 on Jun 28, 2012 10:11 AM

Maybe you are looking for