Unit Conversion in the Query

Hello Experts.
I have a situation where I need the units of quantity to be converted at the query level. For e.g. if the value of the keyfigure is stored in litres in the Cube, then at the time of the query execution this value should be converted in gallons.
I cannot use the following options in this case:
1) The Solution for alternate UOM using the How-to guide for the same as the conversion from liters to gallons is not maintained at the material master level in my case
2) I cannot use the Unit Conversion in the Conversion tab because gallons won't be the only target unit in my report, it will depend on the type of material select by the user.
Please let me know about the options in this case. Any sort of help is appreciated and points will be duly rewarded.
Thanks,
Rishi

Hi Prasad,
In both of the ways, there should be only one target unit for them to work which is not the case in my situation. I want only specific material types to be displayed in gallons. If the User selects a different Material type then the target unit will be different.
Any other possible solution on this one.
Thanks,
Rishi

Similar Messages

  • Currency Conversion terminates the query execution

    Hi friends,
    When I execute a query it terminates due to the following error in currency conversion. "Abort System error in program CL_RSR_RRK0_CURR and form FILL_CUDIM_02-04 (see".
    conversion works fine and gives correct values in target currency when the source currency is say thailand bhat, malaysian ringett, philippino peso etc.., but when i use the source currencies of zimbabwe or kenya i get this error and next the query terminates.
    Can any one of you suggest me what could be the problem. How do i systemtically approach to solve this problem.
    Thanks
    Raj

    Hi Serjio
    All the currencies mentioned currencies are available in the TCURR table including the exchange rates from those currencies to USD.
    Hi Sven,
    I am sorry, I really didnot understand when you say "set the flag for protocol to X". You may throw more light on this. I tried debugging the program RSW_CUR_TRANSLATION_RATE_GET in the past step-by-step. This leads to lots of other programs and i was really lost in them. Pls guide me to debug it effectively.
    Hi Serjio/Sven,
    Further, i missed out to mention the following details in my post. We have two version of a this COPA query. One is older and the other is newer. Both were created before we upgraded from 3.1C to NW2004s.
    The older version works fine. The conversion from source to target currencies is good for the african currencies also besides the asia-pacific (AP) currencies. However, the newer version throws out the error message i have mentioned in the post for african currencies but works fine for asia-pacific currencies. Even the newer version was working fine before we upgraded from 3.1C to NW2004s. Its only after the upgrade that we are encountering this problem.
    In the query we are also converting the data to SGD (singapore dollar), besides USD. As i donot require this data i have hided the values in SGD. As a reason we have never maintained conversion rates/factors for converion from any of the AP or African currencies to SGD. Due to these missing rates I get an Information message to maintain the conversion rates/conversion factors for AP/African curr to SGD. This message appears along with the error message(mentioned in my post) on the same screen. This information message also appears for the older version of my query, which is currently giving correct $values. But I think we can ignore this message. Else do you think, in some way these missing rates are responsible for the trouble??.
    But more surprisingly why is that the older version is not impacted by the upgrade while the newer is affected?
    Pls share your views
    Thanks
    Raj

  • Unit conversion in the sales order

    Hi All,
    We have got a typical requirement from the user where they need unit conversion at sales order creation level.
    The scenario goes as below.
    Initially the order quantity will be enetered in terms of pieces and the price will be determined accordingly. Now user wants to have option in the sales order screen, by pressing which the order quantity (unit of measurement) should convert in to number of boxes. Also price they want to redetermine based on the number of boxes.
    example: Assume a each box can accomodate 12 pieces.
    So initially in the order 24 units of the material are entered and price per piece is 10 USD so the total price will become 240USD.
    Now when they press the conversion button in the screen then the number of unit should become 2 and price per quantity should become at box level. i.e 120 per box. 
    Please let me know whether through available std config is it possible to achieve this or please let me how we can achieve this.
    Regards,
    Anand

    Hi,
    In material master sales : sales orgz. 1 >>> maintain sales unit & enter system will popup new window speciefy
    e.g
    1 box <===> 100 ea.
    Now create order and system will determining sales unit, if u want to change it change.
    Also see in iteam deteail tab conversion factor is appearing.
    Regards,
    kapil

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

  • Conversion in the Query statement for T/F

    Hi,
    If I have a boolean attribute (char(1)), which contains T or F, is there a way that I can do a query and at the same time, somehow, convert T to 1 and F to 0 respectively?
    Thanks!

    Can I do the following?
    SELECT case when <<booleanAttr>> = 'T' then 1
    else 0
    end
    from <<tableName>>

  • Units conversion about variant configuration?

    my company is doing vc.we will change the material and batch.the width and length of product will be the character of batch in future,so the unit weight can not be in the material data,will be calculated in the batch.But there is the problem,the unit will only use the sale unit (such as pal)and the base unit(such as kg) in sale order and other .if we want to use the other unit such as pak,how can we do?we can not set the unit conversion,about  10 pak = 1 pal.
    we must create the another material ?
    Edited by: Philip Eller on Jun 11, 2008 10:08 AM
    Edited by: Philip Eller on Jun 26, 2008 10:56 AM*
    Edited by: Rui Pereira on Aug 6, 2008 4:24 PM

    hi ,anna:
    the detail is:
    we set the unit weight in material master data on addition data now,such as 1 pal=100 kg and 1 pak=10 kg.Every material has different value in width and length character.
    so we can use the PAL or PAK as the unit of sale order.
    In future,the width and the length will be not the character of material ,they will be the character of the batch.So the unit weight is setted in the batch.But the consultants say that we only can use one unit(PAL or PAK) and can not maintain the unit conversion.In the batch,they say only one unit can be use
    and can not convert.
    i think there will be some problem for our users in order operation,and want to find some way to deal with it.
    Edited by: Rui Pereira on Jul 8, 2008 4:22 PM

  • Unit Conversion in Info Set Query

    Hello Experts
    I have create a query on infoset in which I want to show the qty field with the unit conversion factor . but I am not able to do so.
    It is giving an error message while saving the query
    0Material is not a valid characteristics for Info provider ZINFOSET
    Diagnosis
    Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers 0MATERIAL as the characteristic to be calculated. 1. is, however, not a valid key figure for InfoProvider ZIS_BILL.
    System Response
    The information from 0MATERIAL is ignored.
    Procedure
    Check the exit.
    Procedure for System Administration
    Please help me out
    Thanks
    Neha

    Hi,
    You can try unit conversion planning function,create planning function and add it at the back of button.
    Can refer to link below:-
    Not sure if it can solve your problem.As it also depends upon source and target keyfigure used.
    http://help.sap.com/saphelp_nw70/helpdata/en/44/21643cedf8648ee10000000a1553f7/content.htm

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

  • Query Performance with Unit Conversion

    Hi Experts,
    Right now my Customer ask to me to do a improve in the runtime of some queries.
    I detect a problem in one related to unit conversion. I execute a workbook statistics and found that the time is focusing in step conversion data.
    I'm consulting all the year and is taking around 20 minuts to give us a result. I too much time. The only thing in the query is the conversion data.
    How can I to improve the performance? what is the check list in this case?
    thanks for you help.
    Jose

    Hi Jose,
    You might not be able to reduce the unit conversion time here and try to apply the general query performance improvement techniques, e.g. caching the query results etc.
    But there is one thing which can help you, if end user is using only one of the unit for e.g. User always execute the report in USD but the source currency is different from USD. In such cases you can create another data source and do the data conversion at the time of data loading so that in the new data source all data will be available in required currency and no conversion will happen at runtime and will improve the query performance drastically.
    But above solution is not feasible if there are many currencies and report needs to be run in multiple currency frequently.
    Regards,
    Durgesh.

  • Unit Conversion in Input Ready Query

    Hi Experts,
    I need to do unit conversion in Input ready query. here is the requirement.
    I have 3 columns in report, 'Year to Last Month', 'This Month' and 'YTD'. In this, 'This Month' is input ready. and YTD is sum of the first two collumns. I have a variables 'This Month' and 'Unit'. User may enter units either in Litres and HectoLitres. depends on the user input, i should get the values converted to corresponding units.
    currently, if i use Litres, i am able to get the result in Litres, when i select in HectoLitres, i should be able to convert the values in HL. please let me know if this possible and how.
    Thanks in advance!
    Best Regards,
    Ali.

    Hi,
    You can try unit conversion planning function,create planning function and add it at the back of button.
    Can refer to link below:-
    Not sure if it can solve your problem.As it also depends upon source and target keyfigure used.
    http://help.sap.com/saphelp_nw70/helpdata/en/44/21643cedf8648ee10000000a1553f7/content.htm

  • Currency Conversion type not visible in the query

    Hi ,
    I created one currency type conversion   Z_INR
    exchange rate type : M
    Exchange rate from infoobject : zexch_rate(key fig)
    source curr from data record
    Fixed target curr : INR
    Variable time reference  : A to Exact Day
    Special info object : Ztr_date (Transaction date)
    it got saved succesfully but wen i try to include  this in the query its not visible there . can anyone let me know why this problem is coming
    help will be appreciated .
    i also included rate and date in the query still not visible

    Hi,
    Create Currency conversion type using Trans: RRC1.
    1.Specify your Exchange rate type.                     
    2.Dynamic Exchange rate type
    3.Source curency from data rec.
    4.Fixed currency say USD.
    5.Select Variable Time reference "Start Month" and Special Info Object - 0calmonth
    Secondly In the key figure field to be converted in the query,   select properties - select the currency conversion key name .
    Thanks,
    Nagesh
    Sony Singapore

  • 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 by Calendar month in the query?

    Hellow...
    Users want DB currencies when executing query at first. And then want to change currency conversion by Calendar month in the query, if navigating by target currency. Tried as created TEST Currency Translation Key. Database currency is different currencies.
    Appreciate your help.
    Don.

    Hi,
    Create Currency conversion type using Trans: RRC1.
    1.Specify your Exchange rate type.                     
    2.Dynamic Exchange rate type
    3.Source curency from data rec.
    4.Fixed currency say USD.
    5.Select Variable Time reference "Start Month" and Special Info Object - 0calmonth
    Secondly In the key figure field to be converted in the query,   select properties - select the currency conversion key name .
    Thanks,
    Nagesh
    Sony Singapore

  • How to hide the unit in the query?

    Hi Gurus,
    I have three key figures,
    1, Stock: Showed as 1000 TON
    2, Value: Showed as 100000 USD
    3, AVG: Showed as 100 USD/TON, the formula is Value / Stock
    In the query, the value will display the unit, TON and USD and USD/TON.
    How can I hide the unit?
    Thanks ahead.

    Hi,
    create Calculated Key figure (for the key figures which u want to supress Units/currency)
    To use the NODIM function, you have to use a calculated key figure (CKF) which is defined as
    CKF = NODIM (KF)
    where KF is your original keyfigure which should be displayed in the report without any units. As I mentioned above, using NODIM will help you hide the ERROR message but will not display units even for those records for which the unit value exists in the info provider
    Create another calculated key figure (for amounts & quantity key figures for which you want to supress unit/currency) and insert "NODIM(Key figure name)" in formula. Use these calculated key figures for display.
    Message was edited by:
            bwuser

Maybe you are looking for