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.

Similar Messages

  • Can I convert tracks from one format to another so that the converted tracks appear in the various playlists of the originals?

    I have a large number of tracks which I should like to convert from one format to another (aiff to Apple lossless).  These tracks are distributed in a large number of playlists.  Can I convert a track or tracks from one format to another so that the converted track appears in the playlist of the original track without going through a laborious and error-prone process of converting each track individually, determining the playlist of the original, and allocating the converted version to the playlist (or playlists, because in many cases the original track exists in more than one playlist) of the original track.

    I do not believe iTunes will do this.  The files created are essentially new media files, not regarded as replacements for old files.  There may be ways to trick iTunes if you are good at editing library files but that would be more trouble than it is worth.
    You can check the site below but I do not recall having seen such a script.
    Dougscripts - http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y - Many itunes scripts
    If you're into writing Applescripts you could try it.

  • Program for transferring amount from one GL to another based on due date.

    Hi
    There is one requirement to show customers in differnt way (i.e. dues less than 6months seperately and more than 6 months seperately).
    I have created one GL (customers due less than 6 months)
    Now all balances are in one GL account i.e. customer due more than 6 monhts)
    So is there any program which will transfer all the amount for due less than six months from one GL to other GL.
    I also need such program for items (like prepaid accounts) which are entered directly into GL accounts.
    Edited by: Meenu_ND on Dec 23, 2010 5:01 PM

    Hi,
    Yes there is one functionality available that is Reclassification or sorting of Receivables and payables. The tcode is FAGLF101 - Sorting/Reclassification (New), for this you need to do some configuration settings. The navigation path is New gl- periodic processing-Reclassify-Transfer and sort receivables & payables.
    Regards,
    Azeem

  • Tansfer of Receivable amounts from one plant to another newly created plant

    Hi Gurus,
    We have created a new plant as  per the new requirement from the client in ECC 6.0.  Now, client wants some receivable amounts to be transfered from the existing plant to the newly created plant.  Can any one guide in this. 
    Thanks in advance and Regards

    Hi SAPshed,
    The problem is not the change of plant, which is standard functionality, but the change of sales organization.
    An awful lot of information depends on the Sales Organization: Company code (!!), customers, materials, prices, profit center, etc.
    SAP does not even admit creating a sales order in a Sales Organization A with reference to a sales order with a sales organization B.
    IMHO your best option is to try to maintain the current Sales Orders with the current Sales Organization and change the Sales Order in VA02 (your third option).
    If you are absolutely sure that all materials and customers are created for the new Sales Area in the same way and that prices (discounts) are the same, you might want to do a direct update to VBAK table to change the Sales Organization (nasty!), but be prepared for the consequences (no SAP support in case of problems, you are on your own).
    Therefore if you insist on a different Sales Organization, then option 2) will be your best best.
    Best Regards,
    Franck
    P.S. IMHO it is Best Practice to have a unique Sales Organization / Company Code.

  • How can I convert games from one iPod to another?

    Hi there my daughter has an iPod and so do I. She just
    Got hers fixed and she has no data. Anway that's not the problem.
    The problem is that I don't know how I can convert my songs and
    Games onto her ipod!!!
    Many thanks

    iTunes: Syncing media content to iOS devices and iPod
    iOS: Syncing with iTunes
    If you also want app data for apps that do not store data on server then  the the easy way is.
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    Otherwise:
    How to transfer game saves between iOS devices, without iTunes, and without jailbreaking | TUAW - The Unofficial Apple Weblog
    For apps that use servers just log the app into the same account.

  • Convert data from one table to another

    SQL> select * from A;
    empid | mon_tips | tues_tips | wed_tips | thu_tips | fri_tips
    ----------------- ------------  --------- ----------+----------
    1 | 10 | 20 | 30 | 20 | 10
    2 | 10 | 20 | 30 | 40 | 50
    i want a SQL query that will convert the data from table A into table B with the following format:
    B(empid, Day, tips) where the column Day can take the values (Mon, Tue, Wed, Thu, Fri).
    Thanks in adavnce for the replies
    sqllearner

    creaate table B as (select empid, 'MONDAY' day_1, mon_tips tips from a
    union
    select empid, 'TUESDAY' day_1, tues_tips tips from a
    union
    select empid, 'WEDNESDAY' day_1, wed_tips tips from a
    union
    select empid, 'THURSDAY' day_1, thu_tips tips from a
    union
    select empid, 'FRIDAY' day_1, fri_tips tips from a)Cheers
    Sarma.

  • Move Project (Award) budget amount from one project to another

    Hi,
    As per Oracle standard functionality, in Grants Accounting (Projects)
    -- Can the budget amount for a project under an award be moved to another project
    -- Can the budget amount for a project under an award be moved to another project another award
    - In general is there a way to move the funds between projects or awards ?
    Thanks!

    Hi,
    As per Oracle standard functionality, in Grants Accounting (Projects)
    -- Can the budget amount for a project under an award be moved to another project
    -- Can the budget amount for a project under an award be moved to another project another award
    - In general is there a way to move the funds between projects or awards ?
    Thanks!

  • How to transfer costs from one WBS to another WBS?

    Hi,
    I want to transfer costs from one WBS to another. Remember two currencies are maintained viz. local and group.
    So how can i transfer the balance such that both the local currency and group currency balance gets transferred.
    Please ensure that the transfer should show 0 balance outstanding in CJI3 report.
    I need to transfer because WBS is holding some value which was not settled in the previous year.

    Hi
    You can transfer the Amount from One WBS to Another through KB11N. In this you Choose the Screen Variant as "_WBS/Network_" and do necessary steps.
    Hope it helps.
    Regards
    Babu

  • Will there be forex gain or loss when you move amt from one GL to another?

    Hi,
    Local currency Euro
    GL account A account currency Euro  (has got an open item for usd 100)
    GL account B account currency Euro
    In the above situation if i use the post with clearing t.code f-04 to transfer the 100 us dollars from one gl account A to another gl account B then the system is calculating forex gain/loss. however is this correct to calculate the forex gain or loss for this transaction? From an accounting point of view, conceptually since we are just merely moving the foreign currency amount from one account to another why shd there be a forex gain/loss is calculated?
    Take note that dont reply on how to change the F-04 document posting so that no forex will be calculated, i myself know it, i can just change the exchange rate to be the same as the original document's exchange rate so that in the f-04 document no forex difference is calculated. This is not my question. My question is rather on the accounting principles, as to whether shd there be a forex gain or loss for the above situation.
    Can someone comment on the accounting perspective of this?

    Hi,
    Yes you are right but you cannot say that there is no effect on the P&L because the system generates postings to the P&L and even if the new account is revalued at month end, the forex auto postings made by the system will still be included in the P&L thus overstate or understate the P&L. Therefore i believe i shd not allow the system to post the forex amts during the transfer postings. do u agree with me?
    For example :-
    System posts a gain of 20 Euro to forex account abc during the transfer posting.
    The month end revaluation on the new account is posts a forex gain of 5 euro to forex account abc
    Now the final month end standing for forex account abc will be 20 + 5 = 25 when in actual fact it shd have been only 5.

  • Quantity conversion from one unit to another

    Hello Experts,
    I need to convert quantity from one unit to another For eg: 1000kg to Grams.
    Is there any standard Function Module which can do so.
    Thanks.

    Hi,
    Try any of these.
    PRC_CNV_UNIT_CONV_ALT_TO_BASE - Convert Alternative to Base Product Unit
    PRC_CNV_UNIT_CONV_BASE_TO_ALT - Convert Base to Alternative Product Unit
    PRC_CNV_UNIT_CONV_ISO     -     Convert ISO Quantity Unit
    PRC_CNV_UNIT_CONV_SIMPLE  -     Convert Simple Unit (Without Product)

  • 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

  • We need to transfer amount from one profit center to another profit centers

    Dear Gurus,
    We need to transfer amount from one profit center to another profit centers, wrongly posted how to do it?
    GL 600000 Sales a/c Domestic,
    around 5000 FI documents has post in worn profit center
    In the billing with material line items showing the correct profit center.
    we want reverse the GL 600000 a/c in our system what will be the impact in COPA Reporting. and how to do it?
    Pls advice me for the above said issues as we are nearing the year end pls help me.
    Thanks..Srirama

    Hai,
    You can do profit center posting 9ke0
    Profit center will derive from Material in your case it seems some subtitution changing the correct profit center in material master and putting this wrong profit center
    Profit center is not the deciding factor for COPA reports so there wouldn't be any impact in COPA report
    BR
    VSN

  • Tracking amount moved from one account to another in General ledger

    Hi,
    I have a doubt in GL.
    If we post a batch, the amount may be transferred between many accounts. How to find the total amount moved from one account to another after journal posting?
    Regards,
    Raj

    You can do it from your activeSync form:
            <!-- change organization -->
            <Field name='waveset.organization'>
                <Disable>
                    <neq>
                        <ref>waveset.organization</ref>
                        <s>Top:Global:Users</s>
                    </neq>
                </Disable
                <Derivation>
                    <s>Top:Local:Users</s>
                </Derivation>
            </Field>

  • FB05 - To trnasfer the amounts from one Bank account to another

    hi,
    My Client is using a Z transaction to transfer the amount from one bank account to another where FB05 is getting triggered.
    Because of this a wrong profit center is getting picked up than usual when a specific assignment and text is used. I tried to use the same assignment in development sytem manually but worng profit center didnot get posted as expected. I also checked the 3KEH for the specific GL account but the PC linked there is different from the one which is getting picked up.
    Any pointers towards this would be of great help. Thanks a lot in advance.
    Regards,
    S.Sumana

    solved by myself

  • How to convert data when transferring from one table to another

    I have two tables and these are the structure of the tables
    create table E1(
    ID NUMBER
    ,NAME VARCHAR2(30)
    , DESIGNATION VARCHAR2(30)
    ,GENDER VARCHAR2(10));
    create table E2(
    ID NUMBER
    ,NAME VARCHAR2(30)
    , DESIGNATION VARCHAR2(3)
    ,GENDER NUMBER); Now I want to transfer records from one table to another using a master tables where data are compared because the datatypes in tables are different
    The first one is a gender table to match the gender and convert
    create table Gender(
    E1 varchar2(10),
    E2 number);The second is for the designation
    create table Designation(
    E1 varchar2(30),
    E2 varchar2(3);How to match and convert the data so that it can be transfered.

    Peeyush wrote:
    Can we do it with the help of a cursor.
    All SQL executed by the database are parsed as cursors and executed as cursors.
    I mean I have to insert data in bulk and I want to use cursor for it.The read and write (select and insert) are done by the SQL engine. The read part reads data and passes it to the write part that inserts the data.
    Now why would using PL/SQL and bulk processing make this faster? It will reside in-between the read part and the write part being done by the SQL engine.
    So the SQL engine reads the data. This then travels all the way to the PL/SQL engine as a bulk collect. PL./SQL then issues an insert (the write part to be done by the SQL engine). And now this very same data travels all the way from the PL/SQL engine to the SQL engine for insertion.
    So just how is this approach, where you add extra travel time to data, faster?
    and i want to commit the transaction after every 50 recordsWhy? What makes you think this is better? What makes you think you have a problem with not committing every 50 rows?

Maybe you are looking for