Currency Translation with a Calculate Key Figure

Hi,
Does anyone have experience with applying currency translation in BEX/Query Designer on a Calculated Key Figure? 
I have a need for a calculated key figure to be converted to a target currency of USD (which is already defined via RRC1).  I also need the Results Row to display the summation in USD. 
Currently, my calculated key figure displays two currencies (MYR and USD) and an incorrect summation of both currencies.
Here is how I have defined my calculated key figure:
NODIM ( 'Consumption (STOs)' ) * NDIV0 ( 'Material Source Plant Cost' / NODIM ( 'Source Plant Price Unit' ) )
I am multiplying a quantity field by amount field and then dividing by a price per unit field.  I have applied NODIM on the other fields so that the amount field will retain it's properties.
Running this query through transaction RSRT and clicking on the Generate Report button, I get the following message:
"<b>Currency translation cannot be carried out for element 20 (my calculated key figure). Element 20 neither contains a Basic key figure nor a variable with type Amount. For this reason, you cannot and do not need to perform a currency translation</b>."
From the above message, I must be setting my calculated key figure incorrectly. 
Any ideas?
Thanks!
Hau

Hello Ajeet and N Ganesh,
Thank-you for your help.  I verified that the dimensions of my key figure 'Material Source Plant Cost' was of type 0AMOUNT, so that was not the issue.
The issue was in the error message that was returned when I pressed the Generate Report button in RSRT.  Essentially, currency conversions in BEX can only be performed on basic key figures or simple replacement path variables. 
I can perform the currency translation on a SIMPLE calculated key figure that contains only the replacement path variable (where 'Material Source Plant Cost' is an attribute of my master data characteristic ZMAT_SRC).  However, I found that I cannot perform the currency translation on COMPLEX calculated key figures, like in my example above. 
To get around this currency translation issue and as suggested by the error message, I created a SIMPLE calculated key figure for replacement path variable 'Material Source Plant Cost' and performed the currency translation.  The problem with this solution is that while I get my currency translation, I also get a calculated key figure that is aggregated, according to the query layout.
To get around the aggregation issue, I also created a dummy counter as a master data attribute (of ZMAT_SRC) to capture the aggregation.  I assign a value of ‘1’ to this dummy counter/master data attribute in the update rules to my ZMAT_SRC infoobject.
I then divide my new (aggregated) calculated key figure for 'Material Source Plant Cost' by the dummy counter (which is also aggregated).  Essentially, I divided the aggregated replacement path variable by the scaling factor.  The result is that I get a new calculated key figure that has been translated into the target currency and in the correct scaling factor.  I can use the new calculated key figures in the above formula; regardless of the report is rolled-up.
Again, thanks for your help.  It gave me the pieces to solve this puzzle.

Similar Messages

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • Regarding  currency translation for Display attribute(key figure)

    Hi Gurus,
    How can i do currency conversion for  MATERIAL COST(key figure) ,which is  Display Attribute  of MATERIAL...
    thanks advancely.......
    CHANDRA

    Hi,
    You can create the currency conversion type in the T code RSCURR.
    Here are the steps...
    1.     Transaction for creating currency translation type is RSCURR
    2.     Choose the Exchange rate, Source currency, Target Currency and the Time reference in the respective tabs.
    3.     In the query definition choose the Currency Conversion Key in the properties of the Key-figure.
    Regards,
    Yogesh.

  • Currency translation for a restricted key figure in Query designer

    Dear Experts,
    In my query i am using a restricted Keyfigure (ZRKF1 which is reusable). I have to change the currency translation key of the restricted Key Figure  from zcur1 to zcur2. I am not able to edit zrkf1 Currency translation in the properties( It is in gray colour) ,while i can do it for a normal keyfigure.  if i edit zrkf1 then other queries will be affected. How should i solve this? Can i copy and paste the zrkf1 to zrkf2 in order to use zrkf2 with currency translation zcur2 in my query ? How can i coy and paste restricted key figure?
    Thanks,
    Riya

    Hello Riya
    I think you can't change the currency transaltion type for RKF... to change it in RKF just make the changes in the KF which you have used in RKF....
    If you don't want to change the CURR translation type in KF1 than copy it paste it (KF2)and change in that KF2...now u can use KF2 in restricted KF...
    Thanks
    Tripple k

  • Currency translation with user defined exchange rates in a BEx report

    Hi guys,
    our business department requests a new functionality in our BW system. They want to simulate a currency translation in a BEX report. But this currency translation should be so flexible, that the user can change the exchange rates directly in the report.
    For example: The report should show a list of all our local company revenues. In the first column the plan revenues will be shown in the local currency (each company has its own local currency: USA->USD; Japan->YPN, Great Britain->GBP and so on). This revenues comes from a normal infoprovider, loaded via flat-file.
    In the second column the user should be able to enter or change a plan currency rate. The entered exchange rates should be stored in BW for a next use. They won't maintain the rates directly in TCURR, because this rates are only for simulation use !
    In the third column the translated Revenues in Euro currency has to be shown under the use of the exchange rates from the second column.
    I investigated a lot of time in the SAP help and here in the SDN, but I didn't find any solution to realize this. Is there generally a possibility to make a currency translation with exchange rates out of the TCURR? Would it be an option to use the integrated planning function of BW? Or is this requirement to far away for an simple implementation in SAP BI ?
    I hope, someone of you has also fixed a similar problem or has a good inspiration.
    Thank you in advance.
    Thomas

    thanks for the prompt reply!
    Unfortunately, exchange rates are not a part of my cube. They are held in different tables, and referenced depending on what kind of exchange rates I need to be looking at (average rates, daily, planning etc.). The only way for me, at the moment, to know which rates have been used is to go to query global view, and look at the type of conversion, and then try to figure things out. Plus there can be a different key date used in the query, which makes things more complicated.
    Anyway, it was worth asking
    Thanks again.

  • Is there any way out in business explorer to calculate key figures

    Hi friends,
    I need your help to calculate key figure in run time, actually I have a infoset of billing item and stock transfer order (STO) with purchase requsition (PR) . one STO line no. is having multiple PR for example one STO line of 100 nos qty is having two different PR for 50, 50 nos. but in billing item there is no linking of PR only STO and STO line is there. I am having problem to calculate balance qty in case partial delivery for example if delevered qty is 10 then pending quantity should be 40 in first PR and 50 in second PR but it is showing 40, 40 in both. please help me out to resolve this.
    With Regards,
    Raman

    Hi Radha,
    If I am not wrong, you need to have the delivered quantity at the PR level in order to get the pending quantity per PR. Since delivered quanity is for the STO line item only, you can get the pending quantity for each STO line item and not the PR. You can get the correct values for the STO line items are using the query designer options.
    Regards
    Renu

  • Problem with Non-cumulative key figure.

    Hi all,
    I am facing the problem with the Non-cumulative Key Figure (Quantity). I have created and loaded data to the non-cumulative InfoCube. <b>This cube is defined by me to test the non-cumulative key figure.</b>
    <b>In BEx query the non-cumulative key figure and cumulative key figure (Value change) both display same values, i.e. non-cumulative key figure contains the same values which we have loaded for cumulative value change. Non-cumulative key figure is not calculated based on associated cumulative key figure.</b>
    I have done the following while defining the non-cumulative InfoCube:
    1. Created a non-cumulative key figure which is associated with a cumulative key figure (value change).
    2. Loaded data to non-cumulative InfoCube from flat file.
    3. Compressed data in non-cumulative InfoCube after the load.
    Note:
    1. Validity area is determined by the system based on the minimum and maximum date in data.
    2. Validity determining characteristic, 0CALDAY is the default characteristic selected by the system.
    Is there any other settings to be done?
    Please help me in resolving this issue.
    Thanks and regards
    Pruthvi R

    Being a non-cumulative KF, total stock is automatically takes care of that.
    Try putting all the restrictions which you have included for total receipts and total issues, for eg,  restrict Total Stock with the movement types used in Receipts as well as Issues.
    Check and revert.
    Regards
    Gajendra

  • InfoProvider with non-cumulative key figures

    what does infoprovider with non-cumulative key figures...
    noncumulative key figures..
    looking for reply

    it's property of the KF... nothing do with Cubes or ODS.
    Name itself telling non-Cumulative KF. We can't cumulate this KF. Suppose take the Case Sales Amount and No of Employees. Sales Amount can be cumulated over Time. But No Employees can't be cumulated. Same is the Case with Stock as well.
    Nagesh Ganisetti.

  • BO( WEBI,QAAWS ) can't sustain bw query : create new calculate Key Figure ?

    BO( WEBI,QAAWS ) can't sustain bw query : create new calculate Key Figure ?
    I create three new calculate  Key Figure : TotalQty1,Rate1,TotalRate1  on bw query. Return values:
    TSAS defect1     Qty     TotalQty1     Rate1     TotalRate1
    weight inaccuracy     33.000     33.000     37.500 %     37.500 %
    poor function     10.000     43.000     11.364 %     48.864 %
    gap out of spec     9.000     52.000     10.227 %     59.091 %
    scratch  /crack/ dam     8.000     60.000     9.091 %     68.182 %
    broken glass/mat     5.000     65.000     5.682 %     73.864 %
    missing display     6.000     71.000     6.818 %     80.682 %
    assembly defect     4.000     75.000     4.545 %     85.227 %
    plastic deformed     4.000     79.000     4.545 %     89.773 %
    no function     4.000     83.000     4.545 %     94.318 %
    poor  printing     5.000     88.000     5.682 %     100.000 %
    But Create on universe  connect  to this bw query, I used QAAWS and WEBI to runat , TotalQty1,Rate1,TotalRate1   key figure values are Qty value, that is error:
    TSAS defect1     Qty     TotalQty1     Rate1     TotalRate1
    weight inaccuracy     33     33     33     33
    poor function     10     10     10     10
    gap out of spec     9     9     9     9
    scratch  /crack/ dam     8     8     8     8
    broken glass/mat     5     5     5     5
    missing display     6     6     6     6
    assembly defect     4     4     4     4
    plastic deformed     4     4     4     4
    no function     4     4     4     4
    poor  printing     5     5     5     5
    pho:
    BW QUERY: [http://space.itpub.net/attachments/2010/04/10339719_201004211645561.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211645561.thumb.jpg]
    WEBI:[http://space.itpub.net/attachments/2010/04/10339719_201004211637351.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211637351.thumb.jpg]
    QAAWS:[http://space.itpub.net/attachments/2010/04/10339719_201004211637591.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211637591.thumb.jpg]
    Why? BO can't sustain bw query : create new calculate Key Figure ?
    Who to figure out this question?
    Because I can't to do create new calculate Key Figure   in webi or Xcelsius ,So ,I create new calulate Key Figure  on BW QUERY.
    Thank you.
    BestRegards,
    Howard.
    Edited by: flying on Apr 21, 2010 10:48 AM

    HI Ingo,
        Didier Mazoue  say universe accept bw query Restricted KF and calculated KF :
       [ Restricted and calculation keyfigures| Restricted and calculation keyfigures]
       Why I create new Restricted KF and calculated KF for bw query, QAAWS,WEBI are can't return ok datas for new Restricted KF and calculated KF ?
      I create KF on Universe :
        select ued : <EXPRESSION>@Select (Key Figures\Qty)</EXPRESSION>   OR <EXPRESSION>SUM(@Select (Key Figures\Qty))</EXPRESSION>  
    parse error: Parse failed:Invalid definition(UNV0023)
       Thank you.
    Regards,
    Howard.
    Edited by: flying on Apr 23, 2010 6:00 AM

  • Currency Translation with dynamic scaling

    Hi Experts,
    If you have experienced such a requirement,
    pls share what you leant.
    As you know, the scaling option is fixed for
    each key figure.
    Under such situation, if you changed currency
    using currency translation, you will feel
    this scaling is not suitable for this currency.
    For example,
    Default -> 1,500,000 JPY
    Scaled by 10,000 > 150 JPY with scale 10,000
    If translate JPY to EUR, by rate of "1 EUR = 150 JPY".
    (Scaled is fixed by key figure setting.)
    Default -> 10,000 EUR
    Scaled by 10000 > 1 EUR with scale 10,000
    But this is not suitable for the EUR user,like German people.
    So we want to change scale dynamically on the currency.
    Do you have any ideas on this ?
    Best regards,
    Manabu from Japan

    You can do VBA code to check currency and adjust the values (not exactly scaling factor ).
    If you are using web template based reports, there might be more options there, take a look <a href="http://help.sap.com/saphelp_nw04/helpdata/en/61/2a813b731fd60ee10000000a114084/frameset.htm">here</a> for scaling factor adjustment in reports.

  • Currency Translation with Variables

    My currency translation is not working and I can't figure out why. Here's what I've done:
    1. Created a variable on 0CURRENCY, processing by user entry.
    2. Created a currency conversion type. Exchange rate type 1001. Source currency from data record. Target currency from variable (defined in step 1). Current date.
    3. Created a query in the BEx. Set my key figure to use the currency conversion key defined in step 2. The target currency is set to the variable created in step 1.
    When I run the query it asks me to enter my currency. However, it does not do a conversion on the key figure. i still have some rows showing different currencies.
    Can anybody see if I have done something incorrectly, or suggest how I can get this to work.
    Cheers

    Have you transferred the exchange rates from R/3?
    RSA1 -> source systems -> rightclick on system -> "transfer global settings" -> check currencies and update

  • Trouble with Non Cumulative Key Figures

    Hi all of you,
    I am working on Non Cumlative Key Figures, (NCKF). I have the data like this
    Sales rep S100 visited SHOP S1 on 1st Jan and 10th Aug, and transacted worth         100 and 500
    SHOP S2 on 1st Mar and 1st July and transacted worth 200 and 300
    SHOP S3 on 3rd Sept. and transacted worth 400
    Sales rep S200 visited SHOP S1 on 1st Jan and 1st Aug and transacted worth 100 and 300,
    visited SHOP S2 on 1st April and transacted worth 200     
    I created Non Cumulative Key Figure in the following manners:
    In modeling in InfoObjects I double clicked on my key figure BILLAMT and selected the Aggregation tab. I selected Counter (all values) for Exception aggregat. By default Agg. Referen. Char was 0calday. I then activated the info object and went to BEx. Here I took other IOs like Salesrep, Shop NUM and Dt. Of trans in rows and Bill amt in columns and executed the report. I am not getting the output how it should come for NON cumulative key figures.
    But when I right click the key figure Bill Amount in BEx in change query mode and select properties. I go to the option Calculate result as and selected the option as “Count all values”. And in another option Calculate Single Value as I selected the option “Count all values”. I said OK, saved the query and executed it. Now the output is similar to how it comes for a Non Cumulative Key Figure query but I am unable to understand the output.
    Now my doubt is where do we set the properties for Non Cumulative Key Figures? Is it in the Administrator Workbench under Modelling under InfoObjects?
    OR
    Is it in BEx change query mode by right clicking on the key figure and selecting properties?
    Please explain.
    Thank you
    TR.

    As for the setting for Non Cumulative key figures...the default setting is done in the Key Figure properties, where u can define the Exception Aggregation. This property is used as such in the query, but if suppose u are getting the normal aggregation in the query , what you could do is "Create The Key Figure as Global Calculated Key Figure in Bex" and go to properties...click on the Button for aggregation ..select the aggregation and define with respt to 0CALDAY ..here.
    Hope this helps.

  • Problem with Overwrite for Key Figures in ODS

    A bit of a long explanation, but the problem is not so complicated...
    We have an ODS containing contract line items.  Each line item has a key figure "Total Contract Target" that is marked with update type "overwrite".  We have modified the extractor that delivers data for this ODS so that the key figure is set to a value from the contract header.  Since we don't want the key figure to be duplicated if there are multiple line items on the contract, the user exit for the extractor modifies only the first line item delivered.
    For example, overall contract target value = 100.  Contract has 3 line items.  Contract target value for line item 1 is 100.  Target value for line item 2 and 3 is 0.
    This all works fine for initial loads, but there is a problem with the business content extractor for deltas.  Whenever a single change is made, it delivers three sets of  records.  Continuing the example, we would receive 9 records for the contract (3 sets of 3 line items).  Each of the three sets contains the same records.  Only the first set has the correct contract target value.  Since the ODS key figure is set to overwrite, our method of setting the total contract value in the first record doesn't work, because the extractor delivers duplicates so the duplicates overwrite the total with a 0.
    Would setting the key figure for total contract value to update type "additive" solve this? (I'm concerned that additions would be made if there were only a change to characteristics and not the key figure).  Thanks for your assistance.

    Since we ought to post solutions to problems we discover for people who search this forum...
    Solved this by modifying the customer exit for the extractor to set the key figure for the first contract line item encountered AND for all subsequent records with the same contract number / contract line item.  Since the key figure in the ODS is set to overwrite, this makes sure that the last record written doesn't overwrite the key figure with 0.

  • Issue with Bex report - key Figures not populating correctly.

    Hi Experts,
    I am facing an issue with a Bex report. There are three key figures of data type DATE having "Dec - Counter or amount field with comma and sign" datatype. After executing the query, in the report, for some sales documents the key figure fields are coming as 'X' and rest others are coming correctly in the date format as mm\dd\yyyy.
    When i check in the cube, these key figures shows values in decimal format and not in date format. The conversion is happening during execution.
    Pleas show me some light on how to identify the cause of getting 'X' for some Sales documents in the report eventhough some are coming correctly.
    Thanks,
    Anamika
    Edited by: Anamika Soni on Mar 12, 2010 10:48 AM

    Hi,
    The infobject has been defined with datatype "DATE" only. It has also been mapped from datasource to infocube correctly as these key figures are populating correctly for some of the sales documents in the report. It is not like that for all the sales documents the key figures are not converting properly.
    Some Sales documents are not converting into the date fields but for some conversion happens properly in the BEx report. This is the issue.
    Please guide accordingly.
    Many thanks,
    Anamika

  • Calculate key figures totals in report based in multiprovider doesn't work.

    Hi dear Friends:
    We have a requirement where the data are in 2 different cubes, the layout defined is
    selections parameters :
    Zsales_offices
    0calweek
                   Columns.
                   0calweek  KFCalc1..............................KFcalc2.....................etc.
                   In rows.
                   01.2007   Qty on demand X unit cost.    sum of all qty's prods
                   02.2007
                   03.2007
                   04.2007
    the structure in cube z1mis contain:
    Zsales_offices,product,0calweeek,unit cost.
    the Second cube structure zdemand contain:
    Zsales_office, product,0calweek,qty on demand
    Our problem is:
    1. As you can see we need keep into KFcalc1 the product from multiply Qty on demand * unit cost but when the result is displaying the result is a wrong amount and the reason is because didn't´t exist a characteristic product in the layout, without this characteristic the amount for qty on demand and unit cost are summarized and multiplying with these amounts.
    We are trying to find a solution vía restricted key figures, calculating before aggregation, but it's not woks.
    I hope that you can give one suggestion.
    Regards.
    Eg@n

    Hi,
    putting product in the rows will slove the issues as the unit cost  depends upon the  prdoduct and therefore it will uniquely identify each of the material and then it will get multiplies with the qty and therefore you will get the correct result.
    this kind of issue you will always face when you are going to multiply cost with the Qty and as the cost differ with the individual material.
    Also putting material into the rows will cause the no. of rows to increase as all the materials will show up in the individual rows for the particular month.
    Also you can make a claculated key fgure for the multiplication and use before aggregation.
    But for that your both the key figures should be in the same cube i.e. in the same rows or the before aggregation will not work you will not even get an option of before aggregation in the CKF if the key figures belong to two different cubes.
    Since your qty and cost are coming from two different cubes before aggreagtion will not work here.
    And if you do before aggregation then you report will become quite slow as it will do all the multiplication anf then will bring the result.
    So it depends on your requirement and your design how to proceed.
    Hope it helps
    Thanks

Maybe you are looking for