Query Designer : Quantity Conversion as per UOM

Hi gurus,
I am facing a typical situation here. I have Product Quantity data that I fetch from R3, This has diff UOM based on different product. I know the conversion factor. I have not included the conversion factor in the transformation while loading the data. Hence in the cube, the data is loaded without any conversion.
Now, in my query, I want that the Quantity data be displayed always in say BOX (Whether at aggregate level, ex. Sales Office level or at a more granular level (product brand level)) it should always be in BOX. Can I make such a modification in my query so that the end result for quantity should always be in BOX.
thanks n regards,
Sree

Hi Sree,
You can set unit conversion for relevant key figures in the Query Designer.
For that, you need to create a quantity conversion type first.
For a BW7.x system, use transaction RSUOM to maintain quantity conversion type.
It could be defined like this:
Source unit: from data record
Target unit: fixed: BOX
Hope this helps.
Regards,
Patricia

Similar Messages

  • Quantity conversion not happening at times

    Hi all,
    I have an issue with Quantity Conversion.The BAse UoM is in Pieces (PC). It works perfectly sometimes and at times when the report is run with Alternate UoM as CS/ KG or TO, it gives the report output in PC only.
    This is how the conversion is defined:
    1. For material, 0MATERIAL info object is used with 0BASE_UOM and a DSO has been created automatically (in BEx Tab). The data has been loaded for all materials in this DSO
    2. A unit conversion type is created in RSUOM. There is no authorization for this tcode. hence cant give more deatils on the definition here.
    3. The variable for Alternate UoM used in the query selection screen is built on 0BASE_UOM
    4. In the KPI's that use this property, in the conversion tab: the Conversion type is listed AND Target Unit = From Variable
    My question is why does the query behave randomly. Why is that the conversion happens properly sometimes and at times it gives the output in Base UoM. Please advice.

    Hi,
    Can you give some examples of the cases in which the conversion works perfectly, and in which the conversion does not work perfectly?
    Another question: is it that the conversion works fine for some specific materials, and for other materials the conversion goes haywire?
    Regards,
    Suhas

  • 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 ?

  • Curerency conversion for a Formula in the query designer

    Hi
    I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
    Source Currency = SAR
    Target Currency = USD
    So how can i do the curerency conversion for a Formula in the query designer.
    pls let me kow
    kumar

    Hi,
    If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    Regards.

  • Currency conversion in the Business Explorer(Query design)

    Hi Experts,
    How to convert currencies from CAD to USD using the “Current exchange rate 0011” for a particular record in the Business Explorer (Query Design).
    Any useful answer will be rewarded with suitable points.
    Thanks!
    Rohan

    Create a currency coversion type for the exchange rate
    Go to RRC1, enter a  name for your new currency conversion type
    on the exchange rate tab mark the radio button Exchange Rate Type.
    enter the exchange rate type there
    enter the target curr in the tar curr tab as USD
    similarly in the query also enter the curr conversion key.
    hope it helps,
    assign points if useful

  • 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

  • Calculated quantity evolution in Query Designer

    Hello,
    I have a few short questions regarding ways of calculating a quantity evolution key figure in Query Designer:
    I have a sales figure, let's say an order quantity. I'd like to have it's evolution calculated and displayed (based on another variable with a time period selection) next to it.
    - Is there any other way of entering the following formula for the calculation then: (figure A - figure A(N-1)) / figure A (N-1) * 100 ?
    - I would like to have a positive sign when this calculated evolution is positive as well as the percentage symbol next to it (eg: +15%). Is there a way to do this?
    - Is there a way to automatically fill the time period selection for the variable (using for example a current week - 1)?
    Thanks for your proposals.
    Best regards,
    Olivier

    Hi there:
    I think i understand what you are asking for. I just did a similar calculation myself after lot of research. Hope i can save you that trouble.
    We calculated Change from prior week key figure this way.
    In our Open Sales Order Position Report we have Open Order as of a particular day. But users want to know how their open order position changed from last week as of sunday of last week.
    We came up with a solution to create an open order position snapshot InfoCube and store the Open Order value in that cube as of every sunday. The data will be delieted every sunday and reloaded via APD from the current open order position InfoCube.
    We run a query on the open order InfoCube to get the total open order position based on different characteristics of interest.
    Then load it to a DSO with direct update using APD.
    Then we load it from this DSO into the prior week infocube.
    Then we have a MultiProvider which puts the current open order InfoCube and the Prior Week Open Order InfoCube.
    We created a query on this MultiProvider which gives both the current open order position and last week's open order position and we make a cacluation to subtract the two to give us the change from prior week.
    If we need a percentage we can calculate from this difference using percentage function.
    When we load to prior week open order InfoCube, we use System Date function available in the transformation by formula to calculate the 0CALWEEK to store the week of the prior week data.
    In the query i have a key figure for current open position and another key figure for prior week open position each restricted by InfoProvider.
    If you are not deleting the prior week data every week, you can add a restriction in the prior week open position as (0CALWEEK -1) so it will always get only last weeks data.
    Hope this makes sense.
    Good Luck.
    MP.

  • Quantity is Showing Blank : Bex Analyzer, Source - Bex Query Designer

    Hello Expert SAP BI,
    I Extracting Data from Flat File,
    Till then Cube My Transaction data Loaded Perfectly  ,
    i want to create Report in Bex Analyzer, fetching fields from Bex Query Designer.
    Characteristics are showing in Rows , that showing in Report , but in Columns added Key Figure , its not showing in Report .
    Can any one Suggest , what will be issue and how i have resolve it.
    - Thank you.

    Datasource -> Transformation -> InfoSource
    Infosource -> Transformation -> DSO
    DSO -> Transformation -> Cube

  • 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.

  • 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...

  • BI 7 Quantity Conversion in Business Explorer

    Hello,
    I'm not getting the result for Quantity Conversion at BEx level in BI 7.
    I Created Quantity conversion type in RSUOM
    All table entries are available in T006 table and the units i'm trying to convert are in the same dimension
    Used this Conversion type in key figure at query level.
    Still the report output shows the unit and value as stored at Infoprovider level.
    Any idea, what could be missing?
    Regards,

    Mahesh,
    Along with Currency conversion, BI 7 has feature for Quantity Conversion.
    I used the simple method of conversion using standard T006 table.
    Having set the property in Query definition for the key figure in Conversions tab, still the quantity is displayed in Original UOM.
    Now i got a warning 'Conversion not possible' and there are no details on that.
    I'm still trying to find out if there is some system setting missing.
    Mr. DON,
    Where can i maintain/check dynamic determination of conv factor.
    I'm trying to convert EA to DZ. these are in same dimension.
    Regards,
    Edited by: Sarkar on Oct 15, 2009 12:32 AM

  • 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

  • Where Used for a Quantity Conversion Type ?

    We had a problem with a quantity conversion type, and it's caused corruption on every query that used it. So I have to go in and fix 'em all. Except.... I'm not sure which queries used it !
    Metadata ? Nope. Quantity Conversion Types aren't there.
    Where used from RSUOM ? Nope. All it pulls is the conversion type itself and the associated infoobject.
    RSZELTXREF ? Nope. not in there.
    RSUOMTRT ? Well, yeah, the GUID for the conversion type is there. But.. it does not show up as an ELTUID anywhere else.
    I'm stumped ! Anyone have an idea ?

    I just manually went into every query that I had assigned as having an Alt UOM conversion and fixed it that way.

  • CKF in BEx Query Designer

    Hello,
    I have following scenario in Query Designer:
    There is only one characteristic Material in row and 3 calculated Key figures in column Price (Current Year), Price (Current Year -1), Price (Current Year -2). The User gives the current year as Input Variable. It works so far fine.
    Query Output looks like:
    MATERIAL | PRICE (CURENT Y) | PRICE (CURRENT Y-1) | PRICE (CURRENT Y-2)
    1234 |10|20|--
    2345|10||
    3456|12|--|23
    4653|12|13|14
    7564|--|2|5
    6452|||8
    7362||7|
    You can see that at least one value of PRICE Current Year/Current Year-1/Current Year-2 per Material is always filled. All Prices are in EUR.
    Now my requirement is that I have to build a new Calculated Key Figure in Query designer which should calculate the minimum value of PRICE Current Year/Current Year-1/Current Year-2 per Material.
    The new Query Output should look like this:
    MATERIAL | MINIMUM (PRICE CURRENT Y to CURRENT Y-2)
    1234 |10
    2345|10
    3456|12
    4653|12
    7564|2
    6452|8
    7362|7
    I have tried to use Mathematic Function MIN but couldnu2019t get success as few cells are empty. So I cannot use function MIN. When I add empty cell with 0 then the minimum value calculates incorrect. It only works when all 3 cells are filled. How I can solve this problem in Query Designer?
    Many thanks for the help.
    Edited by: Moha Nan on Aug 26, 2011 1:07 PM

    Hi Moha Nan,
    Try this:
    PRICE CURRENT Y *
    ((PRICE CURRENT Y NE 0) *
    ((PRICE CURRENT Y-1 NE 0) * (PRICE CURRENT Y < PRICE CURRENT Y-1) + (PRICE CURRENT Y-1 == 0))
    ((PRICE CURRENT Y-2 NE 0) * (PRICE CURRENT Y < PRICE CURRENT Y-2) + (PRICE CURRENT Y-2 == 0)))
    +
    PRICE CURRENT Y-1 *
    ((PRICE CURRENT Y-1 NE 0) *
    ((PRICE CURRENT Y NE 0) * (PRICE CURRENT Y-1 < PRICE CURRENT Y) + (PRICE CURRENT Y == 0))
    ((PRICE CURRENT Y-2 NE 0) * (PRICE CURRENT Y-1 < PRICE CURRENT Y-2) + (PRICE CURRENT Y-2 == 0)))
    +
    PRICE CURRENT Y-2 *
    ((PRICE CURRENT Y-2 NE 0) *
    ((PRICE CURRENT Y-1 NE 0) * (PRICE CURRENT Y-2 < PRICE CURRENT Y-1) + (PRICE CURRENT Y-1 == 0))
    ((PRICE CURRENT Y NE 0) * (PRICE CURRENT Y-2 < PRICE CURRENT Y) + (PRICE CURRENT Y == 0)))
    replace the NE with the not equal to sign, the post forum doesn't seem to accept thos signs.
    Kind regards,
    Alex

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

Maybe you are looking for