Regarding Base Unit conversion to Unit of measure

Hi all ,
I have a  Custom report which post the goods Issue .
The program uses tables mard and mska. In mard table fields used are mard-matnr,  mard-labst,mard-Lagerort,mska-sobkz,mska-vbeln,  mska-posnr,e mard-werks.
the program call mb1a for updating the data using Bdc .
<b></b>the problem is that the quantity of the stock is
shown only in the base unit of measure .. but some material have Alternative Unit of measure  ... Its not taking Alternative Unit of measure ...
Any help is highly appreciated ..
Regards,
Amarnath Reddy.

Hi all ,
the program aim is to transfer the stock from the storage location with reference to order number from  CO (cobl-aufnr).
In mard when i am able to c the unit of issue for the selected material number.
My question is in the report program sap is not looking for the unit of issue . It is only taking basic unit of issue ... Is there any way that program looks for the Unit of issue .

Similar Messages

  • Function modules for unit conversion

    hai gurus.
    what is the function module to make one qty to the same unit as other qty.
    if one is in kg and other in pounds
    i want to make both in pounds.
    pls help me with this

    Hi
    chk UNIT_CONVERSION_SAMPLE
    also chk this
    CF_UT_UNIT_CONVERSION
    Some Insights-
    Unit conversions
    with NW2004s the HOW-TO GUIDE for qty conversion is obsolete.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/27/b65c42b4e05542e10000000a1550b0/content.htm
    As of SAP NetWeaver 2004s you can create quantity conversion types using transaction RSUOM.
    The business transaction rules of the conversion are established in the quantity conversion type. The conversion type is a combination of different parameters (conversion factors, source and target units of measure) that determine how the
    conversion is performed.
    In terms of functionality, quantity conversion is structured similarly to currency translation.
    Quantity conversion allows you to convert key figures with units that have different units of measure in the source system into a uniform unit of measure in the BI system when you update them into InfoCubes
    http://help.sap.com/saphelp_nw04s/helpdata/en/27/b38c4284a8c353e10000000a1550b0/content.htm
    It is entered in ODS table linked to info object (0material)
    What you need to do basically is-
    1 ) Goto your infoobject for eg- 0material
    2 ) In Info object Maintenance- Tab page- Bex Explorer
    3 ) Enter 0BASE_UOM in Base unit of measure
    4 ) Generate UOM ODS (System generates it with prefix UOM)
    It is made of 4 fields (1 more in case of compounding) with SID for them. This is the place where you enter numerator and
    denominator to calculate conversion factor
    5 ) Load the UOM ODS with conversion from 0MAT_UNIT_ATTR or flat file
    6 ) Define conversion type
    7 ) In the conversion type, then you can select 0Material in the dynamic determination of conversion factor
    8 ) Select source unit and target unit
    For more help refer SAP help file on NW2004s. It is comprehensive and even explain - How to do unit conversion in
    transformation rule?
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/707242df019c60e10000000a1550b0/content.htm
    Check this sample code,
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING
    *     CLIENT                  = SY-MANDT
          DATE                    = pdate
          FOREIGN_AMOUNT          = p_amt1
          FOREIGN_CURRENCY        = p_curr1
          LOCAL_CURRENCY          = p_curr2
    *     RATE                    = 0
    *     TYPE_OF_RATE            = 'M'
    *     READ_TCURR              = 'X'
        IMPORTING
          EXCHANGE_RATE           = w_rate
          FOREIGN_FACTOR          = w_fact1
          LOCAL_AMOUNT            = w_amt
          LOCAL_FACTOR            = w_fact2
    *     EXCHANGE_RATEX          =
    *     FIXED_RATE              =
    *     DERIVED_RATE_TYPE       =
        EXCEPTIONS
          NO_RATE_FOUND           = 1
          OVERFLOW                = 2
          NO_FACTORS_FOUND        = 3
          NO_SPREAD_FOUND         = 4
          DERIVED_2_TIMES         = 5
          OTHERS                  = 6.
      IF SY-SUBRC <> 0.
        write: / 'Conversion to loc.curr. failed:',
                 p_curr1, '->', p_curr2, 'err.code=', sy-subrc.
      ELSE.
        write: / 'to Loc.curr:', p_amt1 currency p_curr1, p_curr1, '->',
               w_amt currency p_curr2, p_curr2,
               '(', w_rate, ')', w_fact1, w_fact2.
      ENDIF.
    http://www.geocities.com/victorav15/sapr3/examples/currconv.txt
    Check this
    CONVERSION_FACTOR_GET
    Measurement unit conversion: Get measurement unit conversion factor Not for Dimensionless Units of Measure
    UNIT_CONVERSION_SIMPLE Measurement unit conversion by table T006, with rounding
    UNIT_OF_MEASURE_SAP_TO_ISO 
    UNIT_OF_MEASURE_ISO_TO_SAP
    MATERIAL_UNIT_CONVERSION Material quantity conversion from Base Unit of Measure to Alternative Unit of Measure and vice versa. For Dimensionless Units of Measure (Each, Piece, Box etc.) conversion depends on the given Material (see table MARM). For other Units of Measure (Length, Weigth etc.) conversion can be calculated from the T006 table or via CONVERSION_FACTOR_GET.
    CONVERSION_EXIT_CUNIT_INPUT Conversion exit for commercial (3-char) measurement unit INPUT
    CONVERSION_EXIT_CUNIT_OUTPUT Conversion exit for commercial (3-char) measurement unit OUTPUT
    CONVERSION_EXIT_LUNIT_INPUT Conversion exit for technical (6-char) measurement unit INPUT
    CONVERSION_EXIT_LUNIT_OUTPUT Conversion exit for technical (6-char) measurement unit OUTPUT
    UNIT_OF_MEASUREMENT_HELP Input help for measurement units of a predefined dimension
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Reward all helpfull answers
    Regards
    Pavan

  • Unit Conversion issue for same material with Diff KPI

    Hi,
    i have a report with multiple key figures which form a structure.
    Unit conversion for this report and all the key figures are defined at report level.
    Below are the settings in place
    Source currency:    Data record from target
    Target Currency:    From variable ( Input variable in BeX report)
    Conversion  factor: Dyanamic Determination of conversion factor
                                   Using Reference Infobject if available otherwise use T006
                                   Reference Infobject: 0Material
    Issue: For 1 Key figure conversion to TO is happening, however for other Key figure conversion is not happening for the same material.
    Note: Conversion to TO is defined in BEX settings for Info object 0material and stored in DSO UOM0MATE.
    Why for same material some key figures convert to target unit correctly and not the others?
    See the attached screenshot. Sales Quantity is convertin to "TO" while Volume third party shows figue in"ERR" for same material.
    Thanks
    Nayab

    Hi,
    Following reasons cause to your issue,
    1. Unit Conversion is not maintained for that particular material  in source system Material itself, so that  conversion data data may not updated in DSO (UOM0MATE).
    2. For particular transnational data record key figure value don't have any base unit or units measures, that case also  you may get that error.
    Request check the transnational data in your InfoProvider and 0Material Master data and DSO data (UOM0MATE) . Correct the data based on that.
    Check the Master data test in RSRV for 0Material, if any SID generations was missed or not.
    I hope this can be help to find the cause of error , based on that you can resolve problem.
    Thanks & Regards,
    Leela Krishna.

  • Unit Conversion Using RSUOM

    Hi, this i have already posted but i didn’t got helpful suggestions...
    plz help me to resolve this...
    I am using BW7.0's feature - Quantity Conversion (TCode: RSUOM).
    I am Traying to Convert all the Quentity Units to one Unit , I have followed the following Steps.
    Steps :-
    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)     I have created Transformation from 0MAT_UNIT_ATTR to Generated DSO
    4)     The Mapping is
    MATNR ---> 0MATERIAL. ( Material )
    MEINH ---> 0UNIT ( Unit of Measure )
    UMREZ --- >0UOMZ1D ( Counter )
    UMREN ---> 0UOMN1D ( Denominator )
    MATNR  -
    > 0BASE_UOM ( This is Lodead through Master Data )
    5)     Fill in the DataStore generated with data, using the DataSource 0MAT_UNIT_ATTR Using Transfermation and DTP.
    6)     Data is Loaded Successfully AND the Data is in Active.
    7)     Then I Created the Quantity Conversion Type through TCode RSUOM ( Eg: ZUOM ),
    In the Conversion factor Tab , The Dynemick Determinetion of Convertion Factor Option 3 I have selected with reference to 0MATERIAL InfoObject.
    8)     In UoM Tab, I have selected radio button
    Source : Info Object for Determining the Unit of Measure  ( 0MATERIAL  and Quantity Attribute 0BASE_UOM )
    Target : Fixed Unit of Measure ( CAR )
    9)     Then in Query Designer , Quantity Key Figure Properties ( Eg: 0QUANT_B ) --- > In Unit
          Conversion I have selected Conversion Type ZUOM
    When I execute the Query , it is not Converting the Units.
    I am Trying to Convery all the units in to CAR ( Cartons )
    Eg : 10 Kg = 1CAR
         1000 kg = 1 MT
    Where I am missing ? what are the Radio Buttons I have to select in RSUOM
    Thanks
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/define%2bunit%2bof%2bmeasure%2bconversions%2bin%2b0material%2bdefinition
    I check this link , i didnot find all the screens..
    Regards,
    SHAIK
    Message was edited by:
            shaik

    Hi Shai,
    It sometimes show without all the screens, I guess u should refresh.
    Anyway,
    Try running the query thorugh RSRT with Debug, with a breakpoint on currency/quantity conversion. I would suggest to restrict the test query to show only one record that should be converted so the debugging would be easier.
    Anyway, Have fun.

  • Unit Conversation

    I need help on Unit Conversation
    1) In mine requirement I have a material, material quantity & its base unit of measure this is what I have loaded in BI (From Standard Extractor).
    2) In BI query I want to see Material, itu2019s quantity in selling unit of measure.
    3) Different material will have different selling unit of measure.
    4) Mine question how to convert base unit of measure into selling unit of measure in BI at transformation level, what all prerequisite I need to do for this.
    Please guide me on this, I have gone through various link but not clear regarding same, if anyone can explain me descriptive manner that will be highly appreciated.
    Sachin

    Hi..
    Check these :
    http://help.sap.com/saphelp_nw04s/helpdata/en/1b/325d4217139041e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/707242df019c60e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/27/b65c42b4e05542e10000000a1550b0/frameset.htm
    Also check this :
    Re: unit conversions
    Hope this helps.........
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Oct 13, 2008 7:41 AM

  • 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

  • Unit conversion  function module

    Hi,
    Can anyone give me the details of this function module
    Function Module name: MENGE_UMRECHNEN.
    its urgent.
    Thanks in advance.
    vaibhav

    Hi Vaibhav,
    This function module gives you the provision of conversion of quantities from Base Unit of Measure to any of the Alternative Unit of Measures or vice-versa.
    But this function would be done only for the materials and its limitation would be determined by the data maintained for a material in T006 table.
    Using this FM you can convert a material quantitity of unit 'X' to unit 'Y' only if 'X' and 'Y' are of the same dimension.
    <b>Reward points if this helps,
    Kiran</b>

  • Unit conversions

    Hello everyone,
    Is there any generalised function module which would convert one unit values to others....i have tried UNIT_CONVERSION_SIMPLE...but wen testing it is showing invalid_input exception...
    thanks,
    kiran.

    Hai kiran,
    There are Several Function Module...
    Check out there functionality as per your requirement...
    · CONVERSION_FACTOR_GET
    With this function module, you determine the conversion factors for the conversion of a measurement unit into another using the measurement units table. This does not apply to measurement units within a dimension.
    The module also returns the number of decimal places to which the values in the unit UNIT_OUT are to be rounded. This also applies to units with no dimension.
    The following formula applies for the conversion:
    (value in the unit UNIT_OUT) = (value in the unit UNIT_IN) * numerator/denominator + additive constant.
    · ROUND
    With this function module, you round a value to the specified number of decimal places. You can choose between three rounding types:
    - Rounding up
    - Rounding down
    - Commercial rounding
    The rounding is performed internally with the same field type as that of the field passed.
    Rounding errors can thus occur when rounding a FLOAT value. If you want a high degree of accuracy, the passed field should have the type P.
    · SI_UNIT_GET
    You pass either a unit or a dimension to this function module to get the SI unit. If you pass both a unit and a dimension, the SI unit for the dimension is returned.
    · UNIT_CONVERSION_WITH_FACTOR
    With this function module, you convert a value according to the factor passed.
    · UNIT_CORRESPONDENCE_CHECK
    With this function module, you can check whether the two units passed belong to the same dimension.
    · UNIT_GET
    With this function module, you get the appropriate measurement unit for the specified dimension and conversion factor.
    · UNIT_CONVERSION_SIMPLE
    With this function module, you convert a value using the measurement unit table, and round it, if appropriate.
    You can also perform the rounding without conversion.
    Conversion with this function module requires that the measurement unit table is maintained for both units, and that both units belong to the same dimension, i.e. also that they have dimensions.
    The rounding can, however, also be performed for units which have no dimension.
    CONVERT_TO_LOCAL_CURRENCY - Conversion of currency
    HRCM_AMOUNT_TO_STRING_CONVERT - Convert amount to string
    HRCM_STRING_TO_AMOUNT_CONVERT - Convert amount from string
    CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all
    character fields), not right justifed as numbers normally are.
    CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
    CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
    Do Reward Points to replies if found useful...
    Regards,
    Srikanth.

  • UoM Conversion from SAP units to ISO units -- Prod Order IDOC (LOIPRO01)

    Hello,
    We are trying to build interface for Production Order details to pass to a Mfg. system. using IDOC LOIPRO01.
    Looks like the IDOC processing is converting SAP on-screen UoM to ISO UoM for ex.  PC (in SAP Screen) to S2 (IDOC Field Value).
    I would like to know if there is any OSS notes or anyother way to prevent this conversion and just pass the same value what we see in SAP screen to the Mfg. system.
    Appreciate your inputs in thsi regard.
    Best Regards,
    Bharat.

    changes in master data have only effect to NEW data, created after this change .
    SAP never updates automatically already existing data.
    Answer: No there is nothing that can trigger an automatic change.
    changes to ratios between base unit and alternative units are unusual and the changer has to know about the effect. it is not only the existing info record, you have to think as well about open POs which still have the old conversions.

  • Service unit conversions

    Hi all...
    We are procuring Labors as "SERVICES" on daily wages basis and are assigned to the Production Cost Centers
    If we assign unit of measure as "DAYS" is AC01 and specify the wage as Rs. 140/Day, but while capturing the product cost in PP, labor costs will be in PER HOUR basis, where as we have set 140/Day in the Service Master.
    My doubt is, how the system will convert this Days into Hours? should we specify Unit conversion in Service Master?
    when I tried to maintain this conversion in service master as 1 DAY=8 Hrs , system was showing some other values..
    Can someone provide some info?
    Secondly for services like Annual AMC (service contracts) how to create a service contract? Is it ME31K with item category D ?
    Kindly help
    Suraj

    Can any body pls tell me how to maintain the formula as 8 HRS = 1 DAY ?
    When I tried to maintain in AC01 it automaticall takes   86400 HRS= 3600 DAYS which means 24 HRS/DAY...
    Thanku

  • Unit Conversion to KM

    Hello Experts!
    I have a requirement in reporting to display a quantity values in KM(Kilo Meter), NOs(Number).
    There is already conversion done into KG for the same quantity field.
    could any 1 explain me step wise on how to convert the the quantity values into KM and NOs?
    i have gone through below link. will be very helpful if u can provide me steps with screen shots.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00944f2f-c3e8-2c10-ccb5-a6e4cc882db4?quicklink=index&overridelayout=true
    should I create 2 info objects for conversion into KM and NOs.
    regards
    vijay
    Edited by: biuser123 on Feb 7, 2011 10:44 AM

    Hi ,
      This requirement can be attained by creating two new info-objects for KM and NO.
      map it to the same source fields to which the info-object with unit KG is mapped .
      Use the same step done for converting base unit to KG conversion just instead of using KG use KM and NO resp.
      In our project for unit conversions, we refer to mm03 in R/3 table for finding the conversion units for a particular material .
      A dso is maintained in BW which gets data from the datasource created on this table.
      this dso is looked up for every conversion based a particular material .

  • No rounding with rounding profil when conversion  Roundg Unit Purch Unit

    Hello,
    I have a trouble when I try to make a purchase order with a material which has this data:
    Base unit ST
    Purchase unit on info record : CAR
    Rouding profil on info record : only with unit PAQ (%+ 50 ; %-50)
    Variable purchase order unit : 1 active.
    CAR = 10 ST
    PAQ = 5 ST
    When I make a purchase order, the quantity is only rounding with the purchase unit.
    Does anybody know why?
    Thanks a lot for your help.
    Sarah
    Edited by: Sarah Ah on May 24, 2011 11:15 AM

    Hi
    Its quite difficult to suggest something based on your inputs.
    In purchase orders, the system rounds to the unit of measure most suitable for logistics purposes.
    You can refer the documentation on dynamic rounding profile
    http://help.sap.com/erp2005_ehp_03/helpdata/en/4c/420da3470a11d1894a0000e8323352/frameset.htm
    Thanks !
    E.Avudaiappan

  • Requistion and Purchase Order - base unit and order unit

    People,
    I have a basic doubt in MM:
    I have a Requisition with a item using the base unit, for instance 20 litres.
    When I create a Purchase Order in ME21N passing the requisition and item number, I must be converted to the order unit, correct?
    In this case, we have 1 UN (order unit) corresponds to 20Liters (base unit).
    I did believe the Purchase would be converted to 1 UN, but I got 20 Liters.
    What is correct?
    Thanks a lot!

    If you maintian the order unit in the mateiral master purchaisng screen than whenever you create the PO system will convenrt in to that order unit and in the Po item details you will see the conversion of base unit to order unit.
    now suppose you have more than one order unit than you activate the Variable order unit in the material master and maintiqan the conversion of that and create the diff info record for diff order unit based on the vendor so whne oyu create the PO as per the vendor system will pull the order unit in the PO.
    Hope this will give you clear picture.

  • Convert the all the quantity units into one Unit of measure that is 'CSE'.

    Hi all,
    I want to convert the all the quantity units into one Unit of measure that is 'CSE'.
    would anybody tell me what is the FM that converts all the quantity units into one Unit.
    Thanks in advance,
    Mythily

    Hi Mythily,
    You can check the following function module - -
    FCO_CONVERT_FROM_BASE_UNIT
    MD_CONVERT_MATERIAL_UNIT
    MS_CONVERT_UNIT_TO_TIME
    RV_CONDITION_CONVERT_UNITS
    VHUMISC_CONVERT_TO_ALTERN_UNIT
    VHUMISC_CONVERT_TO_BASEUNIT
    WALL_QUANTITY_CONVERT_UNIT
    WALL_QUANTITY_CONVERT_UNIT_RND
    WSTP_CONVERT_UNIT
    Regards
    Pinaki

  • Quantity and Unit conversions

    Hi Experts,
    I have an inventory report in which i have three columns (Total cost per unit, Stock Quantiy and stock values)
    Total Cost per unit is in EUR  -- currency conversion exists in the report level.
    Stock Quantity in KG/PC/LB  - Unit conversion exists at report level.
    Stock value in EUR     -- Multiplication of Total cost per unit and stock quantity.
    In my case, Total cost per unit and Stock quantities are coming from different Infocubes on top of which a MP is designed.
    When i change the UOM from KG to G or PC or LB, Stock Quantiy values are changing accordingly.
    However the Stock value is also changing which should not happen because realistically Stock value in EUR for a specific material and plant combination should always be same irrespective of any UOM(KG/G/PC/LB) for the keyfigure "Stock Quantity".
    I am wondering if it possible to change the "Total cost per unit" value in the report according to the change in UOM.If so can you provide me your valuable inputs?
    Quick help is highly appreciated.
    Best Regards
    Nag

    hi,
    Please use CKF's for all the three values, currently it might be changing as it might be a simple formula i.e. a = b*c.
    if b changes then a is bound to change.
    create CKF without any currency conversion. apply the calculations in CKF.
    In the end use CKF in the report and apply the conversions after adding them in the query column.
    regards,
    Arvind.

Maybe you are looking for