Currency conversion function module

hi all,
i want to change the currency to GBP so i need help regarding which standard sap function module will support for my solution.
can any one help me out, thanks in advance.

You can use
<b>CONVERT_TO_LOCAL_CURRENCY</b>
<b>SAP Documentation for the same is as follow :-</b>
Translate foreign currency amount to local currency
An amount in local currency is calculated from a specified foreign currency amount. For this, you may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. Because the ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified. IF exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE or an alternative exchange rate is defined for the currency pair, this information is transferred to the calling program.
When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part.
Sample call-up:
  CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
    EXPORTING   DATE             = BKPF-WWERT
                FOREIGN_CURRENCY = BKPF-WAERS
                LOCAL_CURRENCY   = T001-WAERS
                FOREIGN_AMOUNT   = BSEG-WRBTR
                 RATE             = BKPF-KURSF
                TYPE_OF_RATE     = 'M'
    IMPORTING   EXCHANGE_RATE    = KURS
                 LOCAL_AMOUNT     = BSEG-DMBTR
                FOREIGN_FACTOR   = FAKTOR-F
                 LOCAL_FACTOR     = FAKTOR-L
                 FIXED_RATE       = FIXKURS
    EXCEPTIONS  NO_RATE_FOUND    = 4
                NO_FACTORS_FOUND = 8.
Hope this helps you..
Enjoy SAP.
Pankaj Singh

Similar Messages

  • Conversion function module

    Hello Friends,
              When ever i down load into excel file the filed 'WERKS' is becoming from '0780' to 780 and when i try to upload i am getting as 780 which is creating  some problems. Is there any conversion function module to convert the the field WERKS from 780 to 0780.
    Thanks in advance.
    Siva Kumar.

    Hi
    When you are using FM 'GUI_DOWNLOAD' to download to excel file, you need to populate the parameter FILE TYPE with DBF.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = p_file
    <b>filetype = 'DBF'</b>
    Thanks
    Vijay
    PLZ reward points if helpful

  • Date Conversion Function Modules YYYYMMDD to MM/DD/YYYY

    Hi,
    I have a requirement to Conver the Dats from format: YYYYMMDD into the Format : MM/DD/YYYY. Can you  please suggest me a suitabble Standard Function Module if exists? If not please suggest me a solution for this data conversion.
    Thanks,
    Rajan.SA

    Hi,
    You can use WRITE FORMATING.
    Here the sample code:
    DATA: BEGDA       TYPE TEXT10,
          ENDDA       TYPE SY-DATUM.
      WRITE SY-DATUM TO BEGDA MM/DD/YYYY.
      WRITE SY-DATUM TO ENDDA MM/DD/YYYY.
    And of course you can use other format, like:
    ... DD/MM/YY
    ... MM/DD/YY
    ... DD/MM/YYYY
    ... MM/DD/YYYY
    ... DDMMYY
    ... MMDDYY
    ... YYMMDD
    Or you can use concatenate statement:
        concatenate SY-DATUM+4(2) SY-DATUM+6(2)
        SY-DATUM(4) INTO BEGDA separated by '/'.
    Regards,

  • Deriving 'company code' &'currency' with function module ????????

    Hi all,
    I created a function module to derive 'company code' and 'currency'and use a user EXIT variable for the CURRENCY. And it works.
    My issue is : <b>is there any solution that I can avoid to enter CURRENCY (system will pop up a screen and ask for it) when I enter planning data?????</b> I think that this is because CURRENCY (in the selection)is a dependence with my KF-amount. However, I still want to try if I can make it not show up. Thank you.
    J.

    John,
    Try putting the currency in the header of the layout and then hide it in the header characteristics screen.
    Thanks and regards.
    Rajendra Tewani

  • Conversion Function module for Volume

    hi,
      Is there any standard function module to do the conversion of VOLUME.
    for example : if i have source volume in one unit & i want it in another unit.
    regards,
    srikanth,Intelligroup.

    If it is a straight conversion and you do not need to use the conversion factors tied to a material then you can do something like this.
    report zrich_0001.
    parameters: p_qtyi type p decimals 2,
                p_uomi type t006a-msehi,
                p_uomo type t006a-msehi,
                p_qtyo type p decimals 2.
    at selection-screen.
      call function 'UNIT_CONVERSION_SIMPLE'
        exporting
          input                      = p_qtyi
    *   NO_TYPE_CHECK              = 'X'
    *   ROUND_SIGN                 = ' '
         unit_in                    = p_uomi
         unit_out                   = p_uomo
      importing
    *   ADD_CONST                  =
    *   DECIMALS                   =
    *   DENOMINATOR                =
    *   NUMERATOR                  =
         output                     = p_qtyo
    * EXCEPTIONS
    *   CONVERSION_NOT_FOUND       = 1
    *   DIVISION_BY_ZERO           = 2
    *   INPUT_INVALID              = 3
    *   OUTPUT_INVALID             = 4
    *   OVERFLOW                   = 5
    *   TYPE_INVALID               = 6
    *   UNITS_MISSING              = 7
    *   UNIT_IN_NOT_FOUND          = 8
    *   UNIT_OUT_NOT_FOUND         = 9
    *   OTHERS                     = 10
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards,
    Rich Heilman

  • Unit conversion  function module

    Hi,
    Can anyone give me the details of this function module
    Function Module name: MENGE_UMRECHNEN.
    its urgent.
    Thanks in advance.
    vaibhav

    Hi Vaibhav,
    This function module gives you the provision of conversion of quantities from Base Unit of Measure to any of the Alternative Unit of Measures or vice-versa.
    But this function would be done only for the materials and its limitation would be determined by the data maintained for a material in T006 table.
    Using this FM you can convert a material quantitity of unit 'X' to unit 'Y' only if 'X' and 'Y' are of the same dimension.
    <b>Reward points if this helps,
    Kiran</b>

  • Quantity Conversion Function Module

    Hi,
    I am using BW7.0's feature - Quantity Conversion (TCode: RSUOM).
    I could use it for converting quantity for different unit on the fly during report time.
    Now, I would like to do convert during data upload. Is there any function module that can help?
    Please note that the quantity conversion factor is "Material dependent".
    Thanks in advance.
    Best Regards,
    Chris

    Hi,.
    1) In the BEx Tab page of
    Characteristic 0MATERIAL, maintained the field "Base Unit of Measure" as 0BASE_UOM .
    2) In the BEx Tab page of
    Characteristic 0MATERIAL, maintained the field "Unit of Measure for Char." by click on the New button, it will generate a DataStore Object, which will store information for calculating the conversion factor.
    3) Fill in the DataStore generated with data, using the DataSource 0MAT_UNIT_ATTR.
    Note that we must NOT use the the former infosource technique and update rules for loading data to it. Use transformation and DTP, else the SID could not be loaded to it.
    (I stuck with this problem before..:))
    4) Create a Quantity Conversion Type through TCode RSUOM, the Conversion factor can choose 1,3 or 4, with reference to 0MATERIAL InfoObject.
    5) Then in any query of cube with 0MATERIAL in it, the quantity conversion type defined in step 4 could be use for displaying data in other UOM~
    Hareesh

  • Timestamp Conversion Function Module

    Hi all,
    >>We are bringing time stamp value (like 20072404161312) from CRM ,we need to convert into date & time. I need function module which one does this...
    >>We are are storing the time duration in min format (its key figure). I need to populate in reports as HR:MN:SS , How we can do this? Is there any function module is available for this?
    Thanks in Advance

    Hello Arun,
    The timestamp is in the format <date><time>. In your example (20072404161312), the date is 20072404 and time is 161312. You can transfer the timestamp into a string and then split the data. You can use the following ABAP code to separate the date from the time:
    * w_ts is your timestamp, w_s is the temporary string
    *w_date and w_time will be your final date and time.
    data: w_ts type timestamp.
    data: w_s type string.
    data: w_date type sy-datum,
          w_time type sy-uzeit.
    w_ts = '20072404161312'.
    * Here is the code you need:
    w_s = w_ts.
    w_date = w_s(8).
    w_time = w_s+8(6).
    Hope this helps.
    Hope this helps.

  • Profit center conversion Function Module

    Hi,
    Is there Any Function Module to  Convert Profit Center from 4 digit into 10 digit.
    Regards,
    Dhanush.S.T

    Try using FM CONVERSION_EXIT_ALPHA_INPUT.
    data: lv_prctr type prctr value '1234'.
    CALL 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting input = lv_prctr
      importing output = lv_prctr.
    "After this call lv_prctr will have values '0000001234'.
    Hope this helps.
    Thanks,
    Balaji

  • Triangulation in currency Conversion

    Hi All,
    Ive been happily using the currency conversion function module in the key figure routine in the transformation for billing docs.
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
            DATE             = SOURCE_FIELDS-/BIC/SST_UP_DT
            FOREIGN_AMOUNT   = SOURCE_FIELDS-/BIC/SSUBTOTA3
            FOREIGN_CURRENCY = SOURCE_FIELDS-DOC_CURRCY
            LOCAL_CURRENCY   = SOURCE_FIELDS-LOC_CURRCY
            RATE             = EX_RATE
            TYPE_OF_RATE     = 'M'
            READ_TCURR       = ' '
          IMPORTING
            LOCAL_AMOUNT     = VALUE
    In our BW (7.0) system Exchange Rate Type M is maintained for all currencies to EUR only.
    I have a new ERP system connection for Far East where doc currency = HKD, MYR, PHP etc
    and Local currency = SGD
    Requirement to convert doc currency (various) -> local currency SGD
    Because our XC Rate Type M is only maintained to EUR it is not possible to do a direct doc curr -> loc curr conversion because the rates are not maintained to SGD.
    My only solution is to triangulate the conversion i.e.
    doc currency (e.g. HKD) -> EUR -> loc currency (SGD)
    Has anyone any ideas as to how I would go about doing this?
    I searched threads for info about triangulation but found nothing!
    Hope help comes soon....

    Hi Arun, thanks for message.
    You mean fo rme to run the currency convesrion FM twice?
    so run one: to convert to EUR
    *this is part (1) to EURO
        CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
            DATE             = SOURCE_FIELDS-/BIC/SBILL_DAT
            FOREIGN_AMOUNT   = SOURCE_FIELDS-/BIC/SSUBTOTA3
            FOREIGN_CURRENCY = SOURCE_FIELDS-DOC_CURRCY
            LOCAL_CURRENCY   = 'EUR'
            RATE             = EX_RATE
            TYPE_OF_RATE     = I_F_RATETYPE
          READ_TCURR       = ''
          IMPORTING
            LOCAL_AMOUNT     = RESULT
          EXCEPTIONS
            NO_RATE_FOUND    = 4.
    and then run two to convert to SGD
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
            DATE             = SOURCE_FIELDS-/BIC/SBILL_DAT
            FOREIGN_AMOUNT   = SOURCE_FIELDS-/BIC/SSUBTOTA3
            FOREIGN_CURRENCY = 'EUR'
            LOCAL_CURRENCY   = 'SGD'
            RATE             = EX_RATE
            TYPE_OF_RATE     = I_F_RATETYPE
          READ_TCURR       = ''
          IMPORTING
            LOCAL_AMOUNT     = RESULT
          EXCEPTIONS
            NO_RATE_FOUND    = 4.
    I will try this and see what happens

  • Function module - convert to local currency

    Dear all,
    I need to use a function module to convert to local currency a document that has been posted in foreign currency, which function module can I use? I tried convert_to_local_currency but I dont get any output...
    Else I need a function module to reverse a GL document, which function module should I use?
    Thanks and best regards!

    Hi,
    Please use the following linke and see if this helps.
    Re: FI Reverse Document BAPI
    Regards
    K.R

  • Currency Conversion BPC 7.5 NW

    Hello Everyone,
    I have an issue with the currency conversion functionality.
    I know there were lot of discussion about FXTRANS topic. However, I am facing an issue while running the package:
    Application: Package Status Error".
    Exception occurred when running programs"
    I checked the CT configuration document, dimension properties, rule, logic etc. Not able to trace anything.
    I am performing the test on BPC 7.5 NW SP -7
    I run transaction UJKT, following is the message obtained:
    UJK_EXECUTION_EXCEPTION:BADI parameter error: "CURRENCY CONVERSION"
    "Currency Conversion" is the name of the package
    Can you please provide your inputs?
    Thanks in advance
    RJ
    I resolved the issue. One of thee dimensions, category used in Rate Application and consolidation application was different.

    Hello Everyone,
    I have an issue with the currency conversion functionality.
    I know there were lot of discussion about FXTRANS topic. However, I am facing an issue while running the package:
    Application: Package Status Error".
    Exception occurred when running programs"
    I checked the CT configuration document, dimension properties, rule, logic etc. Not able to trace anything.
    I am performing the test on BPC 7.5 NW SP -7
    I run transaction UJKT, following is the message obtained:
    UJK_EXECUTION_EXCEPTION:BADI parameter error: "CURRENCY CONVERSION"
    "Currency Conversion" is the name of the package
    Can you please provide your inputs?
    Thanks in advance
    RJ
    I resolved the issue. One of thee dimensions, category used in Rate Application and consolidation application was different.

  • Currency Conversion using third party tool

    Hi,
    I am trying to access BW from a third party tool and so far been quite successfull accessing BW Infocubes and Bex Queries by using OLAP BAPIs. However my customer wants to use currency conversion as it is available in BEX in the third party tool as well. I need some thoughts in this direction from experts who have worked on Business Objects and BW integration.
    I believe Business Objects has a similar interface with BW using OLAP BAPIs. Is there a currency conversion functionality available in Business Objects for BW? Would really appreciate if somebody, who has tried out this feature, can share some of his/her experience.
    Thanks,
    Anurag.

    Jean,
    We use Maestro for all our scheduling scripts. To start\stop the
    environment and start\stop applications. We create a shell script that uses
    escript to start/stop applications. Maestro just calls the shell scripts
    and monitor it for completion. I think you have to write the shell script
    in a standard way to return an error if it does not finish properly. Here
    is an example:
    #!/bin/csh
    source /appls/forte/fortedef.csh
    $FORTE_ROOT/install/bin/start_nodemgr -fm "(x:300000)" -e TR2ProdEnv
    ps -fu forte | grep -v grep|grep nodemgr>/appls/forte/production/scripts/KBB
    set KBB=/appls/forte/production/scripts/KBB
    if (-z $KBB) then
    exit 1
    else
    exit 0
    endif
    Hope this helps.
    ka
    Kamran Amin
    Forte Technical Leader, Core Systems
    (203)-459-7362 or 8-204-7362 - Trumbull
    [email protected]
    From: Jean Mercier[SMTP:[email protected]]
    Sent: Monday, April 12, 1999 10:36 AM
    To: Forte-Users (E-mail)
    Subject: Using third party tool to initiate a Forte batch program
    Hello Forte Users,
    Our company has acquired a software product called Maestro. It's a
    production scheduling facility that manages tasks for batch mode
    execution.
    We would like to know if anyone out there has had any experience using
    this
    product with Forte. One recommendation that we discussed was to have
    Maestro start a script on Escript to communicate to an agent that would
    start the batch process at a specified time. Has anyone done something
    similar or can offer any suggestions ?
    Thanks in advance,
    Jean Mercier
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Adventure Works - Financial Reporting - Amount - Currency Conversion

    Hi all,
    I was looking into currency conversion in the Adventure Works cube (SQL2008R2).
    For each measure that need to be converted, a measure expression is used (e.g.: [Internet Sales Amount] / [Average Rate]), except for Amout in the measure group Financial Reporting.
    When creating a pivot table with that measure and changing the destination currency, the Amount is converted to the selected currency.
    How is it done ? (because there is no measure expression for that one)
    (I had a look at the MDX script of that cube, but could not find anything about that)
    Thanks for your answers.
    Kind Regards,
    Guillaume

    Hi Guillaume,
    According to your description, you are looking for currency conversion in the Adventure Works cube. In Analysis Services, we can use the Business Intelligence Wizard to define currency conversion functionality for a cube, or you can manually define currency
    conversions using MDX scripts. For the detail information about it, please see:
    Currency Conversions (Analysis Services - Multidimensional Data)
    Currency Conversion in Analysis Services
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Function module for conversion from dollar to indian currency

    what is the standard function module used for the conversion of one type of currency to other?

    try this CONVERT_TO_LOCAL_CURRENCY.
    Otherwise go to se37 and search for ConvertCurrency

Maybe you are looking for

  • More Text and transitions???

    Hey guys i love the new iMac and iMovie, but i want More text options and more transition options. i have a a friend that has an older version and has a LOT!! of extras for these two options i cant seem to find any, Can anybody help me, Please!!

  • Have unlocked 3GS from EUR-can I buy a SIM in USA for Data, phone and text?

    Hi - I live in Germany and am planning a 3 month trip to the US. I have an unlocked iPhone 3Gs that I would like to use while I am in the states. I'm exhausted and confused looking at the various prepaid phone plans in the US and I am not entirely su

  • Validation error corrupts component tree?

    I've got a strange problem trying to use validation on input fields. The basic setup is as follows: I've got a page divided into two parts with separate h:form tags, the one holding a dataTable with some elements and the other showing the element det

  • Open attchment

    please can some one tell me how to open a .zip file which is inside a pdf. if I click open it wont let me because its saying I don't have permission, I've looked in the help files and in the preferences but there is no where where I can set the permi

  • How to Scan from C3180 on Mavericks 10.9.2

    I recently bought a new Macbook Pro with Mavericks 10.9.2.  I downloaded the drivers for my C3180 All-in-One from the HP site and can now print without a problem.  However I can't scan and see no way to do so. There is no HP Scan nor HP Utility progr