UoM Conversion in Bex Query

Hi All,
I am using UOM (ZUOM) conversion variable in the keyfigures.
If i execute my selection screen i have a Select UoM field (ZUOM) for selection. The Keyfigure values are created in Litres L. If i select Tonne (TO) and execute the report the KF1 and Kf2 value is L getting converted to TO but i have created a formula ( KF1 + KF2) in that case conversion is not working i am still getting the original values i.e L.
for example
KF1 KF2  (KF1+KF2)
10L  20L  30L
In selection screen i entered Tonne (TO) in UoM the below values are displayed
KF1   KF2  (KF1+KF2)
5TO  10TO  30          
the ouput should be 15 not 30.
Please help me out in resolving the same.
Thanks in Advance.

Create a RKF1 with conversion
Create RKF2 with conversion
Create CKF = RKF1 / RKF2 with conversion
have u tried this way?
Thanks,
Krishnan

Similar Messages

  • Currency Conversion in BeX Query

    Hello Experts
    I want to have corrency convetion option in Bex Query and have few questions regardig that.
    i am using key figure 0DEB_CRE_LC which has currency as    0LOC_CURRCY.
    1. how do i allow user to enter currecny, using some input variable for currency char.?
    2. do i need to associate some date for this conversion?
    3. what exchange rate will be used?
    Thanks in advance
    Regards
    Sudeep

    Hello Sudeep,
    1. how do i allow user to enter currecny, using some input variable for currency char.?
    Answer: Create a variable on 0Currency and select the conversion type which you have maintained in RSCUR tcode. Make this variable as input ready. This will give the user the flexibility to enter the Currency.
    2. do i need to associate some date for this conversion?
    Answer: Yes you need to associate the Currency conversion type to your conversion. Same can be maintained in RSCUR tcode.
    3. what exchange rate will be used?
    Answer: In RSA1, goto source system tab and right click on the Source system. Select "Transfer exchange rates". This will transfer the exchange rates which are maintained in your ECC side. The exchange rates are maintained in table TCURR. you can check the table in SE16.
    Regards,
    Satyam

  • 0material alpha conversion in BEx query

    Folks,
    I want to ALPHA convert the material number during BEx query execution.  Once the query is executed, I should see the ALPHA converted number.  Please advise. 
    Thanks.

    Hi,
    can you please give an example of what you want to achieve? 0MATERIAL has already MATN1 as conversion exit....
    Achieving this in BEx during query runtime could be quite tricky...
    Alternatives would be
    - adding a nav attribute to 0MATERIAL like ZMAT_ALPHA and load it with the ALPHA conv exit
    - virtual charateristic
    - changing the displayed values in VisualBasic or in the WebTemplate
    hope this helps....
    Olivier.

  • UOM conversion within a query

    Hello Experts,
    Is there anyway to convert the UOM within a report. I can see you can do currency conversion under query properties but I cannot see anything similar for UOM. Currently we have various UOM being reported for Stock on Hand our users want the flexibility of showing this in say Litres or Tons etc. at the time of reporting.
    Regards
    Fiona

    Hello Fiona,
    You can have the users select via the query variable window at runtime the target UOM that you wish to examine.
    For more information please see: http://help.sap.com/saphelp_nw04s/helpdata/en/43/03731ddc696e97e10000000a11466f/frameset.htm
    Thanks,
    Nick

  • Date format conversion in BEX query level

    Hi ,
          We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013.
    we are not having any conversion routines and the date fields are used directly in the query .

    Hi,
    Try the below class file or may be create a method in your controller. It will resolve your problem.
    package com.XXX.DateFormatForSAP;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class FormatSAPDate {
    public static String changeDateFormat(Date sapDate) {
    String formattedDate = null;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    formattedDate = dateFormat.format(sapDate);
    return formattedDate;
    Try this code and let me know.
    Regards
    Mukesh

  • How can i determine if a UOM conversion is being used in a query?

    I need to find all the queries that are using a QTY UOM conversion.  i tried to do a where used and it didn't return anything.

    Hi,
    Check function module RSZ_I_BASIC_CHA_WHERE_USED
    also check this (try the program)
    Where-used list of an attribute (either display or navigational)
    From AHP
    Hope it would help.
    Regards,
    Satya

  • Question about UoM conversion

    I'm trying to implement the UoM conversion that is now standard in BI 7.0.  I think I have all the backend work done, but I'm having trouble converting the UoM on the front end when running a query.
    Here's what I did on the backend to set it up.
    1- I went to 0MATERIAL (BEx Explorer tab) and entered 0BASE_UOM as the Unit field. 
    2 - I then generated the conversion ODS.
    3 - I created transformation to the ODS using 0MAT_UNIT_ATTR.  I did have to use a master data lookup for the BASE_UOM field (using the values in 0MATERIAL) since the 0MAT_UNIT_ATTR didn't have the Base Unit of Measure, just the conversion one.
    4 - Loaded the ODS for 1 material (test material 1 EA = 1 EA and 1 KIT = 20 EA)
    5 - Defined a Converstion type (trans RSUOM).  I used Dynamic Option 3 (InfoObject, then T006 tables).  I set the Source UoM = DataRecord, and Target is set to "Selection during Conversion"
    Here's what I did on the query:
    1. For my key figure, I went to the conversions tab.  I selected my Conversion type.
    2. I created a user entry variable with a default value of "EA".
    When I run my report, I enter KITS on the selection screen, but the report still shows eaches.  I can navigate to the Currency conversion on the report via the menus, but I can't find anywhere for Units.
    Any ideas?
    Thanks,
    Rudy

    First, is there any particular reason why you used:
    Integer a = Integer.valueOf(1);while I used
    Integer a = 1; //boxing
    Just to get rid of boxing conversion as a possible issue--which it shouldn't be, but might as well keep it simple.
    Integer a = Integer.valueOf(1);
    Comparable<String> cs1 = a; // errorbecause we are assigning to a Comparable<String> an
    Integer value, and that's illegal, since String and
    Integer are not in a subtype relation (?)Something like that, yes. I'm not sure of the exact clause of the JLS that forbids it.
    >
    Comparable<Integer> ci = a; // ok
    Comparable<String> cs2 = ci; // errorbecause we are assigning to a Comparable<String> a
    Comparable<Integer>, and again, String and Integer
    are not in a subtype relation (?)Yep.
    Comparable<String> cs3 = c1; // warning
    Comparable<String> cs4 = c2; // warningit's what I believe is called 'heap pollution' I forget what that term means, and am too lazy to look it up, so I'll take your word for it.
    and I
    believe that on first use a ClassCastException will
    be thrown Sounds right. Run it and see for yourself.
    (although the compiler behaves correctly by
    flagging an unchecked warning, for compatibility with
    legacy systems, etc)Right.

  • Where to write IF THEN ELASE statements in BEX Query Designer

    Hi All,
    I need to write a formula in query designer...
    saying that to display the all Quantities in KGs.. Now articles are in Grams and KGs...
    So here i need to perform calculation like... if article is in KGs divide by 1, else if article is in Grams divide by 1000.
    where can i write this logic to perform calculation ...
    Thanks in advance..
    ravi.p

    hi chetan,
    No its not work.. why because i  need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'.  this is  attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting  Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight. 
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there any solution to solve this Problem...

  • Keyfigure has value in BEx query, but shows zero/0 in Webi

    Hi community,
    I have the following issue with a Bex query with 2 structures:
    in Bex, the budget column shows figures right. but in Webi, it shows zero for certain profit KPIs (calc. keyfigures, CKFs).
    only for these KPI cells, it is not a general issue with that budget column!
    in the Bex cell editor, I have created cell references for these profit KPI cells, but that should not be relevant.
    As SAP cannot connect to our BO Webi via OSS properly, I would like to address you.
    anyone had a similar situation or solution?
    every hint is appreciated! Many thanks and
    best,
    Phil

    Hi Ingo
    I am also currently meeting such a problem.
    I have Cubic Meter stored in my cube and my BEx query. Also, in my BEx query, I have a unit conversion to convert Cubic Meter to Cubic Feet.
    In WebI, when I pull out both Cubic Meter and Cubic Feet, Cubic meter returns me 0, while cubic feet returns me a figure.
    Below are the settings of the BW & BOBJ system:
    SAP BW SP6
    BOBJ SP2 FP2.3
    Hope to hear from you soon.
    Thanks!

  • Problem with a Bex Query Report with Web Intelligence

    Hello!
    I have a Bex query (with query Bex version 7.0) I'm connecting with Web Intelligence (4.0) but one of the attributes instead of displaying the description shows only the key, and it is strange because other cubes if given by the conversion.
    I wonder if there is a solution for this or if it is a problem of version 4.0 of Web Intelligence.
    I await your response,
    Greetings!

    Hi,
    Whereabouts in the application are you seing this problem?  (in the query panel conditions, in the prompt list of values, or in the table block? )
    also, what do you mean by "and it is strange because other cubes if given by the conversion" ?
    it's worth noting that the "key and text display properties" in the Bex Query Designer do not influence webi.  WebI consumes the global infoobject property from BW RSH1.
    Regards,
    H
    p.s. if you need to understand which features are or are not supported with BI 4.0 tools, please look here: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5

  • Display Leading Zeros in bex query

    Hi,
    I am new to BI and need to display leading zeros in bex report.
    There is an info-object billing number which is of type CHAR. The values, 00001 - 00010 has been given in the CSV file.
    when i generate the same in IP, the leading zeros are mentioned, but the same is not appearing in the bex query.
    I have tried ALPHA conversion but this has no affect on the output.
    How to achieve the same??
    thanks in advance for the answers

    Hi,
    To answer your question in detail, there is a  conversion routine at infoobject level( Tab- general ), that determines how the values are displayed in the front end. For ex, alpha conversion routine takes away the leading zeros when you display the value in query. ( 0001 displayed as 1 )
    Assuming this is custom infoobject, I would suggest you to remove the conversion routine from the infoobject. This will help you in displaying leading zeros in the report.
    However, you have to ensure that all the values loaded for this infoobject is properly alpha converted ( packed with leading zeros ) by adding a field routine in the transformation. This will avoid same values getting stored with different internal formats like 01,001 etc.
    Hope this explains.
    Thanks.

  • Are UOM conversions based on 0material not allowed in Infosets?

    `We've create an Infoset and now we want to do a Qty UOM conversion based on 0material.  We keep getting an error saying 0material is not a Key figure.  When we use a UOM conversion based off the T006 table it is fine.  Am I doing soemthing wrong or is this a limitation of an infoset.
    thanks

    what do you mean?   I have a key figure and on the conversion tab in the query I selcet a conversion we created based on material.  It works fine in cubes MP and DSo but not an infoset

  • Utilizing Aggregates with Automatic UOM Conversion

    We are using SAPs suggested UOM conversion techniques for 3.5 as described in this document: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f</a>
    I am realizing that any aggregates that are built and need to use this UOM conversion must contain the 0MATERIAL InfoObject.  Has anyone found an alternative to this?
    If I want to run a yearly sales volume by customer report with implicit UOM conversion the query will not use any of my customer specific aggregates because they don't contain 0MATERIAL.  Adding 0MATERIAL to these aggregates would increase the size of the aggregate by a factor of approximately 500.  I'm trying to avoid this for obvious reasons.
    Thanks.

    HI Jonathan,
    UOM conversions work explicetly at the material level.Therefore if you want your aggregate to use UOM conversion use must include the material in your aggreagtes.
    Aggregates contains data at the level depending upon the characterstis included into the aggregates.
    Now if you want something to act upon at a particular level the data at that level has to be maintained.and agrregate are nothing but the cubes.
    This leads to the performance issue but there is no other way as UOM conversions have to happen at the material level.
    Hopes it clarifies.
    Thanks

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts,
    I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
    I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
    Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
    "An error occurred while communicating with the BI server.
    As a result of this error, the system has been
    disconnected from the BI server.
    Detailed Description:
    STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
    Details text is as below:
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
    I have tried with SAP Note 899572, but still it's the same.
    Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
    Your time is much appreciated.
    Thanks,
    Chandu

    Arun - Thanks a million. You saved me Nine. It worked.
    Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
    Points already assigned.
    Thanks,
    Chandu

Maybe you are looking for