Currency Conversion at Query Level

Guys,
Can some one tell me step by step procedure to do Currency conversion from USD to Mexican PESO at query level in BI 7.0. I have read lot of threads but not clear in maintaining the Exchange rates and also in creating the variables. 
Thank you,
Kumar

Hi Kumar ,,
You're able to convert the currency amount on the routine ...
Using this function :
CONVERT_TO_LOCAL_CURRENCY
Sample:
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
        DATE             =  " current date.
        FOREIGN_AMOUNT   = " local currency amount (peso)
        FOREIGN_CURRENCY =  " local currency
        LOCAL_CURRENCY   = 'USD'
     IMPORTING
        LOCAL_AMOUNT     = RESULT " result.
     EXCEPTIONS
        NO_RATE_FOUND    = 1
        OVERFLOW         = 2
        NO_FACTORS_FOUND = 3
        NO_SPREAD_FOUND  = 4
        OTHERS           = 5.
To maintain the exchange rate, you can go to tcode: OB08
Hopefully it can help you a lot..
Regards,
Niel
thanks for the points you choose to assign.

Similar Messages

  • Currency conversion with query selection mask and InfoObject 0Curtype

    Hi,
    question to following scenario:
    in the data source is an column with the currency type. This currency type column contains values like
    10 = company code currency
    20 = account area currency
    So for each data set in the table is an assignment of currency types.
    In the cube is an InfoObject called 0Curtype (for currency types 10,20,30 ...).
    In the BEx Query should a filter or selection be possible before the whole data is displayed.
    The user can select in which currency he wants to display the data. When he selects the 10 the whole data is displayed in different currencies which are available because its local currency (Euro, Dollar etc.). By selecting 20 the whole data is displayed in Euro.
    Does anybody knows how to achieve that? Is there any function module availabe which is provided by SAP and it is available for use?
    Thank you in advance!!!

    Hi There:
    You have two options available.
    One you can define currency conversion variable in transaction RSCUR. Then use this currency conversion variable at query run time using a formula Key figure and go to Conversions tab and select this variable. Then at query run time the query will convert your key figure from source currency type to target currency type. But this can significantly impact your query run time because the query will calculate this at query run time.
    The second option is to use a standard SAP function module CONVERT_TO_LOCAL_CURR in the back end and store this key figure in the back end during data load. This way the query will run faster for you. The difference is significant in my case.
    Good luck.
    Let me know if you need more information.
    MP.

  • Date to Month Conversion at Query Level.

    Hi,
    I have Net due date in the Info provider.
    At query level i have to create a restricted keyfigure based on Net Due Month.
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    Thanks and Regards,
    MuraliManohar.

    Hi,
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    you can calculate , but as he said you can add in cube ,  may be for cal month you are taking som eother date field.
    in this case write one customer exist code .
    create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
    in routine wriet the code as when that varaible .
    l_s_range - high , low and give then take the month form that date
    like netdue date +0(6)-- gives month and year
          netdue date +0(2)-- gives month
    then rtestrict that variable with your keyfigure.
    Thanks & Regards,
    sathish

  • Time conversion at Query Level

    Can anyone suggest any methods to convert the time from UTC time zone to PST time zone at Query level without changing at backend level???

    If it is a key figure you can create a formula and add the offset.
    If it is a characterisitc and you want to limit the selection you can use customer exit variables. If you want to display the characteristic value, then you may be able to do a replacement path variable to convert characterisitc to KF and then use a formula to adjust the offset.

  • Currency translation on Query level (YTD exchange rate)

    Hi Experts,
    I want to implment the currency translation logic in query as below. Please advise what I should do.
    Case 1
    Variable entry screen
    Posting date (range): 01.09.2007 - 31.03.2008
    Query result
    Sales amount figures from 01.09.2007 - 31.12.2007 => use exchage rate at 31.12.2007
    Sales amount figures from 01.01.2008 - 31.03.2008 => use exchage rate at 31.03.2008
    Case 2
    Variable entry screen
    Posting date (range): 01.09.2006 - 30.06.2008
    Query result
    Sales amount figures from 01.01.2006 - 31.12.2006 => use exchage rate at 31.12.2006
    Sales amount figures from 01.01.2007 - 31.12.2007 => use exchage rate at 31.12.2007
    Sales amount figures from 01.01.2008 - 30.06.2008 => use exchage rate at 30.06.2008
    In query, key figure sales amount will be shown in ONE column. Please give a hint how to implement this issue.
    Thanks in advance.
    Cheers,
    Helen

    Hi Helen,
    I guess you are trying to user conversion based on data record. data record intunr dependent on variable entry.
    So for the definition of currency translation, use time reference as end of calender year/quarter and info object as posting date.
    This should work fine for the same key figure, based on posting date, as per the example provided by you.
    Hope I am clear enough.
    Naveen.A

  • Need help in currency conversion

    i am doing currency conversion at query level.
    i am getting this error message for the output.
    Diagnosis
    The exchange rate 19.334.782,61- was calculated via the base currency INR. This produced a rate which exceeds the maximum allowed value of 9999.99999.
    System Response
    The processing can not be continued because the calculated rate can not be used.
    Procedure
    Check the conversion rate to the base currency INR and the exchange rate type MA. If the rates are correct, you must agree different conversion factors for the currencies in question (e.g. 100:1 instead of 1:1), so that the resulting conversion rate does not exceed the value 9999.99999.
    Notification Number SG 119
    how do i change that factor from 1:1 to 100:1 , which is mentioned above ?

    Hi,
    thanks for reply.
    But changing in SPRO ->  is just the display option.
    But the issue that is being faced is with the currency conversion in the query.  since the rate for that currecny maintained in tcurr table is a very small value, the conversion is not happening and its displayed as it is in the query output.
    also, we cannot go with the option of changing the ratio in tcurr table for this currency, because there are so many dependent objects and then we have to change some logic for all those to incorporate this rates. and our Basis team has mentioned that changing the ratio will not be done because of this.
    how do i go about?  whether any other methods available?

  • Currency Conversion Question

    Hello,
    I have a  user who would like to enter the target currency type and  the target currency value via a selection screen. In other words, bypass the currency translation table.
    Is there a standard scenario that can accomplish this requirement ?
    Thanks
    Dorothy.

    Hi
    You can do currency conversion at information building level or query level.
    At infoprovider level, you can use standard function module:RSW_RATE_GET_BASIC to get rate for given source and target currencies.
    Check: Currencies conversion at query level
    https://www.box.net/shared/ekvqbry86p
    More Docs ...
    http://sapbwneelam.blogspot.com/2007/08/bw-useful-function-modules.html
    Hope it Helps
    Santosh
    Sorry i posted to many times ( i had a problem in my internet explorer
    Edited by: Santhosh Nagaraj on Oct 14, 2009 2:42 PM
    Edited by: Santhosh Nagaraj on Oct 14, 2009 2:44 PM

  • Unit Conversion in Query Designer

    Hi All,
    In one of my report, i have to show the gross weight in column against material which i am reading from material master.
    Now the weight is stored in two different unit's KG & G.
    But i have to show the weight finally in KG.
    Does any body has any idea of performing unit conversion at Query level i.e. in Query Designer.
    Thanks.

    Rakesh the same i am doing, that is reading the weight value from material master through formula variable using replacement path.
    Now when i create a key figure like this, there is a tab of 'Conversion' in that there is mentioned the 'Unit conversion'
    In there, there are 2 options
    1. Conversion type - this is a drop down but with no vlaue
    2. Target Unit - Where i selected KG.
    But output remains the same, i.e. in KG.
    M I missing something ?

  • Currency conversion type by customer exit variable doesn't work

    Hi all.
    In my query I need amounts by quarter, applying quarters last date rates as currency conversion.
    Query has Year parameter. Based on this parameter, by customer exits I calculate every quarters last date and use them as currency conversion types.
    The problem is that query DOESN'T APPLY currency conversions!
    I checked TCURR table - currency conversions do exist for applied days
    I checked my customer exits - the date calculation works fine
    I suppose where is something wrong in query processes (customer exits/currency conversions) sequence before running it.
    Someone knows anything 'bout that?

    Check these docs.. and check again.
    [Creating Currency Translation Types|http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6813e07211d2acb80000e829fbfe/content.htm]
    [Use Variables for Currency Conversion|http://www.scribd.com/doc/7061035/How-to-Use-Variables-for-Currency-Conversion]

  • Only 2 Currency Conversions are visible in Analyzer

    Hi Expperts,
    we have 5 currency conversions in Query designer(we defined 5 currency conversions in BI system), those all are comming in query designer.
    when i excute the query in analyzer when i want to change the target currency(Right click query Properties, currency conversion tab) here only 2 currencyies are available, remaining other currency conversions are not comming here please let me do we need to do any settings for this.
    Thanks,
    Chandra.

    Hi,
    Currency conversion options in query display are available on the basis of result ouput.
    Check if the data output is having thsoe conversions or not.
    I hope it will help.
    Thanks,
    S

  • Currency conversion in the query designer level

    Hi
    Iam calculating the 'Financial Loss' in the Formula in the query designer.And it comes in SAR(Saudi Riyals).
    But i want the 'Financial Loss' in USD in the Query Designer. Because i want the USD Financial Loss to be use in some other calculation.
    Please let me know how can we do this one in the query designer. I really appreciate for it .
    Regards
    Kumar

    Dear Ravi,
    Basically there are 2 ways to do it: routine & query level.
    If query level, you need to maintain it first using tcode RRC1, then you use it in your KF in your query. .
    Routine level,
    You can create new KF in info-provider, then in the update rules routine, you can use this function to convert the currency :
    CONVERT_TO_LOCAL_CURRENCY
    Hopefully it can help you a lot.
    Regards,
    Niel
    thanks for any points you choose to assign.

  • *Currency Conversion created in BW BEX query not working in BO report:*

    Hi,
    We have created a key figure with currency conversion and working fine in BEX when I execute that query.
    But when created a BO universe and WEBI report on that query, I am getting following error.
    "MDX query failed to execute with Error".
    Can anyone please help.
    Thanks
    Dhana

    Hi
    Thanks. But new problem.
    When I pulled OCURRENCY to free area now it is working in BO also.
    But now another problem is --> for Currency translation am getting prompt in BO also to select target currency. There , all values (all currency types) are not displayed , only USD is coming. WEBI report is fine for USD conversion.
    But when I want to convert into AUD , its not there in LOVs .
    Some time back this problem exists in Bex also, but when we changed cube level setting as below:
    Infocube : display-> OCURRENCY right click and go to "provider specific properties"..and then
    go to "object specific properties "  and then for "Query Exec Filter Val" selected "M Values in Master data table".
    Now when executing query in Bex for target currency selection values it is taking from master data and displaying all types like USD, AUD, INR ..etc. in drop down list.
    Now created new BO universe and new WEBI report but only USD is coming in selection LOVs not all types.
    Please help us.
    Thanks
    Dhana.

  • Local Currency At query Level

    Hi All,
    Is their a way to permanently set local currency at query level. Or do we have to set the currency conversion on all the fields.
    Kind Regards
    James

    Yes,You will have to set at each KF at query level.But if you want for all the KF's at one shot,you may have to do the currency conversion for all the KF's at backend cube level  in transformations.
    Is this conversion based on the current day at query level?, if so, the cube level calculations would not be right since the cube data will get conversions based on that days load.

  • Currency Conversion problem in query designer

    Hi,
    A requirement has come that infoobject which contain multiple currency type, need to convert into a single currency type in Bex reporting as user want to see only one currency value in report.
    There are three keyfigures refering different calenders for conversion. For examle . GR amount is based on GR date, IR amount is based on IR date and PO amount is based on Doc date. Query is build based on a infoset.
    I am doing following steps to achieve the task::
    1. In TCODE - RSCUR, created three Currency Conversion Type each for GR, IR and PO and each one refering different 0calday calender
    2. Defined exchange Rate Type as "M"
    3. Currency Tab -> Source Currency = "Source Currency from data Record"
        Target Currency -> Fixed Target Currency = "USD"
    4. Time Ref. Tab -> Fixed Time ref. = "Current Date"
        Variable time reference = "To the exact day"
        Special InfoObject = <InfoObject name>
    5. In query designer, Key figure property for GR amount -> Conversion -> Conversion type = <Name of Currency Conversion Type which defined in RSCUR>
    6. Repeated the same for IR Amount and PO Amount key figure
    While saving, getting following error::
    *Cannot apply Currency translation type <Currency type name> in Infocube <Infoset name>. *
    Diagnosis
    You tried to translate a query element with the currency translation type <Currency type name>. The translation type <Currency type name>, however, has variable time reference or variable target currency relevant to characteristic Document Date. Characteristic Document Date is also not available in InfoProvider <Infoset name> and it references either none or more than one characteristic () of the InfoProvider for Document Date, or Document Date is not a base characteristic.
    System Response
    Procedure
    Adjust the query definition or create a special currency translation type for one of the characteristics .
    Please help!
    Please note that there are three key figures which need conversion using different calenders.
    Sanjiv

    Hello,
    I have done the same what you said, but same error still showing.... 
    I also tried to change from "Special InfoObject" to Infoset level and it works with one KF. Since all three KF are under one Infoset and there is limitation that if Currency Conversion Type is defined on Infoset level then only one KF will be assigned for a Infoset where as I am using three KFs with three relevant time characteristic.
    Any suggesion from others?
    Sanjiv

  • Sorting Currency conversion Variables in Query Selection screen

    Hi Experts,
    I have an issue in sorting variables.
    A Currency translation is used here which has two selection options here, one for "Currency" and one for "Currency conversion date". They just pop in somewhere in the selection screen with out order. I want to put them together either in the middle or at the bottom.
    They are not visible in the Variable sequence tab of query properties.
    I changed the text for each of them (Ex. "XCurrency"), so that it sorts alphabetically, but no difference.
    Had anybody come accross this issue before.
    regards
    G Rai

    Hi,
    This seems strange that the variable does not show in the query properties. One thing I can suggest it to try changing the technical name/desciption of the variable if that changes the order.
    Please update back the thread if that helps.

Maybe you are looking for